Laravel 中国版

此项目已废弃请移步:https://github.com/laravel4china/laravel

对官方原版源码作了适量修改,但仍保持原汁原味,与官方原版的使用体验完全一致。Laravel 中国版所做的修改都是可选的,这使得框架更符合国情、更适合作为新项目基石。仅建议具有一定 Laravel 经验的开发者使用。

主要特性:

基于 Laravel 5.6 (版本选择的原则是:最新的稳定版) Laravel 安装器可一键执行常用的部署命令 Node 模块安装器可一键安装 Laravel Mix 并编译静态资源 自动生成 IDE 代码提示辅助文件(基于 Laravel IDE Helper) 自动生成 APP_KEY 内置中文语言包 时区默认为中国上海 .gitignore 忽略 IDE 相关文件 演示页面去除 Google 字体引用

Laravel 安装器

此安装器脚本针对 Ubuntu 系统编写,可自动完成以下操作:

全局安装 PHP Composer 复制 .env 文件 执行 composer install --no-dev 安装依赖 执行 php artisan key:generate 生成App key 执行优化 创建符号链接(将 public/storage 目录链接去 storage/app/public目录) 赋予 bootstrap/cache 目录和 storage 目录读写权限

使用方法

在应用根目录下执行命令:

sudo chmod 777 install.sh && ./install.sh

参数说明

参数 说明
-q 安静模式,脚本将静默执行,适用于自动部署的场景
-e (安静模式下必填)指定 env 文件。示例: -e .env.example
-k (可选)执行 php artisan key:generate
-o (可选)执行 autoload、路由、配置优化

Node 模块安装器

此安装器脚本针对 Ubuntu 系统编写,可自动完成以下操作:

全局安装 Node.js v6.x LTS 设置 npm 使用淘宝镜像,大大提高下载速度 安装 Laravel Mix 及相关 Node.js 依赖 执行 npm run production 编译前端资源

使用方法

在应用根目录下执行命令:

sudo chmod 777 install-node.sh && ./install-node.sh

About Laravel

Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel takes the pain out of development by easing common tasks used in many web projects, such as:

Simple, fast routing engine. Powerful dependency injection container. Multiple back-ends for session and cache storage. Expressive, intuitive database ORM. Database agnostic schema migrations. Robust background job processing. Real-time event broadcasting.

Laravel is accessible, powerful, and provides tools required for large, robust applications.

Learning Laravel

Laravel has the most extensive and thorough documentation and video tutorial library of all modern web application frameworks, making it a breeze to get started with the framework.

If you don't feel like reading, Laracasts can help. Laracasts contains over 1100 video tutorials on a range of topics including Laravel, modern PHP, unit testing, and JavaScript. Boost you and your team's skills by digging into our comprehensive video library.

Laravel Sponsors

We would like to extend our thanks to the following sponsors for funding Laravel development. If you are interested in becoming a sponsor, please visit the Laravel Patreon page.

Vehikl Tighten Co. Kirschbaum Development Group 64 Robots Cubet Techno Labs Cyber-Duck British Software Development Webdock, Fast VPS Hosting DevSquad UserInsights Fragrantica SOFTonSOFA User10 Soumettre.fr CodeBrisk 1Forge TECPRESSO Runtime Converter WebL'Agence Invoice Ninja iMi digital Earthlink Steadfast Collective We Are The Robots Inc. Understand.io Abdel Elrafa

Contributing

Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the Laravel documentation.

Security Vulnerabilities

If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell via taylor@laravel.com. All security vulnerabilities will be promptly addressed.

License

The Laravel framework is open-source software licensed under the MIT license.

版权声明:

1、该文章(资料)来源于互联网公开信息,我方只是对该内容做点评,所分享的下载地址为原作者公开地址。
2、网站不提供资料下载,如需下载请到原作者页面进行下载。
3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考学习用!
4、如文档内容存在违规,或者侵犯商业秘密、侵犯著作权等,请点击“违规举报”。