shiranse/laravel-open-library

Laravel Wrapper for Open Library Api

dev-main 2024-04-15 14:52 UTC

README

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

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.