PHPackages                             tentakelfabrik/pirectus - 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. tentakelfabrik/pirectus

ActiveLibrary

tentakelfabrik/pirectus
=======================

0.1.3(4y ago)1229↓100%MITPHP

Since Oct 10Pushed 4y ago2 watchersCompare

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

READMEChangelog (4)Dependencies (1)Versions (5)Used By (0)

Pirectus - a small Client for Directus 9
========================================

[](#pirectus---a-small-client-for-directus-9)

This Version is in a early Stage and only supports get, post, patch for Items. Authentification is only possible with token. It uses [Guzzle, PHP HTTP client](https://docs.guzzlephp.org/en/stable/) and is inspired by the [Directus JavaScript SDK](https://docs.directus.io/reference/sdk/).

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

[](#installation)

```
composer require tentakelfabrik/pirectus
```

Quickstart
----------

[](#quickstart)

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

use Pirectus\Pirectus;
use Pirectus\Auth\TokenAuth;

$pirectus = new Pirectus('', [
    'auth' => new TokenAuth('')
]);
```

```
$results = $pirectus
    ->items('pages')
    ->fields(['id', 'title', 'content'])
    ->filter([
        'status' => ['_eq' => 'published']
    ])
    ->find();
```

ItemsQueryBuilder
-----------------

[](#itemsquerybuilder)

### fields(array $fields)

[](#fieldsarray-fields)

### addFields(array $fields)

[](#addfieldsarray-fields)

### filter(array $filter)

[](#filterarray-filter)

### addFilter(array $filter)

[](#addfilterarray-filter)

### limit(int $value)

[](#limitint-value)

### offset(int $value)

[](#offsetint-value)

### groupBy(array $groupBy)

[](#groupbyarray-groupby)

### addGroupBy(string $field)

[](#addgroupbystring-field)

### aggregate(string $aggregate, string $field)

[](#aggregatestring-aggregate-string-field)

### sort(array $sort)

[](#sortarray-sort)

### addSort(array $sort)

[](#addsortarray-sort)

### search(string $value)

[](#searchstring-value)

### meta(string $value)

[](#metastring-value)

### aliases(string $field, string $alias)

[](#aliasesstring-field-string-alias)

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity43

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 ~1 days

Total

4

Last Release

1668d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3b16ec404eb728816137dbb597135cb12c34f1bd7d77c612097b192fae9fd76d?d=identicon)[tentakelfabrik](/maintainers/tentakelfabrik)

---

Top Contributors

[![HerrHase](https://avatars.githubusercontent.com/u/5207733?v=4)](https://github.com/HerrHase "HerrHase (13 commits)")

### Embed Badge

![Health badge](/badges/tentakelfabrik-pirectus/health.svg)

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

###  Alternatives

[neuron-core/neuron-ai

The PHP Agentic Framework.

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

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)

PHPackages © 2026

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