PHPackages                             festivalslab/api-client-php - 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. festivalslab/api-client-php

ActiveLibrary

festivalslab/api-client-php
===========================

PHP client for the Edinburgh Festivals Listings API

v2.5.0(9mo ago)44.2k↓50%1BSD-3-ClausePHPPHP ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0CI passing

Since Aug 16Pushed 9mo ago1 watchersCompare

[ Source](https://github.com/festivalslab/api-client-php)[ Packagist](https://packagist.org/packages/festivalslab/api-client-php)[ Docs](https://github.com/festivalslab/api-client-php)[ RSS](/packages/festivalslab-api-client-php/feed)WikiDiscussions 2.0.x Synced 1mo ago

READMEChangelog (8)Dependencies (4)Versions (10)Used By (0)

Edinburgh Festivals Listings API client for PHP
===============================================

[](#edinburgh-festivals-listings-api-client-for-php)

The Edinburgh Festivals Listings API client for PHP makes it easy for developers to access the [Edinburgh Festivals Listings API](https://api.edinburghfestivalcity.com/) in their PHP code.

You can get started quickly by [installing the client through composer](#installing)

[![Build Status](https://github.com/festivalslab/api-client-php/actions/workflows/test.yaml/badge.svg)](https://github.com/festivalslab/api-client-php/actions/workflows/test.yaml)

Quick Examples
--------------

[](#quick-examples)

#### Create a client

[](#create-a-client)

```
// Require the Composer autoloader.
require 'vendor/autoload.php';

use FestivalsApi\FestivalsApiClientFactory;

// Instantiate a Festivals API Client.
$client = FestivalsApiClientFactory::createWithCredentials('key', 'secret');
```

#### Find some events

[](#find-some-events)

```
use FestivalsApi\FestivalsApiClientException;

try {
    $result = $client->searchEvents(['title' => 'Foo']);
    $events = $result->getEvents();
} catch (FestivalsApiClientException $e){
    echo "There was an error: " . $e->getMessage();
}
```

#### Iterate all results

[](#iterate-all-results)

The API delivers results in pages, by default 25 results at a time, configurable up to 100. Using `FestivalsApi\FestivalsApiEventSearch` will take care for the pagination for you so you can iterate all results for a search query easily.

```
use FestivalsApi\EventSearchIterator;
use FestivalsApi\FestivalsApiClientException;

$search = new EventSearchIterator($client);
$search->setQuery(['festival' => 'jazz']);
try {
    foreach ($search as $event){
        echo $event['title'];
    }
} catch (FestivalsApiClientException $e){
    echo "There was an error: " . $e->getMessage();
}
```

Resources
---------

[](#resources)

- [API Docs](https://api.edinburghfestivalcity.com/documentation) - Details about parameters &amp; responses
- [API Browser](https://api.edinburghfestivalcity.com/browse) - Interactive tool to explore API options and responses

Installing
----------

[](#installing)

The recommended way to install the php client is through Composer.

Install Composer

Next, run the Composer command to install the latest stable version of the client:

```
composer require festivalslab/api-client-php
```

After installing, you need to require Composer's autoloader:

```
require 'vendor/autoload.php';
```

You can then later update the client using composer:

```
composer update
```

###  Health Score

49

—

FairBetter than 95% of packages

Maintenance57

Moderate activity, may be stable

Popularity26

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity82

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 88.1% 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.

###  Release Activity

Cadence

Every ~242 days

Recently: every ~77 days

Total

10

Last Release

286d ago

Major Versions

v1.0.1 → v2.0.02021-10-12

PHP version history (5 changes)v1.0.0PHP ^7.2

v2.0.0PHP ^7.4 || ~8.0.0

v2.1.0PHP ~8.0.0 || ~8.1.0 || ~8.2.0

v2.2.0PHP ~8.1.0 || ~8.2.0 || ~8.3.0

v2.4.0PHP ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/f6ebcc608a86cec9a3ce7a4932994e2b89fabbfcdde69aff43e8139f34e07a5e?d=identicon)[acoulton](/maintainers/acoulton)

![](https://avatars.githubusercontent.com/u/1156379?v=4)[craig410](/maintainers/craig410)[@craig410](https://github.com/craig410)

---

Top Contributors

[![craig410](https://avatars.githubusercontent.com/u/1156379?v=4)](https://github.com/craig410 "craig410 (37 commits)")[![acoulton](https://avatars.githubusercontent.com/u/416566?v=4)](https://github.com/acoulton "acoulton (4 commits)")[![paul-norman](https://avatars.githubusercontent.com/u/1172942?v=4)](https://github.com/paul-norman "paul-norman (1 commits)")

---

Tags

api-clientphp

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/festivalslab-api-client-php/health.svg)

```
[![Health](https://phpackages.com/badges/festivalslab-api-client-php/health.svg)](https://phpackages.com/packages/festivalslab-api-client-php)
```

###  Alternatives

[neuron-core/neuron-ai

The PHP Agentic Framework.

1.8k245.3k21](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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