ajessup/laravel 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

ajessup/laravel

Composer 安装命令:

composer require ajessup/laravel

包简介

The Laravel Framework, lightly optimized for use with Google App Engine

README 文档

README

Latest Stable Version Total Downloads

The wonderful Laravel 4 Framework, lightly tweaked to run well on Google App Engine out of the box

Usage

Ensure you have downloaded and installed the latest Google App Engine for PHP SDK and Composer. Then create a new project by running this command from your terminal:

composer create-project ajessup/laravel your-project-name -s dev

This will create a default project shell including the necessary configuration files. You can start the project the App Engine launcher or via the dev_appserver.py command included in the App Engine SDK:

dev_appserver.py ./your-project-name/

This will run your project on your local machine within the App Engine development server, with all necessary production services such as memcache emulated.

Now you just need to build your application! If you're looking for inspiration, try the official Laravel Quickstart.

Deploying to App Engine

To deploy to Google App Engine, you must first:

  • Have created a project in the Google Cloud Console, and have enabled billing.
  • Within the project, have created a Google Cloud Storage bucket, and made the app engine service account an owner. This bucket will be used to store files useful to Laravel such as compiled blade templates.

Before deploying the first time:

  • Open up app.yaml in your project, and change the application: attribute to match the name of your project (which is also the ID of your App Engine application)
  • Open up php.ini in your project, and change the value for the ini setting google_app_engine.allow_include_gs_buckets to the name of the bucket you created above. When running on App Engine, Laravel will use this bucket by default to write to storage

To deploy your application, you can either use the App Engine launcher or via the appcfg.py command included in the App Engine SDK:

 appcfg.py ./your-project-name/

What's been changed?

This fork of the Laravel framework has been lightly customized to work well with Google App Engine out of the box. This includes the following changes from the default Laravel configuration:

  • Session and cache storage defaults to memcached. App Engine provides free shared memcache to all applications, which can be upgraded to dedicated memcache if necessary.
  • Monolog is configured to log everything to syslog() by default. PHP calls logged to syslog() are then consolidated and available on App Engine's log viewer
  • Two environments are explicitly defined - local (when running on the Development Server) and appengine (when running on App Engine itself)
  • When running in the local environment, Laravel uses it's normal storage directory. When running in the appengine environment, Laravel will use a Cloud Storage bucket.
  • Default app.yaml and php.ini configuration files for App Engine are included

Official Documentation

Documentation for the entire framework can be found on the Laravel website.

Reporting issues

Unless you are reporting/fixing an issue that relates to Laravel on App Engine specifically, issues and pull requests should be filed on the laravel/framework repository.

Acknowledgements

As well as the awesome Laravel team, special thanks go to @amygdala and @milesgioli for finding and documenting many of the changes required to run Laravel on Google App Engine.

License

This derivative of the Laravel framework is open-sourced software licensed under the MIT license

ajessup/laravel 适用场景与选型建议

ajessup/laravel 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 267 次下载、GitHub Stars 达 22, 最近一次更新时间为 2013 年 12 月 26 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「framework」 「laravel」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 ajessup/laravel 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 ajessup/laravel 我们能提供哪些服务?
定制开发 / 二次开发

基于 ajessup/laravel 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 267
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 22
  • 点击次数: 6
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 22
  • Watchers: 3
  • Forks: 24741
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2013-12-26