2017 © Pedro Peláez
 

library name-generator

Name generator for your next Laravel project.

image

krafthaus/name-generator

Name generator for your next Laravel project.

  • Friday, March 10, 2017
  • by jspekken
  • Repository
  • 1 Watchers
  • 0 Stars
  • 17 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 6 % Grown

The README.md

Name Generator for Laravel

Total Downloads Build Status License StyleCI, (*1)

Installation

Add name-generator to your composer.json file:, (*2)

"require": {
    "krafthaus/name-generator": "^1.0"
}

Use composer to install the package:, (*3)

$ composer update

Register the package:, (*4)

'providers' => [
    // ...
    KraftHaus\NameGenerator\NameGeneratorServiceProvider::class,
]

Publish the configuration files:, (*5)

$ php artisan vendor:publish --provider="KraftHaus\NameGenerator\NameGeneratorServiceProvider" --tag=config

Usage

Generate a string of random words:

$words = KraftHaus\NameGenerator\Facades\Generator::generate();
// output: word1 word2

// Or define the amount of words you'd like to output:
$words = KraftHaus\NameGenerator\Facades\Generator::generate(5);
// output: word1 word2 word3 word4 word5

// With the glue parameter:
$words = KraftHaus\NameGenerator\Facades\Generator::generate(3, '-');
// output: word1-word2-word3

Generate an array of random words:

$words = KraftHaus\NameGenerator\Facades\Generator::raw();
// output: ['word1', 'word2'];

// Or define the amount of words you'd like to output:
$words = KraftHaus\NameGenerator\Facades\Generator::raw(4);
// output: ['word1', 'word2', 'word3', 'word4'];

License

This package is available under the MIT license., (*6)

Copyright (c) 2017 KraftHaus, (*7)

The Versions

10/03 2017

dev-master

9999999-dev

Name generator for your next Laravel project.

  Sources   Download

MIT

The Requires

  • php >=7.0.0

 

The Development Requires

by Jelle Spekken

laravel generator name

10/03 2017

1.0

1.0.0.0

Name generator for your next Laravel project.

  Sources   Download

MIT

The Requires

  • php >=7.0.0

 

The Development Requires

by Jelle Spekken

laravel generator name