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.

Installs: 3 826

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 10

Forks: 0

Open Issues: 1

Type:cakephp-plugin

1.0.1 2015-12-28 17:03 UTC

This package is not auto-updated.

Last update: 2024-10-26 19:10:45 UTC


README

Latest Version Build Status Coverage Status Software License Total Downloads

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

$ 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

MIT

Copyright

Loadsys Web Strategies 2015