danbettles/php-project-template
最新稳定版本:v2.0.0
Composer 安装命令:
composer create-project danbettles/php-project-template
包简介
README 文档
README
A most basic PHP project template with PHPUnit, PHPStan, and PHP_CodeSniffer ready to roll. The project will be ISC-licensed by default.
Additionally, the following Composer scripts are included to help you quickly get going.
composer app:dev:test: runs the PHPUnit unit testscomposer app:dev:analyse: runs PHPStan at level 11composer app:dev:lint: runs PHP_CodeSniffercomposer app:dev:check-quality: runs the PHPUnit unit tests, PHPStan, and then PHP_CodeSniffer
Instructions
Run the following to create the skeleton of your new project.
composer create-project danbettles/php-project-template <dir-to-create>
Important
Replace <dir-to-create> with the actual path of the directory to create
In the new project:
- In
composer.json:- Update
name - If need be, update
description - Check/update
type - Update
authors
- Update
- Except in
phpcs.xml, replace "DanBettles"—match case, match whole word—with your vendor namespace - Replace "PhpProjectTemplate"—match case, match whole word—with the namespace of your app
- Run
composer update - Update the year and name in
LICENSE - Rewrite this file
- Start building from
tests/SomethingTest.phpandsrc/Something.php
统计信息
- 总下载量: 32
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: ISC
- 更新时间: 2021-03-27