yoghi/madda

模型和领域驱动架构

安装: 0

依赖: 0

建议者: 0

安全: 0

星标: 0

关注者: 3

分支: 0

开放问题: 0

类型:application

dev-analysis-XNdNn4 2016-09-11 20:37 UTC

This package is not auto-updated.

Last update: 2024-09-14 19:20:02 UTC


README

Author Code Climate Code Climate Coverage Coverage Status Codecov VersionEye Scrutinizer Code Quality Build Status license

模型和领域驱动架构

需求

  • Symfony 3.0+
  • 至少 php 5.6.8
  • justinrainbow/json-schema 1.6 (需要从 php-raml-parser -> 受阻)

安装

composer install yoghi/madda

待办事项

代码整洁

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

贡献

欢迎拉取请求。请参阅我们的贡献指南。

此捆绑包存在单元和/或功能测试。有关运行测试的指南,请参阅测试文档。

感谢所有已经做出贡献的人。