Skip to content

Veejayspb/autonumber

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Аutomobile number generator

License: WTFPL

Generator for russian automobile registration numbers.

Features:

  • validation;
  • ability to set/get number, letters, region number separately;
  • regions list;
  • built-in iterators (prev, next);

Example

use veejay\autonumber\Generator;

$generator = new Generator('а123ве178');

$generator->letter->next(); // аве -> авк
$generator->region->prev(); // 178 -> 98
$generator->number->setValue(22); // 123 -> 022

$result = $generator->getValue(); // а022вк98

About

Automobile registration number generator

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages