Skip to content

Commit

Permalink
Bump version to 2.2.0 & update README
Browse files Browse the repository at this point in the history
  • Loading branch information
clemlatz committed Feb 23, 2021
1 parent 5dd2564 commit 0e2587a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 21 deletions.
18 changes: 6 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ This package 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)
- format an ISBN as a GTIN-14 string (for use in packing and shipping)

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

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

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

## Usage
Expand All @@ -27,11 +27,8 @@ Use case: converting an EAN (9782843449499) to an ISBN-13 (978-2-84344-949-9).
```php
<?php

use Biblys\Isbn\Isbn as Isbn;
// require_once __DIR__.'/vendor/autoload.php';

$ean = '9782843449499';
$isbn = new Isbn($ean);
$ean = "9782843449499";
$isbn = new Biblys\Isbn\Isbn($ean);

try {
$isbn->validate();
Expand All @@ -47,11 +44,8 @@ Use case: outputting an EAN (9782843449499) as a GTIN-14-formatted string with t
```php
<?php

use Biblys\Isbn\Isbn as Isbn;
// require_once __DIR__.'/vendor/autoload.php';

$ean = '9782843449499';
$isbn = new Isbn($ean);
$ean = "9782843449499";
$isbn = new Biblys\Isbn\Isbn($ean);

try {
$isbn->validate();
Expand Down
16 changes: 7 additions & 9 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
{
"name": "biblys/isbn",
"description": "A PHP library to convert and validate ISBNs & EANs",
"time": "2020-11-17",
"time": "2021-02-23",
"keywords": [
"ISBN",
"EAN",
"GTIN",
"Book"
],
"license": "MIT",
"homepage": "https://github.com/biblys/isbn",
"authors": [
{
"name": "Clement Bourgoin",
"email": "[email protected]"
"email": "[email protected]"
}
],
"support": {
Expand All @@ -33,11 +34,8 @@
"scripts": {
"test": "vendor/bin/phpunit tests",
"update-ranges": "php bin/update-ranges.php",
"docker:install":
"docker run --rm -v $PWD:/app prooph/composer:${PHP_VERSION:-7.4} install",
"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"
"docker:install": "docker run --rm -v $PWD:/app prooph/composer:${PHP_VERSION:-7.4} install",
"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 0e2587a

Please sign in to comment.