loadsys/cakephp-uuid-shell
Composer 安装命令:
composer require loadsys/cakephp-uuid-shell
包简介
An incredibly simple Shell that exposes the String::uuid() method to the command line. Convenient for generating new IDs in bulk for seed or development data that use UUIDs as primary keys.
README 文档
README
A CakePHP plugin that provides a Shell to read an app's Configure vars from the command line.
- This is the Cake 3.x version of the plugin, which exists on the
masterbranch and is tracked by the~1.0semver. - For the Cake 2.x version of this plugin, please use the repo's
cake-2.xbranch.
Requirements
- CakePHP 3.0.0+
- PHP 5.6+
Installation
$ composer require loadsys/cakephp-uuid-shell:~1.0
In your config/bootstrap.php file, add:
Plugin::load('Uuid', ['bootstrap' => false, 'routes' => false]);
Usage
To use this plugin, call it from the command line:
$ cd path/to/app/ $ ./bin/cake uuid # Generate 15 UUIDs. $ ./bin/cake uuid 15
Contributing
Code of Conduct
This project has adopted the Contributor Covenant as its code of conduct. All contributors are expected to adhere to this code. Translations are available.
Reporting Issues
Please use GitHub Isuses for listing any known defects or issues.
Development
When developing this plugin, please fork and issue a PR for any new development.
Set up a working copy:
$ git clone git@github.com:YOUR_USERNAME/CakePHP-UuidShell.git
$ cd CakePHP-UuidShell/
$ composer install
$ vendor/bin/phpcs --config-set installed_paths vendor/loadsys/loadsys_codesniffer,vendor/cakephp/cakephp-codesniffer
Make your changes:
$ git checkout -b your-topic-branch
# (Make your changes. Write some tests.)
$ vendor/bin/phpunit
$ vendor/bin/phpcs -p --extensions=php --standard=Loadsys ./src ./tests
Then commit and push your changes to your fork, and open a pull request.
License
Copyright
统计信息
- 总下载量: 3.83k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-12-18