solution10/devkit
Composer 安装命令:
composer require solution10/devkit
包简介
Aides in the development of the S10 packages by grouping dev tools together into one package
README 文档
README
This package aides in the development of the S10 packages by grouping dev tools together into one package and providing a sweet command line tool for generating common elements of an s10 component (Makefile, folders, legal docs, phpunit etc)
Whilst this is heavily focused on the s10 components, there might be something in here useful to others! Let me know if it is!
Installation
$ composer require --dev solution10/devkit
By using the --dev option you ensure that the devkit isn't pulled down when people install and use your component in production.
Dependancies Installed
- phpUnit
- PHP Code Sniffer
- PHP Coveralls (for Travis generated coverage reports)
- APIgen
Command line tool
The command line tool can create all of the project files you need either all in one or individually if you only want some.
The tool can create:
- Directories (src/ tests/ and docs/)
- .gitignore
- "Legal" docs (Contributing, License and readme)
- Makefile (with shortcut for generating API docs)
- PHPUnit configuration and bootstrap file
- Travis configuration file
Use $ ./vendor/bin/s10devkit list to see the individual commands and info on how to use them
How to use the Devkit
On starting a new component.
$ mkdir s10-mycomponent $ touch s10-mycomponent/composer.json
Then fill in composer.json with a name, description and require-dev line like so:
{
"name": "solution10/(put the name of your component here)",
"description": "(put your component description here)",
"minimum-stability": "stable",
"license": "MIT",
"authors": [
{
"name": "Your Name",
"email": "Your Email"
}
],
"require-dev": {
"solution10/devkit": "@dev"
}
}
By filling in the title, description and authors, the devkit can automatically generate things like the README, phpUnit config and Licensing info without you doing a thing.
Now all that's left to do is run composer install, and then the devkit
$ composer install $ ./vendor/bin/s10devkit bootstrap-component
Instead of bootstrap-component, you could always just generate the things you want:
$ ./vendor/bin/s10devkit makefile && ./vendor/bin/s10devkit gitignore
To see all of the available generators, simply list:
$ ./vendor/bin/s10devkit
The Travis Config file
By default the Travis file is setup to run phpunit and phpcs but obviously you can change it to do whatever you want!
Authors
- Alex Gisby alex@solution10.com
solution10/devkit 适用场景与选型建议
solution10/devkit 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 254 次下载、GitHub Stars 达 0, 最近一次更新时间为 2015 年 02 月 18 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 solution10/devkit 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 solution10/devkit 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 254
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 17
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-02-18