Skip to content

Commit

Permalink
Bump version to 2.3.0 & update README
Browse files Browse the repository at this point in the history
  • Loading branch information
clemlatz committed Feb 28, 2021
1 parent 8072cda commit cff1716
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
17 changes: 9 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
# biblys/isbn

[![tests](https://github.com/biblys/isbn/actions/workflows/tests.yml/badge.svg)](https://github.com/biblys/isbn/actions/workflows/tests.yml)
[![Latest Stable Version](https://poser.pugx.org/biblys/isbn/v/stable)](https://packagist.org/packages/biblys/isbn)
[![Total Downloads](https://poser.pugx.org/biblys/isbn/downloads)](https://packagist.org/packages/biblys/isbn)
[![License](https://img.shields.io/badge/license-MIT-blue.svg)](http://opensource.org/licenses/MIT)

This package can be used to:
biblys/isbn can be used to:

- validate an ISBN code
- convert codes between ISBN-10, ISBN-13 and EAN (without hyphens) formats
- format an ISBN as a GTIN-14 string (for use in packing and shipping)
- calculate the checksum digit
- show the registration agency (country or language)
- validate a string against the ISBN-10, ISBN-13 and EAN-13 formats
- convert an ISBN to ISBN-10, ISBN-13, EAN-13 and GTIN-14 formats
- parse an ISBN and extract registration agency, publisher code, publication code, checksum, etc.

[CHANGELOG](https://github.com/biblys/isbn/releases)

Expand All @@ -17,7 +18,7 @@ This package can be used to:
Install with composer:

```console
composer require biblys/isbn:^2.2.0
composer require biblys/isbn:^2.3.0
```

## Usage
Expand Down Expand Up @@ -58,7 +59,7 @@ be 978-2-84344-949-9).
use Biblys\Isbn\Isbn;

try {
$input = "978-2-84344-949-9";
$input = "978-2-843-44949-9";
Isbn::validateAsIsbn13($input);
echo "ISBN $input is valid!";
} catch(Exception $e) { // Will throw because third hyphen is misplaced
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "biblys/isbn",
"description": "A PHP library to convert and validate ISBNs & EANs",
"time": "2021-02-23",
"time": "2021-02-28",
"keywords": [
"ISBN",
"EAN",
Expand Down Expand Up @@ -38,4 +38,4 @@
"docker:test": "@composer docker:install && docker run --rm -v $PWD:/app prooph/composer:${PHP_VERSION:-7.4} test",
"docker:update-ranges": "@composer docker:install && docker run --rm -v $PWD:/app prooph/composer:${PHP_VERSION:-7.4} update-ranges"
}
}
}

0 comments on commit cff1716

Please sign in to comment.