amayer5125/galley
Composer 安装命令:
composer require amayer5125/galley
包简介
Simple Docker dev environments for CakePHP
README 文档
README
Provides a small Docker dev environment for CakePHP development.
Introduction
Galley provides a Docker powered local development experience for CakePHP that is compatible with macOS, Windows (WSL2), and Linux. Other than Docker, no software or libraries are required to be installed on your local computer before using Galley. Galley's simple CLI means you can start building your CakePHP application without any previous Docker experience.
Inspiration
Galley is inspired by and derived from Vessel by Chris Fidao as well as Laravel Sail. If you're looking for a thorough introduction to Docker, check out Chris' course: Shipping Docker.
Installation
You can install this plugin into your CakePHP application using composer.
The recommended way to install composer packages is:
composer require --dev amayer5125/galley
Next load the plugin in your src/Application.php file.
$this->addOptionalPlugin('Galley');
After you have the plugin installed you can initalize Galley by running the following:
bin/cake galley install
This will create a docker-compose.yml file in your project's root directory. After following the directions output by the command, you can start your application by running:
vendor/bin/galley up -d
Head to http://localhost in your browser and see your CakePHP site!
Optional Setup
Instead of repeatedly typing vendor/bin/galley to execute Galley commands, you may wish to configure a Bash or ZSH alias that allows you to execute Galley's commands more easily:
alias galley="vendor/bin/galley"
Usage
To get a list of supported commands and examples run:
vendor/bin/galley --help
Xdebug Support
Galley comes with Xdebug support out of the box. To enable it create a file named docker-compose.override.yml in the root of your project with the following contents:
services:
app:
environment:
XDEBUG_MODE: "debug,develop"
extra_hosts:
- "host.docker.internal:host-gateway"
After creating the file run galley up -d. Xdebug should now be enabled.
Make sure the docker-compose.override.yml file is ignored from git.
amayer5125/galley 适用场景与选型建议
amayer5125/galley 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 9.17k 次下载、GitHub Stars 达 1, 最近一次更新时间为 2021 年 05 月 16 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「cakephp」 「docker」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 amayer5125/galley 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 amayer5125/galley 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 amayer5125/galley 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
CakePHP 4.x AdminLTE Theme.
Docker based testing environment for shopware projects.
The Laragoon utility package
Docker compose for Robo Task Runner
Deployment command
Email Toolkit Plugin for CakePHP
统计信息
- 总下载量: 9.17k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-05-16