diff --git a/README.md b/README.md new file mode 100644 index 0000000..38cd081 --- /dev/null +++ b/README.md @@ -0,0 +1,26 @@ +# php-is-personnummer [![Build Status](https://travis-ci.org/frozzare/php-is-personnummer.svg?branch=master)](https://travis-ci.org/frozzare/php-is-personnummer) + +Validate Swedish personal identity numbers. + +## Installation + +``` +$ composer require frozzare/is-personnummer 1.0.0 +``` + +## Example + +```php +\Personnummer::valid(6403273813); +//=> true + +\Personnummer::valid('19130401+2931'); +//=> true +``` + +See [PersonnummerTest.php](tests/PersonnummerTest.php) for more examples. + +# License + +Copyright (c) 2014 Fredrik Forsmo +Licensed under the MIT license. diff --git a/composer.json b/composer.json index 009e195..3d2d200 100644 --- a/composer.json +++ b/composer.json @@ -21,5 +21,10 @@ "require": { "php": ">=5.3.0", "composer/installers": "~1.0" + }, + "autoload": { + "files": [ + "src/Personnummer.php" + ] } -} \ No newline at end of file +}