jncampbell/scaffolder
Composer 安装命令:
composer require jncampbell/scaffolder
包简介
A terminal command to generate php package boilerplate
README 文档
README
The Scaffolder package generates the boilerplate for a php package. Running the command creates the following directory structure:
packageName/
|–composer.json (w/ boilerplate)
|–phpunit.xml (w/ boilerplate)
|–src/
|–tests/
|–public/ (optional w/ --playground option)
|–index.php
Requirements
- PHP
Installation
Globally (Composer)
$ composer global require jncampbell/scaffolder
Locally (Composer)
$ composer require jncampbell/scaffolder
Usage
The command will be stored in your vendor/bin directory
The scaffolder new command generates the boilerplate. A name is required.
$ vendor/bin/scaffolder new nameOfYourPackage
The --playground option creates a public folder with an index.php page
$ vendor/bin/scaffolder new nameOfYourPackage --playground
Once the boilerplate is generated, fill in the composer.json with your package's information, cd into your package directory and run a composer install. Then begin building your package.
##Screenshots
These are the templates that will be generated:
##License
MIT
统计信息
- 总下载量: 35
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-12-14