shiranse / laravel-open-library
Laravel Wrapper for Open Library Api
Fund package maintenance!
sse
Requires
- php: ^8.1
- guzzlehttp/guzzle: ^7.8
- illuminate/contracts: ^10.0
- spatie/laravel-package-tools: ^1.14.0
Requires (Dev)
- larastan/larastan: ^2.0.1
- laravel/pint: ^1.0
- nunomaduro/collision: ^7.8
- orchestra/testbench: ^8.8
- pestphp/pest: ^2.20
- pestphp/pest-plugin-arch: ^2.0
- pestphp/pest-plugin-laravel: ^2.0
- phpstan/extension-installer: ^1.1
- phpstan/phpstan-deprecation-rules: ^1.0
- phpstan/phpstan-phpunit: ^1.0
This package is auto-updated.
Last update: 2025-06-08 16:16:43 UTC
README
The OpenLibrary PHP Package provides a convenient way to interact with the Open Library API in your PHP applications. With this package, you can easily search for books, authors, and other resources available on the Open Library platform. The package offers a fluent interface for creating and interacting with OpenLibraryAuthor and OpenLibraryBook objects, allowing you to retrieve detailed information about authors, including their works, biographies, and related metadata. Additionally, it provides seamless integration with Laravel, allowing you to use Laravel features like facades to access Open Library API with ease. Whether you're building a book catalog, integrating book data into your application, or simply exploring the vast collection of books available on Open Library, this package provides a powerful and intuitive solution for your needs.
Support us
Installation
You can install the package via composer:
composer require shiranse/laravel-open-library
You can publish and run the migrations with:
php artisan vendor:publish --tag="laravel-open-library-migrations"
php artisan migrate
You can publish the config file with:
php artisan vendor:publish --tag="laravel-open-library-config"
Usage
$works = OpenLibrary::searchWorks('Matilda'); $authors = OpenLibrary::searchAuthors('Rowling')
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.