ulolop/random-package

There is no license information available for the latest version (1.1.4) of this package.

1.1.4 2024-06-18 09:43 UTC

This package is auto-updated.

Last update: 2025-04-18 11:27:11 UTC


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);