PHPackages                             biblys/isbn - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Validation &amp; Sanitization](/categories/validation)
4. /
5. biblys/isbn

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

biblys/isbn
===========

A PHP library to convert and validate ISBNs

3.2.50(3y ago)56346.8k↑19.6%15[1 issues](https://github.com/biblys/isbn/issues)1MITPHPPHP ^7.2 || ^8.0CI passing

Since Mar 1Pushed 2mo ago4 watchersCompare

[ Source](https://github.com/biblys/isbn)[ Packagist](https://packagist.org/packages/biblys/isbn)[ Docs](https://github.com/biblys/isbn)[ Fund](https://liberapay.com/clemlatz)[ RSS](/packages/biblys-isbn/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (4)Versions (85)Used By (1)

biblys/isbn
===========

[](#biblysisbn)

[![tests](https://github.com/biblys/isbn/actions/workflows/tests.yml/badge.svg)](https://github.com/biblys/isbn/actions/workflows/tests.yml)[![Latest Stable Version](https://camo.githubusercontent.com/619021110e0741ca4eaf0f599eaa8693d9104a303e779d897651d252e9b9a709/68747470733a2f2f706f7365722e707567782e6f72672f6269626c79732f6973626e2f762f737461626c65)](https://packagist.org/packages/biblys/isbn)[![Total Downloads](https://camo.githubusercontent.com/f98aeafa5dbcf6cdd813d76bca1d3a92e4ab60a4f39902b93d80e9b148548c75/68747470733a2f2f706f7365722e707567782e6f72672f6269626c79732f6973626e2f646f776e6c6f616473)](https://packagist.org/packages/biblys/isbn)[![License](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](http://opensource.org/licenses/MIT)[![Gitpod ready-to-code](https://camo.githubusercontent.com/c01324668ea00cd2b02dc9fbf541676fb30543b69ef99a070d62a110917126d0/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f476974706f642d72656164792d2d746f2d2d636f64652d626c75653f6c6f676f3d676974706f64)](https://gitpod.io/#https://github.com/biblys/isbn)

biblys/isbn can be used to:

- [validate](#validate) a string against the ISBN-10, ISBN-13 and EAN-13 formats
- [convert](#convert) an ISBN to ISBN-10, ISBN-13, EAN-13, GTIN-14 and ISBN-A/DOI formats
- [parse](#parse) an ISBN to extract registration agency, publisher code, publication code, checksum, etc.

[CHANGELOG](https://github.com/biblys/isbn/releases)

Installation
------------

[](#installation)

- Requirements: PHP 7.2 or above

Install with composer:

```
composer require biblys/isbn:~3.0
```

Usage
-----

[](#usage)

### Convert

[](#convert)

Use case: converting an EAN (9782843449499) to an ISBN-13 (978-2-84344-949-9).

```
