ulolop / random-package
Installs: 10
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/ulolop/random-package
Requires
- php: ^7.0 || ^8.0
README
Requirements
- PHP >= 7.0
Installation
You can add this library as a local, per-project dependency to your project using Composer:
composer require ulolop/randomPackage
If you only need this library during development, for instance to run your project's test suite, then you should add it as a development-time dependency:
composer require --dev ulolop/randomPackage
Usage
<?php require __DIR__ . '/../vendor/autoload.php'; $randomGenerator = new \Ulolop\RandomPackage\RandomGenerator(); $length = 8; $hex = $randomGenerator->hex($length); $string = $randomGenerator->string($length); $password = $randomGenerator->password($length); echo ($hex . "<br>" . $string . "<br>" . $password);