tomkyle / boilerplate-php
PHP 包模板
1.2.0
2024-08-28 17:44 UTC
Requires
- php: ^8.3
- ext-json: *
- psr/cache: ^1.0|^2.0|^3.0
- psr/http-client: ^1.0
- psr/http-factory: ^1.0
- psr/log: ^1.1|^2.0|^3.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.63
- guzzlehttp/guzzle: ^7.0
- laminas/laminas-log: ^2.15
- nyholm/psr7: ^1.3
- phpstan/phpstan: ^1.12
- phpunit/phpunit: ^11.0
- rector/rector: ^1.2
- spatie/phpunit-watcher: ^1.0
- symfony/cache: ^5.0|^6.0
- tomkyle/find-run-test: ^1.0
Suggests
- guzzlehttp/guzzle: PSR-18 client (as of v7)
- monolog/monolog: PSR-3 Logger of choice
- nyholm/psr7: PSR-17 factories
- symfony/cache: PSR-6 and PSR-16 Cache engines
README
PHP 包模板仓库。
开始新项目
$ composer create-project tomkyle/boilerplate-php new-project
$ cd new-project
$ composer install
$ npm install
需求和建议
$ composer require monolog/monolog $ composer require symfony/cache $ composer require nyholm/psr7 $ composer require guzzlehttp/guzzle
开发
运行 npm update
并监视文件系统中的 PHP 代码更改。查看 package.json 了解所有监视和测试任务的列表。
$ nmp run watch