2017 © Pedro Peláez
 

library random

A random int / string / byte generator

image

vakata/random

A random int / string / byte generator

  • Friday, June 2, 2017
  • by vakata
  • Repository
  • 1 Watchers
  • 1 Stars
  • 5,361 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 11 % Grown

The README.md

random

Latest Version on Packagist ![Software License][ico-license] Build Status Code Climate ![Tests Coverage][ico-cc-coverage], (*1)

A random int / string / byte generator for PHP., (*2)

Install

Via Composer, (*3)

``` bash $ composer require vakata/random, (*4)


## Usage ``` php // random 16 char alphanum string \vakata\random\Generator::string(16); // random 10 char hex string \vakata\random\Generator::string(10, 'abcdef01234567890'); // random int between 0 and PHP_INT_MAX (inclusive) \vakata\random\Generator::number(); // random int between 3 and 12 (inclusive) \vakata\random\Generator::number(3, 12); // 16 bytes \vakata\random\Generator::bytes(16);

Read more in the API docs, (*5)

Testing

bash $ composer test, (*6)

Contributing

Please see CONTRIBUTING for details., (*7)

Security

If you discover any security related issues, please email github@vakata.com instead of using the issue tracker., (*8)

Credits

License

The MIT License (MIT). Please see License File for more information., (*9)

The Versions

02/06 2017

dev-master

9999999-dev https://github.com/vakata/random

A random int / string / byte generator

  Sources   Download

MIT

The Requires

  • php >=7.0.0

 

The Development Requires

random vakata

02/06 2017

2.0.0

2.0.0.0 https://github.com/vakata/random

A random int / string / byte generator

  Sources   Download

MIT

The Requires

  • php >=7.0.0

 

The Development Requires

random vakata

30/01 2017

1.1.1

1.1.1.0 https://github.com/vakata/random

A random int / string / byte generator

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

random vakata

30/01 2017

1.1.0

1.1.0.0 https://github.com/vakata/random

A random int / string / byte generator

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

random vakata

27/10 2016

1.0.1

1.0.1.0 https://github.com/vakata/random

A random int / string / byte generator

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

random vakata

08/12 2015

1.0.0

1.0.0.0 https://github.com/vakata/random

A random int / string / byte generator

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

random vakata