An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

          

# CakePHP-UuidShell

[![Latest Version](https://img.shields.io/github/release/loadsys/CakePHP-UuidShell.svg?style=flat-square)](https://github.com/loadsys/CakePHP-UuidShell/releases)
[![Build Status](https://img.shields.io/travis/loadsys/CakePHP-UuidShell/master.svg?style=flat-square)](https://travis-ci.org/loadsys/CakePHP-UuidShell)
[![Coverage Status](https://img.shields.io/coveralls/loadsys/CakePHP-UuidShell/master.svg?style=flat-square)](https://coveralls.io/r/loadsys/CakePHP-UuidShell)
[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE.md)
[![Total Downloads](https://img.shields.io/packagist/dt/loadsys/cakephp-uuid-shell.svg?style=flat-square)](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