PHPackages                             legalworks/laravel-isbn-tools - 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. legalworks/laravel-isbn-tools

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

legalworks/laravel-isbn-tools
=============================

Casting and validating ISBN

v0.0.2(5y ago)18MITPHP

Since Oct 23Pushed 5y ago1 watchersCompare

[ Source](https://github.com/legalworks/laravel-isbn-tools)[ Packagist](https://packagist.org/packages/legalworks/laravel-isbn-tools)[ Docs](https://github.com/legalworks/laravel-isbn-tools)[ RSS](/packages/legalworks-laravel-isbn-tools/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (7)Versions (4)Used By (0)

legalworks/laravel-isbn-tools
=============================

[](#legalworkslaravel-isbn-tools)

[![Latest Version on Packagist](https://camo.githubusercontent.com/25338f66b1e5f2b59a47ecd53ffddafd9df02fc9aff748e33b3fe5d9bfb9c172/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c6567616c776f726b732f6c61726176656c2d6973626e2d746f6f6c732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/legalworks/laravel-isbn-tools)[![Total Downloads](https://camo.githubusercontent.com/274402618aa6c975a34419cd4dbb9254f53351569ec1b1e01069f6940efb358c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c6567616c776f726b732f6c61726176656c2d6973626e2d746f6f6c732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/legalworks/laravel-isbn-tools)[![License](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](http://opensource.org/licenses/MIT)

This package allows casting and validation of ISBN in Laravel Eloquent models, using the [nicebooks/isbn](https://github.com/nicebooks-com/isbn)-library.

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

[](#installation)

Via Composer

```
$ composer require legalworks/laravel-isbn-tools
```

Usage
-----

[](#usage)

### Casting

[](#casting)

```
use Legalworks\IsbnTools\IsbnCast;

protected $casts = [
    'isbn' => IsbnCast::class,
];
```

### Validation

[](#validation)

```
use Legalworks\IsbnTools\IsbnValidator;

$request->validate([
    'isbn' => ['required', 'string', new IsbnValidator],
]);
```

Change log
----------

[](#change-log)

Please see the [changelog](changelog.md) for more information on what has changed recently.

Testing
-------

[](#testing)

```
$ composer test
```

Contributing
------------

[](#contributing)

Please see [contributing.md](contributing.md) for details and a todolist.

Security
--------

[](#security)

If you discover any security related issues, please email author email instead of using the issue tracker.

Credits
-------

[](#credits)

- [JayAhr](https://github.com/legalworks)
- [All Contributors](../../contributors)

License
-------

[](#license)

license. Please see the [license file](license.md) for more information.

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~24 days

Total

2

Last Release

2054d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/850803afef83ebe2790f5e1c424f9dbc888eda324bb48946eb5430a978e57f16?d=identicon)[JayAhrDe](/maintainers/JayAhrDe)

---

Top Contributors

[![JayAhrDe](https://avatars.githubusercontent.com/u/930553?v=4)](https://github.com/JayAhrDe "JayAhrDe (20 commits)")

---

Tags

laravelISBN

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/legalworks-laravel-isbn-tools/health.svg)

```
[![Health](https://phpackages.com/badges/legalworks-laravel-isbn-tools/health.svg)](https://phpackages.com/packages/legalworks-laravel-isbn-tools)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M345](/packages/psalm-plugin-laravel)[laravel/ai

The official AI SDK for Laravel.

1.0k3.2M194](/packages/laravel-ai)[axlon/laravel-postal-code-validation

Worldwide postal code validation for Laravel

3893.6M1](/packages/axlon-laravel-postal-code-validation)[sunspikes/clamav-validator

Custom Laravel anti-virus validator for file uploads using ClamAV.

3722.1M6](/packages/sunspikes-clamav-validator)[laravel-validation-rules/credit-card

Validate credit card number, expiration date, cvc

2462.4M7](/packages/laravel-validation-rules-credit-card)[sandermuller/laravel-fluent-validation

Fluent validation rule builders for Laravel

20518.8k4](/packages/sandermuller-laravel-fluent-validation)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
