From 08cc53a5df117a402f6742bb467c888b064e1d0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20Tegn=C3=A9r?= Date: Sat, 20 Aug 2022 15:39:13 +0200 Subject: [PATCH] Added license and readme. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Johannes Tegnér --- LICENSE | 24 ++++++++++++++++++++++++ README.md | 22 ++++++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 LICENSE create mode 100644 README.md diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..4a3a733 --- /dev/null +++ b/LICENSE @@ -0,0 +1,24 @@ +MIT License + +Copyright (c) Organisationsnummer and Contributors + +Permission is hereby granted, free of charge, to any person +obtaining a copy of this software and associated documentation +files (the "Software"), to deal in the Software without +restriction, including without limitation the rights to use, +copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the +Software is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..42ad0fa --- /dev/null +++ b/README.md @@ -0,0 +1,22 @@ +# Organisationsnummer + +[![Test](https://github.com/organisationsnummer/java/actions/workflows/test.yml/badge.svg?branch=master)](https://github.com/organisationsnummer/java/actions/workflows/test.yml) + +Validate Swedish organization numbers. + +Follows version 1.1 of the [specification](https://github.com/organisationsnummer/meta#package-specification-v11). + +## Example + +```php +import dev.organisationsnummer.*; + +Organisationsnummer.valid("202100-5489"); +//=> true +``` + +See [https://github.com/organisationsnummer/java/blob/master/src/test/java/OrganisationsnummerTest.java](OrganisationsnummerTest.java) for more examples. + +## License + +MIT