Skip to content

Releases: biblys/isbn

2.3.0

28 Feb 00:49
cff1716
Compare
Choose a tag to compare

This version introduces a new public API with seven new static methods:

  • Isbn::validateAsIsbn10
  • Isbn::validateAsIbsn13
  • Isbn::validateAsEan13
  • Isbn::convertToIsbn10
  • Isbn::convertToIsbn13
  • Isbn::convertToEan13
  • Isbn::convertToGtin14

See README for details.

This version sets as deprecated four legacy methods:

  • Isbn->isValid
  • Isbn->getErrors
  • Isbn->validate
  • Isbn->format

These methods will trigger a deprecated notice when but will be supported until the next major (3.0) release.
See Methods deprecated in 2.3.0 on how to upgrade your existing implementation.

2.2.0

23 Feb 21:45
Compare
Choose a tag to compare
  • Output can now be formatted as GTIN-14 identifier (thanks to @kokoshneta)
  • ISBN ranges were updated

2.1.5

17 Nov 08:15
Compare
Choose a tag to compare
  • Fix #23: Problem updating ranges (@S1SYPHOS)
  • Update ISBN ranges

2.1.4

28 Feb 12:28
Compare
Choose a tag to compare
  • Fix #22: Invalid ISBN is returned as valid
  • Update ISBN ranges

2.1.3

09 Jan 17:24
Compare
Choose a tag to compare
  • Fix #7: Undefined offset error when formatting a mexican ISBN
  • Update ISBN ranges
  • PHP 7.3 & 7.4 support

2.1.2

13 Oct 10:14
Compare
Choose a tag to compare
  • Updated dependencies
  • Updated ISBN ranges
  • Improved docs (@Dispositif)
  • Added late static bindings in Isbn class (@Dispositif)

2.1.1

17 Aug 07:38
Compare
Choose a tag to compare
  • Upgrade dependencies
  • Upgrade PHPUnit to 8.3

2.1.0

18 Apr 15:12
Compare
Choose a tag to compare
  • Added a validate method that throws an Exception on ISBN validation errors
  • Fixed #9: Improve error output
  • Added composer scripts to run tests and update ranges in a Docker container
  • Updated ISBN ranges

2.0.8

07 Feb 13:24
Compare
Choose a tag to compare

This library is now tested against PHP version 5.6, 7.0, 7.1 & 7.2

  • Fixed #7: ISBNs with invalid product
    code or country code are considered valid
  • Added PHP versions 7.1 & 7.2 to travis config file

2.0.7

01 Feb 13:57
Compare
Choose a tag to compare
  • Attempts to format an invalid ISBN will now throw an Exception (fixes #7)
  • Fixed considering ISBNs with an invalid product code as valid (fixes #7)
  • Updated ISBN ranges