PHPackages                             numaxlab/cegal-client - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. numaxlab/cegal-client

ActiveLibrary[API Development](/categories/api)

numaxlab/cegal-client
=====================

Cliente PHP para la API de Cegal

0811PHP

Since Dec 3Pushed 5mo agoCompare

[ Source](https://github.com/numaxlab/cegal-client)[ Packagist](https://packagist.org/packages/numaxlab/cegal-client)[ RSS](/packages/numaxlab-cegal-client/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (1)

Cegal API Client
================

[](#cegal-api-client)

Cliente PHP para la API [Cegal en Red](https://www.cegal.es/que-hacemos/proyectos-tecnologicos-y-de-innovacion/cegal-en-red/que-es-cegal-en-red/)que ofrece [Cegal](https://www.cegal.es/). La documentación completa de los endpoints disponibles puede consultarse en [su documentación](https://www.cegal.es/wp-content/uploads/2023/06/ESPECIFICACIONES_PETICIONES_SEPTIEMBRE_2019_V4.00.pdf).

Instalación
-----------

[](#instalación)

Puedes instalar el paquete a través de Composer:

```
composer require numaxlab/cegal-client
```

Uso
---

[](#uso)

Para usar el cliente, necesitas disponer de credenciales de acceso para [Cegal en red](https://cegalenred.com/).

```
use NumaxLab\Cegal\Client;

$client = Client::create('tu-usuario', 'tu-contraseña');
```

### Obtener disponibilidad de libros por ISBN

[](#obtener-disponibilidad-de-libros-por-isbn)

Puedes obtener la disponibilidad en asociados de Cegal para uno o varios ISBNs.

```
$availabilityCollection = $client->getAvailability('978-84-9865-535-7');
$availability = $availabilityCollection->first();

echo $availability->sinliId;
echo $availability->name;
echo $availability->isDistributor();
echo $availability->isBookshop();
```

### Obtener información de un libro por ISBN

[](#obtener-información-de-un-libro-por-isbn)

Puedes obtener la información de un libro (o de varios) a partir de su ISBN.

```
// Para un único ISBN
$bookCollection = $client->getBookByIsbn('978-84-9865-535-7');
$book = $bookCollection->first();

echo $book->title;

// Para múltiples ISBNs
$bookCollection = $client->getBookByIsbn([
    '978-84-9865-535-7',
    '978-84-9182-325-4'
]);

foreach ($bookCollection as $book) {
    echo $book->title . "\n";
}
```

Testing
-------

[](#testing)

Para ejecutar los tests, usa el siguiente comando:

```
./vendor/bin/pest
```

Licencia
--------

[](#licencia)

Este proyecto está bajo la licencia MIT. Para más detalles, consulta el archivo LICENSE.

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance48

Moderate activity, may be stable

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity13

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/1771ef754e6bc1a0cb9317f3eab3d6fc290200217cb2105b6bbe8f618ab926a3?d=identicon)[numaxlab](/maintainers/numaxlab)

---

Top Contributors

[![ablunier](https://avatars.githubusercontent.com/u/4113587?v=4)](https://github.com/ablunier "ablunier (1 commits)")

### Embed Badge

![Health badge](/badges/numaxlab-cegal-client/health.svg)

```
[![Health](https://phpackages.com/badges/numaxlab-cegal-client/health.svg)](https://phpackages.com/packages/numaxlab-cegal-client)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[facebook/php-business-sdk

PHP SDK for Facebook Business

90821.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

74513.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

265103.1M454](/packages/google-gax)[google/common-protos

Google API Common Protos for PHP

173103.7M50](/packages/google-common-protos)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
