jpchateau/prototype-php-library
最新稳定版本:1.6.1
Composer 安装命令:
composer require jpchateau/prototype-php-library
包简介
Quickly initiate the development of a new PHP library
README 文档
README
PHP Library Prototype is a tool to quickly initiate the development of a new PHP library.
Features
The aim of this prototype is to save time when starting to develop a PHP library. It will:
- Download and install basic files - a class and its test class with proper namespaces
- Install popular QA tools: phpunit, phpstan and phpcs
- Generate basic .gitignore and README files
Please note that .gitignore file is based upon gitignore.io API.
Requirements
- PHP >= 7.3
- php-xml extension
- php-mbstring extension
- Composer
Check the PHP roadmap to see the PHP versions supported by this library.
Usage
Creating a library is a simple two-step process.
- First, create a project from this prototype. Replace
MyDirectorywith your own value to create the project and move into the created directory:
$ composer create-project jpchateau/prototype-php-library MyDirectory && cd $_
- Then, run the install command to complete the process. Replace
MyCompanyandMyProjectwith your own values:
$ make company=MyCompany project=MyProject install
You are ready to develop!
Don't forget to pick up a license ;)
Tests
$ make tests
QA Tools
$ bin/phpcs src/ --standard=PSR2 $ bin/phpstan analyse -l 7 src/
统计信息
- 总下载量: 58
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-10-15