2017 © Pedro Peláez
 

library ean-isbn-library

A PHP library for EAN and ISBN validation and conversion

image

rebuy/ean-isbn-library

A PHP library for EAN and ISBN validation and conversion

  • Monday, November 23, 2015
  • by Spea
  • Repository
  • 22 Watchers
  • 1 Stars
  • 14,600 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 5 % Grown

The README.md

reBuy EAN / ISBN Library

A PHP library for validating and converting EAN and ISBN identifiers licensed under the MIT license., (*1)

Installation

To use the library you need PHP 7.1 and Composer. Add the following entry to your composer.json., (*2)

composer require rebuy/ean-isbn-library

Usage

The core of the library are identifier objects representing valid EAN-13, EAN-8, or ISBN-10 identifiers. Identifier objects can be created using a parser which validates and normalizes the identifier string., (*3)

$parser = new Parser();
$identifier = $parser->parse('978-0091956141');

echo $identifier; // will print '9780091956141'

Once you have an identifier object, you can convert it into an alternate representation if available., (*4)

$converter = new Converter();
$conversion = $converter->convert($identifier);
echo $conversion; // will print '0091956145'

Both parsers and converters will throw exceptions if the action can’t be performed. Go to examples for complete executable examples and docs for a full API reference., (*5)

Troubleshooting

  • If you come across errors or bugs please feel free to report them by opening an issue here but please check open issues before you do in case someone already created one.

Contributing

Feel free to open an issue if you find bugs or if you're missing functionality that should be included., (*6)

Pull requests for additional features are welcome as long as they fit the requirements detailed under CONTRIBUTING., (*7)

The Versions

23/11 2015

dev-master

9999999-dev https://github.com/rebuy-de/ean-isbn-library

A PHP library for EAN and ISBN validation and conversion

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

parser validation conversion ean isbn parsing

23/11 2015

v1.0.0

1.0.0.0 https://github.com/rebuy-de/ean-isbn-library

A PHP library for EAN and ISBN validation and conversion

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

parser validation conversion ean isbn parsing