PHPackages                             fdt2k/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. fdt2k/isbn

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

fdt2k/isbn
==========

A PHP library to convert and validate ISBNs

2.5.0(4y ago)012MITPHPPHP ^7.1

Since Mar 1Pushed 1y agoCompare

[ Source](https://github.com/FDT2k/isbn)[ Packagist](https://packagist.org/packages/fdt2k/isbn)[ Docs](https://github.com/biblys/isbn)[ RSS](/packages/fdt2k-isbn/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (2)Versions (25)Used By (0)

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 an ISBN and extract registration agency, publisher code, publication code, checksum, etc.

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

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

[](#installation)

### Requirements

[](#requirements)

- PHP 7.x

If you need to support PHP 8, see [the next branch](https://github.com/biblys/isbn/blob/next/README.md).

### Install with composer

[](#install-with-composer)

```
composer require biblys/isbn:^2.5.0
```

Usage
-----

[](#usage)

### Convert

[](#convert)

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

```
