PHPackages                             c14r/directus-api-laravel - 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. c14r/directus-api-laravel

ActiveLibrary

c14r/directus-api-laravel
=========================

Directus API Wrapper for Laravel 8

v1.0.2(5y ago)52663GPL-3.0-onlyPHPPHP ^7.3

Since Oct 20Pushed 3y ago1 watchersCompare

[ Source](https://github.com/C14r/directus-api-laravel)[ Packagist](https://packagist.org/packages/c14r/directus-api-laravel)[ RSS](/packages/c14r-directus-api-laravel/feed)WikiDiscussions master Synced today

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

Directus API Wrapper for Laravel 8
==================================

[](#directus-api-wrapper-for-laravel-8)

[![packagist version](https://camo.githubusercontent.com/b9b5907b20ba2f6eadf2a07bfa8b1cd1990944ff5c93951559a6079bd2eddbee/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f633134722f64697265637475732d6170692d6c61726176656c)](https://camo.githubusercontent.com/b9b5907b20ba2f6eadf2a07bfa8b1cd1990944ff5c93951559a6079bd2eddbee/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f633134722f64697265637475732d6170692d6c61726176656c)[![directus version](https://camo.githubusercontent.com/90d8b36170b76fba146d84bb7a18c894d374903d3af9fee3698a385088d174c5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f64697265637475732d76382e382e312d626c7565)](https://camo.githubusercontent.com/90d8b36170b76fba146d84bb7a18c894d374903d3af9fee3698a385088d174c5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f64697265637475732d76382e382e312d626c7565)[![laravel version](https://camo.githubusercontent.com/5f13b4a8156551ca90331040f9953bd73a7a38ccc8a93c67d193fa619d9bd2c0/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c61726176656c2d76382d626c7565)](https://camo.githubusercontent.com/5f13b4a8156551ca90331040f9953bd73a7a38ccc8a93c67d193fa619d9bd2c0/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c61726176656c2d76382d626c7565)

This package allows users to easily consume the REST API provided by the Directus Headless CMS system in any Laravel app.

If your looking for an API Wrapper without using Laravel, see [c14r/directus-api](https://github.com/C14r/directus-api).

Installing
==========

[](#installing)

The recommended way to install Directus-API is through [Composer](https://getcomposer.org/).

```
composer require c14r/directus-api-laravel
```

In Laravel 5, update the `config/app.php` providers array with the Service Provider:

```
C14r\Directus\Laravel\DirectusServiceProvider::class,
```

Configuration
=============

[](#configuration)

By default, the package is set up to use the following configuration values from your `.env` file:

- `DIRECTUS_URL` - The base URL of your Directus instance.
- `DIRECTUS_PROJECT` - The Directus project, you want to use

Authentification
----------------

[](#authentification)

You can enter

- `DIRECTUS_API_KEY` - The key generated by Directus and associated with a user

or

- `DIRECTUS_USERNAME` - The Directus username
- `DIRECTUS_PASSWORD` - The password for you Directus user

If you enter non of them, the guest access is used.

Laravel
-------

[](#laravel)

If you would like to use a config file, you can publish the default config by running the following command:

```
php artisan vendor:publish --provider="C14r\Directus\Laravel\DirectusServiceProvider"
```

This will publish a config file to `config/directus.php`.

Usage
=====

[](#usage)

To utilize the API Wrapper, use dependency injection to resolve:

```
public function __construct(Directus $directus)
{
    $this->api = $directus;
}
```

or use the helper function:

```
directus() // or directus('connection')
```

How the API works
-----------------

[](#how-the-api-works)

Take a look at [c14r/directus-api](https://github.com/C14r/directus-api) for more details.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 88.9% 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 ~0 days

Total

3

Last Release

2028d ago

### Community

Maintainers

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

---

Top Contributors

[![C14r](https://avatars.githubusercontent.com/u/567569?v=4)](https://github.com/C14r "C14r (8 commits)")[![klodoma](https://avatars.githubusercontent.com/u/944350?v=4)](https://github.com/klodoma "klodoma (1 commits)")

### Embed Badge

![Health badge](/badges/c14r-directus-api-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/c14r-directus-api-laravel/health.svg)](https://phpackages.com/packages/c14r-directus-api-laravel)
```

PHPackages © 2026

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