Skip to content

Commit

Permalink
Updated composer and added readme
Browse files Browse the repository at this point in the history
  • Loading branch information
frozzare committed Dec 13, 2014
1 parent 1f04c1f commit b614428
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
26 changes: 26 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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.
7 changes: 6 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,10 @@
"require": {
"php": ">=5.3.0",
"composer/installers": "~1.0"
},
"autoload": {
"files": [
"src/Personnummer.php"
]
}
}
}

0 comments on commit b614428

Please sign in to comment.