{"id":15356521,"url":"https://github.com/robertgarrigos/backdrop-headless-client","last_synced_at":"2026-04-28T08:39:51.319Z","repository":{"id":57047328,"uuid":"198656280","full_name":"robertgarrigos/backdrop-headless-client","owner":"robertgarrigos","description":"Laravel 5 REST API client for a backdrop cms site with the headless module","archived":false,"fork":false,"pushed_at":"2020-07-08T22:02:09.000Z","size":68,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-18T22:43:06.018Z","etag":null,"topics":["backdrop","laravel","rest-api"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/robertgarrigos.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-07-24T14:53:32.000Z","updated_at":"2020-07-08T22:02:11.000Z","dependencies_parsed_at":"2022-08-23T19:00:18.068Z","dependency_job_id":null,"html_url":"https://github.com/robertgarrigos/backdrop-headless-client","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/robertgarrigos/backdrop-headless-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertgarrigos%2Fbackdrop-headless-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertgarrigos%2Fbackdrop-headless-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertgarrigos%2Fbackdrop-headless-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertgarrigos%2Fbackdrop-headless-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/robertgarrigos","download_url":"https://codeload.github.com/robertgarrigos/backdrop-headless-client/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertgarrigos%2Fbackdrop-headless-client/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32373515,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-27T20:07:02.737Z","status":"online","status_checked_at":"2026-04-28T02:00:07.250Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["backdrop","laravel","rest-api"],"created_at":"2024-10-01T12:29:00.222Z","updated_at":"2026-04-28T08:39:51.284Z","avatar_url":"https://github.com/robertgarrigos.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Laravel 5 REST API client for a Backdrop cms site with the headless module\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/robertgarrigos/backdrop-headless-client.svg?include_prereleases)](https://packagist.org/packages/robertgarrigos/backdrop-headless-client)\n[![Build Status](https://img.shields.io/travis/robertgarrigos/backdrop-headless-client/master.svg)](https://travis-ci.org/robertgarrigos/backdrop-headless-client)\n[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/robertgarrigos/backdrop-headless-client/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/robertgarrigos/backdrop-headless-client/?branch=master)\n[![Total Downloads](https://img.shields.io/packagist/dt/robertgarrigos/backdrop-headless-client.svg)](https://packagist.org/packages/robertgarrigos/backdrop-headless-client)\n\nThis 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.\n\n## Compatibility\nv. 1.* of this package is compatible with Laravel 5.8\n\nv. 2.* of this package is compatible with Laravel 7.*\n\n## Installation\n\nYou can install the package via composer:\n\n```bash\ncomposer require robertgarrigos/backdrop-headless-client\n```\nOptionally, you can use `artisan vendor:publish --tag=backdrop-config` to publish a config file.\n\nYou need to add a config value in your .env file for the backdrop api url as:\n\n```\nBACKDROP_API_SERVER=\"https://example.com\"\n```\n\n## Usage\n\nTo 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.\n\nYou acces those endpoints in your controller with:\n\n```php\n/* Nodes (v2): /api/v2/node/{type}/{id} */\n\n$node = Backdrop::getNode($type, $id);\n\n/* Terms: /api/{vocabulary}/term/{id} */\n\n$term = Backdrop::getTerm($vocabulary, $id);\n\n/* Views (v2): /api/v2/views/{view_name}/{display_id}/{contextual_arguments}{filter_arguments} */\n\n$view = Backdrop::getView($view, $display_id, $args);\n\n/* Paragraphs (v3): /api/v3/paragraphs/{id} */\n\n$paragraph = Backdrop::getParagraph($id);\n```\n\nRead 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.\n\n### Changelog\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.\n\n## Contributing\n\nPlease see [CONTRIBUTING](CONTRIBUTING.md) for details.\n\n### Security\n\nIf you discover any security related issues, please email robert@garrigos.cat instead of using the issue tracker.\n\n## Credits\n\n- [Robert Garrigos](https://github.com/robertgarrigos)\n- [All Contributors](../../contributors)\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n\n## Laravel Package Boilerplate\n\nThis package was generated using the [Laravel Package Boilerplate](https://laravelpackageboilerplate.com).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobertgarrigos%2Fbackdrop-headless-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobertgarrigos%2Fbackdrop-headless-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobertgarrigos%2Fbackdrop-headless-client/lists"}