https://github.com/loadsys/cakephp-uuidshell
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.
https://github.com/loadsys/cakephp-uuidshell
Last synced: 10 months ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/loadsys/cakephp-uuidshell
- Owner: loadsys
- License: mit
- Created: 2015-10-23T16:25:30.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-12-28T17:18:08.000Z (about 10 years ago)
- Last Synced: 2025-03-27T21:14:42.866Z (10 months ago)
- Language: PHP
- Size: 0 Bytes
- Stars: 0
- Watchers: 9
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# CakePHP-UuidShell
[](https://github.com/loadsys/CakePHP-UuidShell/releases)
[](https://travis-ci.org/loadsys/CakePHP-UuidShell)
[](https://coveralls.io/r/loadsys/CakePHP-UuidShell)
[](LICENSE.md)
[](https://packagist.org/packages/loadsys/cakephp-uuid-shell)
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 `master` branch and is tracked by the `~1.0` semver.
* For the Cake 2.x version of this plugin, please use the repo's `cake-2.x` branch.
## Requirements
* CakePHP 3.0.0+
* PHP 5.6+
## Installation
```bash
$ composer require loadsys/cakephp-uuid-shell:~1.0
```
In your `config/bootstrap.php` file, add:
```php
Plugin::load('Uuid', ['bootstrap' => false, 'routes' => false]);
```
## Usage
To use this plugin, call it from the command line:
```shell
$ 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](CODE_OF_CONDUCT.md). All contributors are expected to adhere to this code. [Translations are available](http://contributor-covenant.org/).
### Reporting Issues
Please use [GitHub Isuses](https://github.com/loadsys/CakePHP-UuidShell/issues) 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:
```shell
$ 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:
```shell
$ 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
[MIT](https://github.com/loadsys/CakePHP-UuidShell/blob/master/LICENSE.md)
## Copyright
[Loadsys Web Strategies](http://www.loadsys.com) 2015