Skip to content

numaxlab/dilve-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dilve-client

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages