| Package Data | |
|---|---|
| Maintainer Username: | benmag |
| Package Create Date: | 2017-08-31 |
| Package Last Update: | 2018-02-11 |
| Language: | PHP |
| License: | MIT |
| Last Refreshed: | 2025-12-03 03:02:54 |
| Package Statistics | |
|---|---|
| Total Downloads: | 178 |
| Monthly Downloads: | 0 |
| Daily Downloads: | 0 |
| Total Stars: | 0 |
| Total Watchers: | 1 |
| Total Forks: | 0 |
| Total Open Issues: | 0 |
Namor - A domain-safe name generator
This package is based on the Namor package by jsonmaur.
Install via Composer
composer install benmag/laravel-namor
Register service provider
Add the NamorServiceProvider to your config/app.php file in the providers key
'providers' => [
// ... other providers
Benmag\Namor\NamorServiceProvider::class,
]
use Benmag\Namor\Namor;
Namor::generate([number of words], [number of trailing numbers], [seperator character]);
// Defaults to 2 words and 4 trailing numbers
Namor::generate()
// Generate with 3 words and no numbers
Namor::generate(3, 0);
You may also publish the config file to config/namor.php which will let you customise the words used to generate the names.
php artisan vendor:publish --provider="Benmag\Namor\NamorServiceProvider"
The MIT License (MIT). Please see License File for more information.