PHPackages                             brueggern/crestron-fusion-handler - 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. brueggern/crestron-fusion-handler

ActiveLibrary[API Development](/categories/api)

brueggern/crestron-fusion-handler
=================================

Fetch data from the Crestron Fusion API

v0.0.5(6y ago)2441PHPPHP &gt;=7.2.0

Since May 4Pushed 6y ago1 watchersCompare

[ Source](https://github.com/brueggern/crestron-fusion-handler)[ Packagist](https://packagist.org/packages/brueggern/crestron-fusion-handler)[ RSS](/packages/brueggern-crestron-fusion-handler/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (5)Versions (6)Used By (0)

Crestron Fusion Handler
=======================

[](#crestron-fusion-handler)

The Crestron Fusion Handler is able to fetch all rooms or appointments using the Crestron Fusion REST API.

Create Handler
--------------

[](#create-handler)

First you need to create a new handler object and set the auth params if enabled on your API.

```
$handler = new CrestronFusionHandler('https://123.45.67.89/fusion/apiservice');
$handler->setAuth('some-token', 'some-user');

```

Fetch Rooms
-----------

[](#fetch-rooms)

Fetch all rooms.

```
$roomsCollection = $handler->getRooms();

```

Fetch Appointments
------------------

[](#fetch-appointments)

Fetch appointments of specific rooms.

```
$rooms = new CFCollection();
$rooms->addItem(new CFRoom(['id' => '41746b03-1803-4d65-84eb-06815688c780']));
$appointmentsCollection = $handler->getAppointments(new DateTime(), $rooms);

```

Collections
-----------

[](#collections)

Instead of arrays, a collection object is always returned. For more information, see `src/CFCollection.php`

```
$collection = new CFCollection();
$collection->addItem('Room One', 'room1');
$collection->addItem('Room Two, 'room2');

$name = $collection->getItem('room1');
// $name => Room One

$collection->deleteItem('room2');
// or
$collection->deleteItem(1);

$array = $collection->get();
// Returns an array

$mergedCollection = $collection1->append($collection2)//
// Append all items of a collection to another collection

```

Development / Tests / Linting
-----------------------------

[](#development--tests--linting)

```
composer install
cp tests/.env.testing.example tests/.env.testing

composer run test:online
composer run test:offline
composer run lint

```

Notes
-----

[](#notes)

In future versions it should also be possible to update entities such as rooms, appointments, etc.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% 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 ~3 days

Total

5

Last Release

2554d ago

### Community

Maintainers

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

---

Top Contributors

[![brueggern](https://avatars.githubusercontent.com/u/46680364?v=4)](https://github.com/brueggern "brueggern (22 commits)")[![nicolasbruegger](https://avatars.githubusercontent.com/u/12545943?v=4)](https://github.com/nicolasbruegger "nicolasbruegger (22 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/brueggern-crestron-fusion-handler/health.svg)

```
[![Health](https://phpackages.com/badges/brueggern-crestron-fusion-handler/health.svg)](https://phpackages.com/packages/brueggern-crestron-fusion-handler)
```

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

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