2017 © Pedro Peláez
 

library laravel-namor

A domain-safe name generator

image

benmag/laravel-namor

A domain-safe name generator

  • Sunday, February 11, 2018
  • by benmag
  • Repository
  • 1 Watchers
  • 0 Stars
  • 127 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 21 % Grown

The README.md

Namor

Namor - A domain-safe name generator, (*1)

This package is based on the Namor package by jsonmaur., (*2)

Getting started

Install via Composer, (*3)

composer install benmag/laravel-namor

Register service provider Add the NamorServiceProvider to your config/app.php file in the providers key, (*4)

'providers' => [
    // ... other providers
    Benmag\Namor\NamorServiceProvider::class,
]

Usage

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

Configuration

You may also publish the config file to config/namor.php which will let you customise the words used to generate the names., (*5)

php artisan vendor:publish --provider="Benmag\Namor\NamorServiceProvider"

License

The MIT License (MIT). Please see License File for more information., (*6)

The Versions

11/02 2018

dev-master

9999999-dev https://github.com/benmag/laravel-namor

A domain-safe name generator

  Sources   Download

MIT

The Requires

  • php ~7.0

 

benmag name generator