dev-master
9999999-dev https://github.com/fzaninotto/PHPClassNameGeneratorGenerate PSR-0 compliant class names with ease
MIT
The Requires
- php >=5.3.0
- fzaninotto/faker dev-master
by François Zaninotto
Wallogit.com
2017 © Pedro PelĂĄez
Generate PSR-0 compliant class names with ease
Generate PSR-0 compliant class names with ease., (*1)
This library will help you if:, (*2)
Add the PHPClassNameGenerator⢠library to your composer.json file:, (*3)
{
"require": {
"fzaninotto/PHPClassNameGenerator": "dev-master"
}
}
Then use composer to complete the installation process., (*4)
Use the new ClassNameProvider class in combination with Faker to produce an infinite number of PSR-0 compliant class names., (*5)
<?php
require __DIR__ .'/vendor/autoload.php';
$faker = Faker\Factory::create();
$faker->addProvider(new PHPClassNameGenerator\ClassNameProvider($faker));
for ($i=0; $i < 20; $i++) {
echo $faker->namespacedClassName, "\n";
}
This snippet generates 20 awesome class names. Here is an example output from PHPClassNameGeneratorâ˘:, (*6)
Assetic\History\XPath\ButtonAliasArgument Symfony\Store\MissingCheckboxProcessIntrospectableOption Doctrine\Resource\Client\FilterMockSet Doctrine\Directory\ClientDumperErrorConstraint Monolog\Radio\Form\AnnotationAliasAttribEscaperRadioRequest Doctrine\Class\Error\Container\EngineTraceableDefinition Symfony\Store\Scope\StoreProcessAnnotationNativeStorageWriter Silex\Application\ClassPackage Doctrine\Service\Kernel\ExceptionStoreForm Assetic\Hash\Name\Input\KeyFileGeneratorStreamBag Monolog\Response\BasicButton Silex\Cookie\Input\AttributeRepeatedDepencencyInjectionProxy Symfony\Resource\Access\StorageKernelLoaderPathEngine Doctrine\Kernel\Session\ReferenceIntrospectableHelper Symfony\Store\CombinedSuccessGenerator Symfony\Cache\IdentityTimeShell Doctrine\Path\Dialog\Filesystem\LayoutWarmableNodeElementJsonWarmer Silex\Cookie\SplDataPackageStringException Doctrine\Link\TreeHeaderOptionLoader Symfony\Cookie\MandatoryOption
PRs are, of course, welcome. Please respect the PSR-1 and PSR-2 standards., (*7)
You tell me. I never asked for it. Now I can't code in PHP without an IDE anymore, and it's killing my RAD., (*8)
Generate PSR-0 compliant class names with ease
MIT