yoghi / madda
模型和领域驱动架构
dev-analysis-XNdNn4
2016-09-11 20:37 UTC
Requires
- php: >=5.6
- bocharsky-bw/arrayzy: ^0.6.0
- cweagans/composer-patches: 1.5.0
- friendsofphp/php-cs-fixer: ^1.12
- justinrainbow/json-schema: ~1.6
- kubawerlos/php-raml-parser: 2.0.*
- league/flysystem: ^1.0
- nette/php-generator: ^2.3
- oodle/inflect: ~0.2
- psr/log: ^1.0
- symfony/console: ^3.0
- symfony/filesystem: ^3.0
- symfony/finder: ^3.0
- symfony/process: ^3.0
- symfony/yaml: ^3.0
- webpatser/laravel-uuid: 2.*
Requires (Dev)
- codeclimate/php-test-reporter: ^0.3.2
- johnkary/phpunit-speedtrap: ^1.0
- mikey179/vfsstream: ^1.6
- monolog/monolog: ^1.19
- phpunit/php-code-coverage: ^4.0
- phpunit/phpunit: 5.5.*
- satooshi/php-coveralls: ^1.0
- sensiolabs/security-checker: ^3.0
- sllh/php-cs-fixer-styleci-bridge: ^2.1
This package is not auto-updated.
Last update: 2024-09-14 19:20:02 UTC
README
模型和领域驱动架构
需求
- Symfony 3.0+
- 至少 php 5.6.8
- justinrainbow/json-schema 1.6 (需要从 php-raml-parser -> 受阻)
安装
composer install yoghi/madda
待办事项
- Packagist
- Codecov
- Coveralls
- VersionEye -> 控制依赖更新
- Scrutinizer-ci
- 许可证徽章
- git tag -a 1.0.0
- 变更日志/发布工作流程
- 在生成结束时添加应用 php-cs-fixer 的能力
- Wiki
- 常见问题解答
- raml 到控制器
- 领域驱动设计 yaml 描述符到 pojo 和结构元素
- 与现有总线系统(用于事件传播)集成
- 贡献指南
代码整洁
phpcbf **/*.php --standard=PSR2
bin/parallel-lint --exclude app --exclude vendor .
bin/phpcs --colors -wp src --report=summary --standard=PSR2,phpcs.xml
bin/phpunit --coverage-php tests/coverage/phpunit.cov tests
bin/phpspec run --format=pretty --no-code-generation
调试
使用 atom 时需要配置监听端口(通过 cson 或正常设置。)
在 php 层需要安装 xdebug
phpbrew ext install xdebug stable
配置
cd ~/.phpbrew/php/var/db/
编辑位于 "zend_extension=...." 下的 xdebug.ini 文件
xdebug.remote_enable=1
xdebug.remote_host=127.0.0.1
xdebug.remote_connect_back=1 # Not safe for production servers
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_autostart=true
保持启用会减慢速度,因此建议只在需要时启用。
phpbrew ext disable xdebug
phpbrew ext enable xdebug
信息
phpbrew ext show xdebug
贡献
欢迎拉取请求。请参阅我们的贡献指南。
此捆绑包存在单元和/或功能测试。有关运行测试的指南,请参阅测试文档。
感谢所有已经做出贡献的人。