library faker-instrument-names
An instrument name generator for Faker.
etelford/faker-instrument-names
An instrument name generator for Faker.
- Thursday, April 5, 2018
- by etelford
- Repository
- 1 Watchers
- 1 Stars
- 17 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 4 Versions
- 0 % Grown
faker-instrument-names
Generate random instrument names with the help of fzaninotto/Faker., (*1)
Names of instruments were pulled and parsed from MusicBrainz., (*2)
Installation
composer.json:, (*3)
"require": {
"etelford/faker-instrument-names": "*"
}
Example
Make an instance of Faker
and an instance of the InstrumentFaker
, add it as a provider and call the instrument method you want., (*4)
$faker = \Faker\Factory::create();
$generator = new \Etelford\InstrumentFaker($faker);
$faker->addProvider($generator);
// Get a random instrument name
echo $faker->instrument;
// Get a random wind instrument name
echo $faker->windInstrument;
// Get a random string instrument name
echo $faker->stringInstrument;
// Get a random percussion instrument name
echo $faker->percussionInstrument;
// Get a random electronic instrument name
echo $faker->electronicInstrument;
dev-master
9999999-dev
An instrument name generator for Faker.
Sources
Download
MIT
The Requires
The Development Requires
by
Erik Telford
php
library
faker
etelford
instruments
musical
v1.0.2
1.0.2.0
An instrument name generator for Faker.
Sources
Download
MIT
The Requires
The Development Requires
by
Erik Telford
php
library
faker
etelford
instruments
musical
v1.0.1
1.0.1.0
An instrument name generator for Faker.
Sources
Download
MIT
The Requires
The Development Requires
by
Erik Telford
php
library
faker
etelford
instruments
musical
v1.0.0
1.0.0.0
An instrument name generator for Faker.
Sources
Download
MIT
The Requires
The Development Requires
by
Erik Telford
php
library
faker
etelford
instruments
musical