Download the PHP
package chypriote/unique-names-generator without Composer
On this page you can find all versions of the php package
chypriote/unique-names-generator. It is possible to download/install
these versions without Composer. Possible dependencies are resolved
automatically.
Vendor chypriote Package unique-names-generator Short Description A package to create readable, meaningful, random strings from animal names, colors and adjectives. License
MIT
After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.
Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.
In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories.
In this case some credentials are needed to access such packages.
Please use the auth.json textarea to insert credentials, if a package is coming from a private repository.
You can look here for more information.
Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
To use Composer is sometimes complicated. Especially for beginners.
Composer needs much resources. Sometimes they are not available on a simple webspace.
If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Informations about the package unique-names-generator
Unique Names Generator
A package to create readable, meaningful, random strings from animal names, colors and adjectives.
More than 50,000,000 name combinations out of the box
Why Unique name generator?
I needed a way to generate unique and rememberable names a la giphy (i.e. BlueGiantHorse) and was unable to find one in the wild. Moreover, I needed a way to obtain the same result from a specific string in certain cases.
Installation
Just require the package through composer:
Usage
Instantiate a new Generator and call the generate function in order to get a random adjective + animal combo.
Subsequent calls will give you different results:
You can configure the list of dictionaries used:
Available dictionaries are:
adjectives: List of 1500+ adjectives (default)
animals: List of 300+ animals (default)
colors: List of 50+ colors
countries: List of countries
names: List of ~5000 names
star wars: List of Star Wars characters
languages: List of 100+ languages
In order to use more than 2 dictionaries, you need to set the length parameter of the generator:
You can also get even more different results by enabling the shuffle parameter. This will shuffle the dictionaries on each call of the generator:
You can enter a seed in order to get predictable results for repeated calls:
Seeds can be either an integer or a string.
TODO-list
Possibility to add custom dictionaries
Unit tests
FAQ
Q: Can this package do feature?
A: I created this package out of a need for a personal project. If you have some suggestions feel free to open an issue
or a PR!
All versions of unique-names-generator with dependencies
Composer command for our command line client (download client)This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free.Standard composer command
The package chypriote/unique-names-generator contains the following files
Loading the files please wait ....
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.