Skip to content

Releases: biblys/isbn

3.2.0

09 Nov 08:29
8113ac1
Compare
Choose a tag to compare
  • Updated ranges for Iran, Türkiye, Indonesia, Netherlands, Morocco, Cambodia and Armenia
  • Added Github workflow to automate ranges update

3.1.0

10 Oct 18:32
Compare
Choose a tag to compare
  • Update ISBN ranges (by @jfriviere)
  • Add support for PHP 8.2 & 8.3
  • Update dependencies

3.0.0

09 Aug 15:19
Compare
Choose a tag to compare

Improvements

  • Now supports PHP 8.0 and above (fixes #48)
  • Still support older PHP version (from 7.2)

⚠️ Breaking changes

The ability to instantiate the ISBN class has been removed.
Learn how to migrate from 2.x.

3.0.0-alpha.3

27 Nov 11:16
3256bff
Compare
Choose a tag to compare
3.0.0-alpha.3 Pre-release
Pre-release

Early release of version 3.0, supporting PHP 8, removing deprecated code including release 2.6.0 from main branch.

2.6.0

27 Nov 11:02
f5253b5
Compare
Choose a tag to compare

This release adds an ISBN::parse public method that returns a ParsedIsbn object.

It can be used to get parts of an ISBN code. As an example, the ISBN 9791091146456 could be split with the following methods :

  • ParsedIsbn->getGs1Element would return the EAN prefix "979"
  • ParsedIsbn->getRegistrationGroupElement would return the French language code "10"
  • ParsedIsbn->getRegistrantElement would return the "Dystopia" publisher code "91146"
  • ParsedIsbn->getPublicationElement would return the "Fournaise" publication code "45"
  • ParsedIsbn->getCheckDigit would return the checksum digit "979"

Full Changelog: 2.5.0...2.6.0

3.0.0-alpha.2

25 Nov 15:38
8dcea68
Compare
Choose a tag to compare
3.0.0-alpha.2 Pre-release
Pre-release

Early release of version 3.0, supporting PHP 8, including release 2.5.1 from main branch.

What's Changed

Full Changelog: 2.5.0...3.0.0-alpha.2

2.5.1

25 Nov 15:31
5a147db
Compare
Choose a tag to compare
  • Ranges were updated
  • Dependencies were updated (fixing a guzzle security vulnerability)
  • Data arrays were refactored thanks to @d--j
  • Support for PHP 7.1 was dropped

3.0.0-alpha.1

26 Jun 13:47
d57d13c
Compare
Choose a tag to compare
3.0.0-alpha.1 Pre-release
Pre-release

Early release of version 3.0, supporting PHP 8.

2.5.0

10 Jan 20:56
49de9e6
Compare
Choose a tag to compare

This update adds support for the ISBN-A/DOI format. You can thank @rlueder for that!
It introduces a new method to do so:

Isbn::convertToIsbnA("9782207258040"); // returns "10.978.2207/258040"

Also, trying to validate an ISBN with an unknown range will throw an IsbnParsingException instead of a cryptic PHP Notice about array offsets. Thanks to @StefanGlaesser for pointing that out.

Isbn::convertToIsbn13("9786303025575"); // throws "Cannot find any ISBN range matching prefix 978-630"

2.4.0

27 Sep 19:03
319408b
Compare
Choose a tag to compare

The 2.4.0 update introduces a new method:

Isbn::isParsable ( string $value ) : boolean

This method returns true if the $value string can be parsed (and thus, converted into a valid ISBN-10, ISBN-13, EAN-13 or GTIN-14) and false if it cannot be.

Learn more