|
@ -1,13 +1,11 @@ |
|
|
# Pirectus - a small Client for Directus 9 |
|
|
# 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 |
|
|
|
|
|
|
|
|
This Version is in a early Stage and only supports get, post, patch for Items. Authentification is only possible with token. |
|
|
|
|
|
|
|
|
## Installation |
|
|
## Installation |
|
|
|
|
|
|
|
|
```php |
|
|
```php |
|
|
|
|
|
|
|
|
|
|
|
composer require tentakelfabrik/pirectus |
|
|
``` |
|
|
``` |
|
|
|
|
|
|
|
|
## Quickstart |
|
|
## Quickstart |
|
@ -31,4 +29,21 @@ $results = $pirectus |
|
|
'status' => ['_eq' => 'published'] |
|
|
'status' => ['_eq' => 'published'] |
|
|
]) |
|
|
]) |
|
|
->find(); |
|
|
->find(); |
|
|
``` |
|
|
|
|
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
## ItemsQueryBuilder |
|
|
|
|
|
|
|
|
|
|
|
### fields(array $fields) |
|
|
|
|
|
### addFields(array $fields) |
|
|
|
|
|
### filter(array $filter) |
|
|
|
|
|
### addFilter(array $filter) |
|
|
|
|
|
### limit(int $value) |
|
|
|
|
|
### offset(int $value) |
|
|
|
|
|
### groupBy(array $groupBy) |
|
|
|
|
|
### addGroupBy(string $field) |
|
|
|
|
|
### aggregate(string $aggregate, string $field) |
|
|
|
|
|
### sort(array $sort) |
|
|
|
|
|
### addSort(array $sort) |
|
|
|
|
|
### search(string $value) |
|
|
|
|
|
### meta(string $value) |
|
|
|
|
|
### aliases(string $field, string $alias) |