Download the PHP package macfja/book-retriever without Composer
On this page you can find all versions of the php package macfja/book-retriever. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download macfja/book-retriever
More information about macfja/book-retriever
Files in macfja/book-retriever
Package book-retriever
Short Description Library to retrieve data about books
License MIT
Informations about the package book-retriever
Book Retriever
Library to retrieve data about books
Installation
Usage
Simple provider
To get information of a book on a specific provider:
Configurable provider
To get information of a book with a configurable provider:
Multiple providers
Using the Pool
provider to request several providers:
If you use an dependency injection library, lots of code can be remove. (see below for a Symfony example)
With Symfony (and Doctrine)
An example of integration in Symfony with configuration stored in database with Doctrine as ORM.
config/services.yaml
src/Entity/ProviderConfiguration.php
src/Repository/ProviderConfigurationRepository.php
src/Controller/SomeController.php
Providers
There are currently 20 built-in providers. You can find more details here.
Contributing
You can contribute to the library. To do so, you have Github issues to:
- ask your question
- notify any change in the providers
- suggest new provider
- request any change (typo, bad code, etc.)
- and much more...
You also have PR to:
- add a new provider
- suggest a correction
- and much more...
Local installation
First clone the project (either this repository, or your fork), next run:
Validate your code
When you done writing your code run the following command check if the quality meet defined rule and to format it:
If you add unit tests you run the following to do the same on test suite code:
License
The MIT License (MIT). Please see License File for more information.
All versions of book-retriever with dependencies
ext-dom Version *
ext-json Version *
ext-simplexml Version *
cedcommerce/ebay-sdk-php Version ^18.0
fale/isbn Version ^3.1
masterminds/html5 Version ^2.7
njt/good-reads Version ^1.0
php-http/discovery Version ^1.7
psr/http-client Version ^1.0
psr/http-factory Version ^1.0
psr/http-message Version ^1.0
scriptotek/google-books Version ^0.2.5