legalworks / laravel-isbn-tools
Casting and validating ISBN
v0.0.2
2020-11-17 20:50 UTC
Requires
- atrox/matcher: ^1.1
- illuminate/support: ~7|~8
- nicebooks/isbn: ^0.2
- scriptotek/google-books: ^0.2
- scriptotek/marc: ^2.2
Requires (Dev)
- orchestra/testbench: ~5|~6
- phpunit/phpunit: ~9.0
This package is auto-updated.
Last update: 2024-10-18 05:51:11 UTC
README
This package allows casting and validation of ISBN in Laravel Eloquent models, using the nicebooks/isbn-library.
Installation
Via Composer
$ composer require legalworks/laravel-isbn-tools
Usage
Casting
use Legalworks\IsbnTools\IsbnCast; protected $casts = [ 'isbn' => IsbnCast::class, ];
Validation
use Legalworks\IsbnTools\IsbnValidator; $request->validate([ 'isbn' => ['required', 'string', new IsbnValidator], ]);
Change log
Please see the changelog for more information on what has changed recently.
Testing
$ composer test
Contributing
Please see contributing.md for details and a todolist.
Security
If you discover any security related issues, please email author email instead of using the issue tracker.
Credits
License
license. Please see the license file for more information.