 Introduction aux frameworks PHP02.Introduction aux frameworks PHP 19 décembre 2023 Développement web il3 Introduction aux frameworks PHP HE-Arc 2016-24 DGR et YBL Framework1 • Fonctionnalités similaires pour de nombreuses applis Jointures ORM, vues, procédures stockées – Outils d’optimisation : YSlow, page speed, mytop 6 Frameworks PHP • Lesquels connaissez-vous? • Lesquels avez-vous utilisé? • Pourquoi y en a-t-il tant? L’explication Rasmus Lerdorf 10 • PHP-FI Forms Interpreter • PHP 3, réécrit en C++ • PHP 4 Zend Engine, fausse POO • PHP 5, vraie POO, PDO, JSON, … • PHP 6, Unicode , , • PHP 7, que du rêve! • PHP 8, JIT compilation0 码力 | 24 页 | 1.03 MB | 1 年前3 Introduction aux frameworks PHP02.Introduction aux frameworks PHP 19 décembre 2023 Développement web il3 Introduction aux frameworks PHP HE-Arc 2016-24 DGR et YBL Framework1 • Fonctionnalités similaires pour de nombreuses applis Jointures ORM, vues, procédures stockées – Outils d’optimisation : YSlow, page speed, mytop 6 Frameworks PHP • Lesquels connaissez-vous? • Lesquels avez-vous utilisé? • Pourquoi y en a-t-il tant? L’explication Rasmus Lerdorf 10 • PHP-FI Forms Interpreter • PHP 3, réécrit en C++ • PHP 4 Zend Engine, fausse POO • PHP 5, vraie POO, PDO, JSON, … • PHP 6, Unicode , , • PHP 7, que du rêve! • PHP 8, JIT compilation0 码力 | 24 页 | 1.03 MB | 1 年前3
 使⽤Laravel 8
PHP主流框架打造
RESTful APIVictor 王盛立 鐵⼈賽書籍作者 歡迎將 講者照片 裁成圓形 置於此處 使⽤Laravel 8 PHP主流框架打造 RESTful API ⾃我介紹 • 王盛立 • 出版過⼀本 使⽤Laravel 8 PHP主流框架打造RESTful API(iT邦幫忙鐵⼈賽系列書) • 浪浪的事 Side Project https://langlangthing.com/ 今⽇菜單0 码力 | 22 页 | 3.41 MB | 1 年前3 使⽤Laravel 8
PHP主流框架打造
RESTful APIVictor 王盛立 鐵⼈賽書籍作者 歡迎將 講者照片 裁成圓形 置於此處 使⽤Laravel 8 PHP主流框架打造 RESTful API ⾃我介紹 • 王盛立 • 出版過⼀本 使⽤Laravel 8 PHP主流框架打造RESTful API(iT邦幫忙鐵⼈賽系列書) • 浪浪的事 Side Project https://langlangthing.com/ 今⽇菜單0 码力 | 22 页 | 3.41 MB | 1 年前3
 Laravel 6.0 中文文档return $this->release(5); }); } 而在 Laravel 6.0 中,该业务逻辑可以被提取到任务中间件中,从而 将你的任务 handle 方法从频率限制中解放出来: php namespace App\Jobs\Middleware; use Illuminate\Support\Facades\Redis; 本文档由学院君提供 学院君致力于提供优质 Laravel Laravel 功能强大的集合方法了,在 Laravel 6.0 中新引入了一个 LazyCollection 类来对 Collection 类进行 补充,LazyCollection 底层基于 PHP 的生成器实现,适用于处理 大型数据集。 例如,假设你的应用需要处理 GB 级别的日志文件,并使用 Laravel 的集合方法来解析日志,这个时候将整个日志文件一次性读取到内存 显然是不合适 Vue/Bootstrap 脚手架代码,可以安 装 laravel/ui 扩展包,并使用 Artisan 命令 ui 来安装前端脚手架 代码: composer require laravel/ui php artisan ui vue --auth 升级指南 重要更新概览 影响较大  授权资源 & viewAny  字符串 & 数组辅助函数 影响中等  认证 RegisterController0 码力 | 1442 页 | 14.66 MB | 1 年前3 Laravel 6.0 中文文档return $this->release(5); }); } 而在 Laravel 6.0 中,该业务逻辑可以被提取到任务中间件中,从而 将你的任务 handle 方法从频率限制中解放出来: php namespace App\Jobs\Middleware; use Illuminate\Support\Facades\Redis; 本文档由学院君提供 学院君致力于提供优质 Laravel Laravel 功能强大的集合方法了,在 Laravel 6.0 中新引入了一个 LazyCollection 类来对 Collection 类进行 补充,LazyCollection 底层基于 PHP 的生成器实现,适用于处理 大型数据集。 例如,假设你的应用需要处理 GB 级别的日志文件,并使用 Laravel 的集合方法来解析日志,这个时候将整个日志文件一次性读取到内存 显然是不合适 Vue/Bootstrap 脚手架代码,可以安 装 laravel/ui 扩展包,并使用 Artisan 命令 ui 来安装前端脚手架 代码: composer require laravel/ui php artisan ui vue --auth 升级指南 重要更新概览 影响较大  授权资源 & viewAny  字符串 & 数组辅助函数 影响中等  认证 RegisterController0 码力 | 1442 页 | 14.66 MB | 1 年前3
 Laravel 5.6 中文文档了解详细升级日志可以查看 GitHub 上到 change logs。 日志优化 Laravel 5.6 带来了日志系统的重大升级,所有日志配置都存放在新的 config/logging.php 配置文件,你现在可以轻松构建发送日志消息到多个处 理器的日志”堆栈”。例如,你可以发送所有 debug 级别消息到系统日志同时发送 error 级别消息到 Slack 以便团队成员可以快速响应: nels.php 文件可能会变得很臃肿,所以,作为使用闭包来授权频道的替代方案,你现在可以使用 频道类。要生成一个频道类,可以使用 Artisan 命令 make:channel。该命令会将新生成的频道类存放到 app/Broadcasting 目录下: php artisan make:channel OrderChannel 接下来,在 routes/channels.php 文件中注册这个频道类: OrderChannel::class); 最后,可以将频道的授权逻辑放到频道类的 join 方法。join 方法中的代码等同于之前位于频道授权闭包中的处理逻辑。当然,你还可以使用频道模 型绑定: php namespace App\Broadcasting; use App\User; use App\Order; class OrderChannel { /**0 码力 | 377 页 | 14.56 MB | 1 年前3 Laravel 5.6 中文文档了解详细升级日志可以查看 GitHub 上到 change logs。 日志优化 Laravel 5.6 带来了日志系统的重大升级,所有日志配置都存放在新的 config/logging.php 配置文件,你现在可以轻松构建发送日志消息到多个处 理器的日志”堆栈”。例如,你可以发送所有 debug 级别消息到系统日志同时发送 error 级别消息到 Slack 以便团队成员可以快速响应: nels.php 文件可能会变得很臃肿,所以,作为使用闭包来授权频道的替代方案,你现在可以使用 频道类。要生成一个频道类,可以使用 Artisan 命令 make:channel。该命令会将新生成的频道类存放到 app/Broadcasting 目录下: php artisan make:channel OrderChannel 接下来,在 routes/channels.php 文件中注册这个频道类: OrderChannel::class); 最后,可以将频道的授权逻辑放到频道类的 join 方法。join 方法中的代码等同于之前位于频道授权闭包中的处理逻辑。当然,你还可以使用频道模 型绑定: php namespace App\Broadcasting; use App\User; use App\Order; class OrderChannel { /**0 码力 | 377 页 | 14.56 MB | 1 年前3
 Laravel 5.1 中文文档PSR-2 代码风格,新增事件广播 机制,中间件参数,Artisan 优化,等等。 PHP 5.5.9+ 由于 PHP 5.4 将会在今年 9 月份“寿终正寝”,并且 PHP 开发组不会再提供安全更新,Laravel 5.1 要求 PHP5.5.9 或更高版本。PHP5.5.9 兼容一些最新版本的流行 PHP 库如 Guzzle 和 AWS SDK。 LTS Laravel 5.1 是 里,中间件可以接受额外的自定义参数,例如,如果你的应用需要在执行给定 的 action 之前验证被授予指定“角色”的认证用户,可以创建一个 RoleMiddleware 来接收角 色名称作为额外参数: php namespace App\Http\Middleware; use Closure; class RoleMiddleware { /** * 运行请求过滤器 现在可以通过使用模型工厂附带一种简单的方式类创建 Eloquent 模型存根,模型工 厂允许你为 Eloquent 模型定义一系列默认属性,然后为测试或数据库填充生成模型实例。 模型工厂还可以利用强大的 PHP 扩展库 Faker 类生成随机的属性数据。 $factory->define('App\User', function ($faker) { return [ 'name'0 码力 | 307 页 | 3.46 MB | 1 年前3 Laravel 5.1 中文文档PSR-2 代码风格,新增事件广播 机制,中间件参数,Artisan 优化,等等。 PHP 5.5.9+ 由于 PHP 5.4 将会在今年 9 月份“寿终正寝”,并且 PHP 开发组不会再提供安全更新,Laravel 5.1 要求 PHP5.5.9 或更高版本。PHP5.5.9 兼容一些最新版本的流行 PHP 库如 Guzzle 和 AWS SDK。 LTS Laravel 5.1 是 里,中间件可以接受额外的自定义参数,例如,如果你的应用需要在执行给定 的 action 之前验证被授予指定“角色”的认证用户,可以创建一个 RoleMiddleware 来接收角 色名称作为额外参数: php namespace App\Http\Middleware; use Closure; class RoleMiddleware { /** * 运行请求过滤器 现在可以通过使用模型工厂附带一种简单的方式类创建 Eloquent 模型存根,模型工 厂允许你为 Eloquent 模型定义一系列默认属性,然后为测试或数据库填充生成模型实例。 模型工厂还可以利用强大的 PHP 扩展库 Faker 类生成随机的属性数据。 $factory->define('App\User', function ($faker) { return [ 'name'0 码力 | 307 页 | 3.46 MB | 1 年前3
 Laravel 5.2 中文文档认证脚手架 通过多认证驱动,Laravel 可以轻松处理后台用户认证;此外,Laravel 5.2 还提供了便捷 的方式来创建前台认证视图,只需在终端执行如下 Artisan 命令即可: php artisan make:auth 该命令会生成纯文本的、兼容 Bootstrap 样式的视图用于登录、注册和密码重置。该命令 还会使用相应路由更新路由文件。 注意:该功能特性只能在新应用中使用,不能再应用升级过程中使用。 csrf 路由分组到一个 web 组,或者将访问频率限制分组到 api 中。 实际上,默认的 Laravel 5.2 应用结构采用的正是这个方法。例如,在默认 的 App\Http\Kernel.php 文件中你会看到如下内容: /** * The application's route middleware groups. * * @var array */ protected 部分。 认证 配置文件 更新 config/auth.php 文件内容如下: https://github.com/laravel/laravel/blob/develop/config/auth.php 更新完成后,基于原来的配置设置认证选项,如果不做改动,认证服务将基于 Laravel 5.1。 在新的 auth.php 配置文件中,要特别注意 passwords.users.email0 码力 | 377 页 | 4.56 MB | 1 年前3 Laravel 5.2 中文文档认证脚手架 通过多认证驱动,Laravel 可以轻松处理后台用户认证;此外,Laravel 5.2 还提供了便捷 的方式来创建前台认证视图,只需在终端执行如下 Artisan 命令即可: php artisan make:auth 该命令会生成纯文本的、兼容 Bootstrap 样式的视图用于登录、注册和密码重置。该命令 还会使用相应路由更新路由文件。 注意:该功能特性只能在新应用中使用,不能再应用升级过程中使用。 csrf 路由分组到一个 web 组,或者将访问频率限制分组到 api 中。 实际上,默认的 Laravel 5.2 应用结构采用的正是这个方法。例如,在默认 的 App\Http\Kernel.php 文件中你会看到如下内容: /** * The application's route middleware groups. * * @var array */ protected 部分。 认证 配置文件 更新 config/auth.php 文件内容如下: https://github.com/laravel/laravel/blob/develop/config/auth.php 更新完成后,基于原来的配置设置认证选项,如果不做改动,认证服务将基于 Laravel 5.1。 在新的 auth.php 配置文件中,要特别注意 passwords.users.email0 码力 | 377 页 | 4.56 MB | 1 年前3
 Laravel 5.3 中文文档........................................................................................ 45 3. 开发环境 .................................................................................................. Algolia 驱动,不 过,编写自己的驱动很简单,你可以通过自己的搜索实现扩展 Scout。 你可以简单通过添加 Searchable trait 到模型让模型变得可搜索: php namespace App; use Laravel\Scout\Searchable; use Illuminate\Database\Eloquent\Model; 定 义 之 外 , 现 在 Artisan 命 令 还 可 以 在 app/Console/Kernel.php 文 件 的 commands 方法中以简单闭包的方式定义。在新安装的 Laravel 5.3 应用中, commands 方法会加 载 routes/console.php 文件,从而允许你基于闭包、以路由风格定义控制台命令: Artisan::command('build0 码力 | 691 页 | 9.37 MB | 1 年前3 Laravel 5.3 中文文档........................................................................................ 45 3. 开发环境 .................................................................................................. Algolia 驱动,不 过,编写自己的驱动很简单,你可以通过自己的搜索实现扩展 Scout。 你可以简单通过添加 Searchable trait 到模型让模型变得可搜索: php namespace App; use Laravel\Scout\Searchable; use Illuminate\Database\Eloquent\Model; 定 义 之 外 , 现 在 Artisan 命 令 还 可 以 在 app/Console/Kernel.php 文 件 的 commands 方法中以简单闭包的方式定义。在新安装的 Laravel 5.3 应用中, commands 方法会加 载 routes/console.php 文件,从而允许你基于闭包、以路由风格定义控制台命令: Artisan::command('build0 码力 | 691 页 | 9.37 MB | 1 年前3
 Learning LaravelList all registered routes filtered by multiple methods 8 Running Laravel Artisan commands using PHP code 9 Creating and registering new artisan command 9 Chapter 3: Authentication 10 Examples 10 'Unless' statements 18 Loops 18 'While' loop 19 'Foreach' loop 19 'Forelse' Loop 19 Echoing PHP expressions 20 Echoing a variable 20 Echoing an element in an array 20 Echoing an object property 24 Using View::composer 24 Closure-based composer 24 Class-based composer 24 Execute arbitrary PHP code 25 Chapter 6: Cashier 26 Remarks 26 Examples 26 Stripe Setup 26 Chapter 7: Change default0 码力 | 216 页 | 1.58 MB | 1 年前3 Learning LaravelList all registered routes filtered by multiple methods 8 Running Laravel Artisan commands using PHP code 9 Creating and registering new artisan command 9 Chapter 3: Authentication 10 Examples 10 'Unless' statements 18 Loops 18 'While' loop 19 'Foreach' loop 19 'Forelse' Loop 19 Echoing PHP expressions 20 Echoing a variable 20 Echoing an element in an array 20 Echoing an object property 24 Using View::composer 24 Closure-based composer 24 Class-based composer 24 Execute arbitrary PHP code 25 Chapter 6: Cashier 26 Remarks 26 Examples 26 Stripe Setup 26 Chapter 7: Change default0 码力 | 216 页 | 1.58 MB | 1 年前3
 Laravel 5.0 Documentation
documentation to learn all about the scheduler! The php artisan tinker command now utilizes Psysh by Justin Hileman, a more robust REPL for PHP. If you liked Boris in Laravel 4, you're going to love love Psysh. Even better, it works on Windows! To get started, just try: php artisan tinker Instead of a variety of confusing, nested environment configuration directories, Laravel 5 now utilizes DotEnv boiler-plate free method of validating user input. Let's dig in and look at a sample FormRequest : php namespace App\Http\Requests; class RegisterRequest extends FormRequest { public function rules()0 码力 | 242 页 | 1.44 MB | 1 年前3 Laravel 5.0 Documentation
documentation to learn all about the scheduler! The php artisan tinker command now utilizes Psysh by Justin Hileman, a more robust REPL for PHP. If you liked Boris in Laravel 4, you're going to love love Psysh. Even better, it works on Windows! To get started, just try: php artisan tinker Instead of a variety of confusing, nested environment configuration directories, Laravel 5 now utilizes DotEnv boiler-plate free method of validating user input. Let's dig in and look at a sample FormRequest : php namespace App\Http\Requests; class RegisterRequest extends FormRequest { public function rules()0 码力 | 242 页 | 1.44 MB | 1 年前3
 Laravel 3.2 Documentationid Laravel v3.2 A Framework For Web Artisans Laravel is a clean and classy framework for PHP web development. Freeing you from spaghetti code, Laravel helps you create wonderful applications Laravel will enjoy the same ease of development that is found in the most popular and lightweight PHP frameworks. More experienced users will appreciate the opportunity to modularize their code in ways "Artisan" command-line tool to automatically install them.  The Eloquent ORM is the most advanced PHP ActiveRecord implementation available. With the capacity to easily apply constraints to both relationships0 码力 | 139 页 | 1.13 MB | 1 年前3 Laravel 3.2 Documentationid Laravel v3.2 A Framework For Web Artisans Laravel is a clean and classy framework for PHP web development. Freeing you from spaghetti code, Laravel helps you create wonderful applications Laravel will enjoy the same ease of development that is found in the most popular and lightweight PHP frameworks. More experienced users will appreciate the opportunity to modularize their code in ways "Artisan" command-line tool to automatically install them.  The Eloquent ORM is the most advanced PHP ActiveRecord implementation available. With the capacity to easily apply constraints to both relationships0 码力 | 139 页 | 1.13 MB | 1 年前3
共 17 条
- 1
- 2













