PHPackages                             robertgarrigos/backdrop-headless-client - 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. robertgarrigos/backdrop-headless-client

ActiveLibrary[API Development](/categories/api)

robertgarrigos/backdrop-headless-client
=======================================

Laravel 5 REST API client for a backdrop cms site with the headless module.

1.0.1(6y ago)013MITPHPPHP ^7.1CI failing

Since Aug 6Pushed 5y ago1 watchersCompare

[ Source](https://github.com/robertgarrigos/backdrop-headless-client)[ Packagist](https://packagist.org/packages/robertgarrigos/backdrop-headless-client)[ Docs](https://github.com/robertgarrigos/backdrop-headless-client)[ RSS](/packages/robertgarrigos-backdrop-headless-client/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (4)Versions (7)Used By (0)

Laravel 5 REST API client for a Backdrop cms site with the headless module
==========================================================================

[](#laravel-5-rest-api-client-for-a-backdrop-cms-site-with-the-headless-module)

[![Latest Version on Packagist](https://camo.githubusercontent.com/b461f66c6308392f73588b7e6743435d001bc69cabce15c1928d8d69ac348597/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f726f626572746761727269676f732f6261636b64726f702d686561646c6573732d636c69656e742e7376673f696e636c7564655f70726572656c6561736573)](https://packagist.org/packages/robertgarrigos/backdrop-headless-client)[![Build Status](https://camo.githubusercontent.com/28b96d3cf12f0fc1c9f4e3417cc6e40f2105883adec5430e1a7a24b619fe783b/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f726f626572746761727269676f732f6261636b64726f702d686561646c6573732d636c69656e742f6d61737465722e737667)](https://travis-ci.org/robertgarrigos/backdrop-headless-client)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/b63f45d7d1895041efaac5392783d88f57e1fe88a9bd6dadc21d01fce14e9bf6/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f726f626572746761727269676f732f6261636b64726f702d686561646c6573732d636c69656e742f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/robertgarrigos/backdrop-headless-client/?branch=master)[![Total Downloads](https://camo.githubusercontent.com/0ffc0930ebff891a5fe595f9e588e1870ea0d84e693e1eb840e575b99526f671/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f726f626572746761727269676f732f6261636b64726f702d686561646c6573732d636c69656e742e737667)](https://packagist.org/packages/robertgarrigos/backdrop-headless-client)

This is a laravel package which allows you to pull data from a backdrop cms site, configured with the headles module. Thus you can use the backdrop site as a backend and laravel as front end.

Compatibility
-------------

[](#compatibility)

v. 1.\* of this package is compatible with Laravel 5.8

v. 2.\* of this package is compatible with Laravel 7.\*

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

[](#installation)

You can install the package via composer:

```
composer require robertgarrigos/backdrop-headless-client
```

Optionally, you can use `artisan vendor:publish --tag=backdrop-config` to publish a config file.

You need to add a config value in your .env file for the backdrop api url as:

```
BACKDROP_API_SERVER="https://example.com"

```

Usage
-----

[](#usage)

To make use of this package, you need to install and config a [backdrop cms](https://github.com/backdrop/backdrop) site with the [headless module](https://github.com/backdrop-contrib/headless), which is reponsible to create the JSON end points.

You acces those endpoints in your controller with:

```
/* Nodes (v2): /api/v2/node/{type}/{id} */

$node = Backdrop::getNode($type, $id);

/* Terms: /api/{vocabulary}/term/{id} */

$term = Backdrop::getTerm($vocabulary, $id);

/* Views (v2): /api/v2/views/{view_name}/{display_id}/{contextual_arguments}{filter_arguments} */

$view = Backdrop::getView($view, $display_id, $args);

/* Paragraphs (v3): /api/v3/paragraphs/{id} */

$paragraph = Backdrop::getParagraph($id);
```

Read my [blog post](https://www.garrigos.cat/blog/how-to-set-a-backdrop-cms-as-backend-and-a-laravel-as-frontend) about this package for a deeper understanding of how it works and how to use it.

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Robert Garrigos](https://github.com/robertgarrigos)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

Laravel Package Boilerplate
---------------------------

[](#laravel-package-boilerplate)

This package was generated using the [Laravel Package Boilerplate](https://laravelpackageboilerplate.com).

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 93.3% 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 ~66 days

Total

5

Last Release

2203d ago

Major Versions

1.0.1 → 2.0.0-beta.12020-04-25

PHP version history (2 changes)1.0.1PHP ^7.1

2.0.0-beta.1PHP ^7.2

### Community

Maintainers

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

---

Top Contributors

[![robertgarrigos](https://avatars.githubusercontent.com/u/105581?v=4)](https://github.com/robertgarrigos "robertgarrigos (28 commits)")[![scrutinizer-auto-fixer](https://avatars.githubusercontent.com/u/6253494?v=4)](https://github.com/scrutinizer-auto-fixer "scrutinizer-auto-fixer (2 commits)")

---

Tags

backdroplaravelrest-apirobertgarrigosbackdrop-headless-client

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/robertgarrigos-backdrop-headless-client/health.svg)

```
[![Health](https://phpackages.com/badges/robertgarrigos-backdrop-headless-client/health.svg)](https://phpackages.com/packages/robertgarrigos-backdrop-headless-client)
```

###  Alternatives

[openai-php/laravel

OpenAI PHP for Laravel is a supercharged PHP API client that allows you to interact with the Open AI API

3.7k7.6M74](/packages/openai-php-laravel)[statamic/cms

The Statamic CMS Core Package

4.8k3.2M718](/packages/statamic-cms)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[nickurt/laravel-postcodeapi

Universal PostcodeApi for Laravel 11.x/12.x/13.x

97221.2k](/packages/nickurt-laravel-postcodeapi)[mozex/anthropic-laravel

Anthropic PHP for Laravel is a supercharged PHP API client that allows you to interact with the Anthropic API

71226.4k1](/packages/mozex-anthropic-laravel)[scriptdevelop/whatsapp-manager

Paquete para manejo de WhatsApp Business API en Laravel

762.6k](/packages/scriptdevelop-whatsapp-manager)

PHPackages © 2026

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