devaneando/name-generator

A name generation engine for developers and creative writers enthusiasts.

dev-master 2018-04-06 14:07 UTC

This package is not auto-updated.

Last update: 2020-07-04 12:16:51 UTC


README

The NameGenerator is a random name generation engine for developers and creative writers enthusiasts. It allows the creation of names from different types (A French guy, son of a English mother with a Brazilian father) through a set of generators (classes with rules on how to generate random names).

By design, the NameGenerator was designed to be easily extensible and to allow any developer to create his own rules to generate names. It's easy to create new generators, customize and extend the bundle. For more information, check the NameGenerator Documentation.

Requirements

The NameGenerator requires:

Installation

The easiest way is to use compose and install from packagist.

composer require devaneando/name-generator dev-master

Then you need to manually resister the bundle in the app/AppKernel.php file:

    new AppBundle\AppBundle(),
+    new Devaneando\NameGeneratorBundle\NameGeneratorBundle(),

And add the respective routes to the app/config/routing.yml file:

app:
    resource: '@AppBundle/Controller/'
    type: annotation

+name_generator:
+    resource: "@NameGeneratorBundle/Controller/"
+    type:     annotation
+    prefix:   /api

NOTE:

Change the /api prefix to any other you want, specially to prevent conflicts