You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
HerrHase dbde1d5c04 adding 3 years ago
src adding 3 years ago
.gitignore adding 3 years ago
README.md adding 3 years ago
composer.json adding 3 years ago
composer.lock adding 3 years ago

README.md

Pirectus - a small Client for Directus 9

This Client Supports Directus 9, it is written in PHP and use Guzzle for handling requests.

In this Version

Installation


Quickstart

require('vendor/autoload.php');

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

$pirectus = new Pirectus('<directus-url>', [
    'auth' => new TokenAuth('<directus-authtoken>')
]);
$results = $pirectus
    ->items('pages')
    ->fields(['id', 'title', 'content'])
    ->filter([
        'status' => ['_eq' => 'published']
    ])
    ->find();