greeny/package-template
Composer 安装命令:
composer require greeny/package-template
包简介
Core files of any PHP package for easy setup
README 文档
README
This is a template for PHP library. It features pre-installed libraries:
- nette/tester
- slevomat/coding-standard
- consistence/coding-standard
- jakub-onderka/php-parallel-lint
- phpstan/phpstan
It also has .travis.yml file for fast setup.
Made for PHP 7.1 and tested on it, may work on earlier versions with some modifications to enabled Sniffs and PHPStan tests.
Starting new package
-
create project
composer create-project greeny/package-template YourAwesomeProjectName
-
change composer.json to provide correct information about your package / vendor name, autoloading settings, description and author
-
write code to src folder
-
test your code using
composer build -
setup travis integration (enable travis testing for your repository, there is already .travis.yml file present)
-
profit
Feel free to use this and/or suggest changes. I am open to anything.
统计信息
- 总下载量: 20
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 6
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-04-04