PHPackages                             kokiddp/phptela - 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. kokiddp/phptela

ActiveLibrary[API Development](/categories/api)

kokiddp/phptela
===============

CulturaTela PHP API wrapper

1.0.4(1y ago)010GPL-3.0-or-laterPHPPHP &gt;=8.1

Since Oct 18Pushed 1y ago1 watchersCompare

[ Source](https://github.com/kokiddp/phptela)[ Packagist](https://packagist.org/packages/kokiddp/phptela)[ RSS](/packages/kokiddp-phptela/feed)WikiDiscussions master Synced 1mo ago

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

PHPTela - CulturaTela PHP API Wrapper
=====================================

[](#phptela---culturatela-php-api-wrapper)

PHPTela is a simple PHP client library for interacting with the CulturaTela API. It provides methods to retrieve activities and activity lists from the CulturaTela service.

Installation
------------

[](#installation)

You can install PHPTela via Composer. Run the following command:

```
composer require kokiddp/phptela
```

Requirements
------------

[](#requirements)

- PHP 8.1 or higher

Usage
-----

[](#usage)

### 1. Initialize the client

[](#1-initialize-the-client)

To use the client, you need to instantiate the `TelaClient` class:

```
use KokiDDP\PHPTela\TelaClient;

$client = new TelaClient();
```

### 2. Get an activity by its ID

[](#2-get-an-activity-by-its-id)

To retrieve an activity by its activityID, use the `getActivity` method:

```
$activityId = 'your_activity_id';
$response = $client->getActivity($activityId);
$activity = $response->get();
echo $activity->title;
```

### 3. Get all activities

[](#3-get-all-activities)

To retrieve all activities, use the `getAllActivities` method:

```
$response = $client->getAllActivities();
$activities = $response->get();
foreach ($activities as $activity) {
    echo $activity->title;
}
```

### 4. Work with the collection

[](#4-work-with-the-collection)

A few handy methods are included:

```
$response = $client->getAllActivities();
$activities = $response->filterByTitle('something')->get();
$activities = $response->filterByType('Museo')->get();
$activities = $response->search('keyword')->get();
$activities = $response->filterByCreator('someCreatorId')->get();
$activities = $response->filterByCity('Lucca')->get();
$activities = $response->filterByDates(new DateTimeImmutable('now'), new DateTimeImmutable('next month'))->get();
$activities = $response->orderByStartDate()->get();
```

The methods can be chained:

```
$response = $client->getAllActivities();
$activities = $response
    ->filterByType('Evento')
    ->filterByCity('Lucca')
    ->filterByDates(new DateTimeImmutable('now'), new DateTimeImmutable('next month'))
    ->orderByStartDate()
    ->get();
```

A generic filter method that accepts a callable is included:

```
$response = $client->getAllActivities();
$activities = $response
    ->where(fn(Activity $activity) => $activity->isOpen)
    ->get();
```

### Login

[](#login)

Login to CulturaTela service

```
$response = $client->login('em@i.l', 'password');
$user = $response->get();
```

License
-------

[](#license)

This library is licensed under the GPL-3.0-or-later License. See the [LICENSE](LICENSE.MD) file for details.

Authors
-------

[](#authors)

- Gabriele Coquillard @ ELK-Lab - [Email](mailto:gabriele@elk-lab.com)

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Every ~7 days

Total

5

Last Release

550d ago

### Community

Maintainers

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

---

Top Contributors

[![kokiddp](https://avatars.githubusercontent.com/u/7148271?v=4)](https://github.com/kokiddp "kokiddp (6 commits)")

### Embed Badge

![Health badge](/badges/kokiddp-phptela/health.svg)

```
[![Health](https://phpackages.com/badges/kokiddp-phptela/health.svg)](https://phpackages.com/packages/kokiddp-phptela)
```

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[lkdevelopment/hetzner-cloud-php-sdk

An unofficial PHP SDK for the Hetzner Cloud API.

12692.0k1](/packages/lkdevelopment-hetzner-cloud-php-sdk)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)[aedart/athenaeum

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

245.2k](/packages/aedart-athenaeum)[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)
