Library for generating human-readable, random names for objects.
A utility to generate "pet names", consisting of a random combination of adverbs, an adjective, and an animal name.
Ported from: https://github.com/dustinkirkland/golang-petname to a static PHP class.
Require this package with composer using the following command:
$ composer require lcherone/php-petname
<?php require 'vendor/autoload.php'; use LCherone\PHPPetname as Petname; // werewolf echo Petname::Generate(1); // peacefull-werewolf echo Petname::Generate(2); // peacefull mighty werewolf echo Petname::Generate(3, ' '); // peacefull-mighty-tough-werewolf echo Petname::Generate(4);
$ composer test
Please see CONTRIBUTING for details.
The MIT License (MIT). Please see License File for more information.