PHPackages                             webkenth/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. [API Development](/categories/api)
4. /
5. webkenth/directus-api-laravel

ActiveLibrary[API Development](/categories/api)

webkenth/directus-api-laravel
=============================

Directus API Wrapper for Laravel 9, credit to C14r/directus-api-laravel

v1.2(3y ago)0131GPL-3.0-onlyPHPPHP ^7.3|^7.4|^8.0|^8.1

Since Aug 2Pushed 3y agoCompare

[ Source](https://github.com/WebKenth/directus-api-laravel)[ Packagist](https://packagist.org/packages/webkenth/directus-api-laravel)[ RSS](/packages/webkenth-directus-api-laravel/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (2)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

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 77.8% 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

Unknown

Total

1

Last Release

1379d ago

### Community

Maintainers

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

---

Top Contributors

[![C14r](https://avatars.githubusercontent.com/u/567569?v=4)](https://github.com/C14r "C14r (7 commits)")[![WebKenth](https://avatars.githubusercontent.com/u/13419123?v=4)](https://github.com/WebKenth "WebKenth (2 commits)")

### Embed Badge

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

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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