numaxlab / dilve-client
Cliente PHP para la API de Dilve.
1.0.0-beta.1
2026-05-04 18:10 UTC
Requires
- php: >=8.1
- ext-libxml: *
- ext-simplexml: *
- symfony/http-client: ^7.3
Requires (Dev)
- pestphp/pest: ^4.1
This package is auto-updated.
Last update: 2026-05-05 11:43:59 UTC
README
Cliente PHP para la API de Dilve, el servicio de información bibliográfica de la industria editorial española.
Requisitos
- PHP >= 8.1
- Extensiones:
libxml,simplexml symfony/http-client^7.3
Instalación
composer require numaxlab/dilve-client
Uso
use NumaxLab\Dilve\Client; $client = new Client('your-username', 'your-password'); // Obtener un producto por ISBN $product = $client->getProductByIsbn('9788415497219'); echo $product->ean; // EAN/ISBN echo $product->title; // Título echo $product->coverUrl; // URL de portada (o null) // Obtener varios productos por ISBN $products = $client->getProductsByIsbn(['9788415497219', '9788445005576']); foreach ($products as $product) { echo $product->title . PHP_EOL; }
Testing
composer install
composer test
Licencia
MIT — ver LICENSE