Download the PHP package fale/isbn without Composer
On this page you can find all versions of the php package fale/isbn. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Package isbn
Short Description ISBN library
License AGPL-3.0
Homepage http://github.com/fale/isbn
Informations about the package isbn
ISBN PHP library
This library is developed to provide all tools needed to handle ISBN (both ISBN-10 and ISBN-13) codes to PHP developers.
IMPORTANT NOTICE
dev-master
could be pretty different from the 3.x version. If you want to stay with version 3.x, please use 3.0.0
or 3.0.x-dev
or 3.x-dev
.
IMPORTANT NOTICE NUMBER 2
ISBN ranges change every so often. Data are right as of Wed, 15 Nov 2017 13:30:29 CET.
Initialization
Check
This function allows you to verify if an ISBN code is an ISBN-10 or ISBN-13. This does not verifies if the ISBN code is valid. To check if the ISBN code is valid, you can use the Validation
class.
Examples:
Validation
This class allows you to validate ISBN-10 and ISBN-13. Examples:
Hyphens
This class provides simple functions to work with hyphens.
Add Hyphens
This function allows you to put correct hyphens in ISBN-10 and ISBN-13. Examples:
Remove Hyphens
This function allows you to remove hyphens from the ISBN-10 and ISBN-13. Examples:
Fix Hyphens
This function allows you to fix hyphens in ISBN-10 and ISBN-13
CheckDigit
This class allows you to calculate the check digit for ISBN-10 and ISBN-13. Examples:
Translate
This class allows you to convert ISBN-10 to ISBN-13 and back. Examples:
Develop this library
If you are interested in some new features please open a bug on GitHub. If you already have a patch available, please, open a pull request. Before opening a pull request, be sure that all tests are passed.
Generation
- Get the
RangeMessage.xml
file from https://www.isbn-international.org/range_file_generation cp import/RegistrantElement.php /tmp
cp RangeMessage.xml /tmp
podman run --rm -it --volume /tmp:/tmp php sh -c "cd /tmp && php RegistrantElement.php" > /tmp/out
Tests
To check the tests run the following:
from the project root folder.
If the folder vendor
is empty or non-existing, run composer install
or composer.phar install
depending on your composer
installation.