Skip to content

2.6.0

Compare
Choose a tag to compare
@clemlatz clemlatz released this 27 Nov 11:02
· 51 commits to main since this release
f5253b5

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