PHPackages                             nodes/api - 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. nodes/api

Abandoned → [spatie/laravel-fractal](/?search=spatie%2Flaravel-fractal)ArchivedLibrary[API Development](/categories/api)

nodes/api
=========

Nodes wrapper for Dingo API

2.0.6(8y ago)36.4k3[2 issues](https://github.com/nodes-php/api/issues)1MITPHP

Since Jan 7Pushed 6y ago2 watchersCompare

[ Source](https://github.com/nodes-php/api)[ Packagist](https://packagist.org/packages/nodes/api)[ Docs](http://nodesagency.com)[ RSS](/packages/nodes-api/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (10)Dependencies (4)Versions (62)Used By (1)

API
---

[](#api)

⚠️**This package is deprecated**⚠️

Laravel support for REST apis are just fine now. [Dingo API](https://github.com/dingo/api) is not in beta anymore.

We suggest just using Laravel + `spatie/laravel-fractal`

A "mobile friendly" API package made on-top of the popular [Dingo API](https://github.com/dingo/api) package.

[![Total downloads](https://camo.githubusercontent.com/0f6717cf0d80ac242fc0de359585d1cbaa3cdf0924a309b8a828acc7a167f5bd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6e6f6465732f6170692e737667)](https://packagist.org/packages/nodes/api)[![Monthly downloads](https://camo.githubusercontent.com/b6084da65077fc8c111b87e677628d756c705063e9f6a4b7ddbc3f8ba7b87e9a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f6e6f6465732f6170692e737667)](https://packagist.org/packages/nodes/api)[![Latest release](https://camo.githubusercontent.com/c448051cf28e101693dc5cbc299dd0e25ca9ffd675d36ed92837a625dc40539e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6e6f6465732f6170692e737667)](https://packagist.org/packages/nodes/api)[![Open issues](https://camo.githubusercontent.com/da1cef883eeaa23eeec8503c340124a66d3c05395142d1780b7b3e6509b43b92/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f6e6f6465732d7068702f6170692e737667)](https://github.com/nodes-php/api/issues)[![License](https://camo.githubusercontent.com/1cabb1a7a6093bc66120643b37d6bc77c8d84d564d38c6ac1131b161c99e8e4b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6e6f6465732f6170692e737667)](https://packagist.org/packages/nodes/api)[![Star repository on GitHub](https://camo.githubusercontent.com/e188957a4f73cbf2d4e7f13ab4ea00bf8869b1bb5454ba40a6619503dd9ee636/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f6e6f6465732d7068702f6170692e7376673f7374796c653d736f6369616c266c6162656c3d53746172)](https://github.com/nodes-php/api/stargazers)[![Watch repository on GitHub](https://camo.githubusercontent.com/16d141a149d1403f0b24f8f063a99a248c609e146a8452b8e0f7722cb5c733f0/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f77617463686572732f6e6f6465732d7068702f6170692e7376673f7374796c653d736f6369616c266c6162656c3d5761746368)](https://github.com/nodes-php/api/watchers)[![Fork repository on GitHub](https://camo.githubusercontent.com/1fb106f4afdb6883826081505c6fd3c1349cda841213f88ee6a07a8d7111d023/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f666f726b732f6e6f6465732d7068702f6170692e7376673f7374796c653d736f6369616c266c6162656c3d466f726b)](https://github.com/nodes-php/api/network)[![StyleCI](https://camo.githubusercontent.com/c8ea036665084395c4b93961ca1ee935515bbd75f7e5d8d88e705d4ce9f86ac8/68747470733a2f2f7374796c6563692e696f2f7265706f732f34393139303733352f736869656c64)](https://styleci.io/repos/49190735)

📝 Introduction
--------------

[](#-introduction)

Before this package we used the awesome and popular [Dingo API](https://github.com/dingo/api) package, but as a company who create **a lot** of native iOS / Android apps, [Dingo](http://github.com/dingo/api) was lacking a few things here and there.

This package is in some way a more "mobile friendly" version of [Dingo](https://github.com/dingo/api). It is build on-top of [Dingo](https://github.com/dingo/api) so all the goodies that [Dingo](https://github.com/dingo/api) comes with out-of-the-box is also available here.

We simply just added extra functionality and made it more flexible.

📦 Installation
--------------

[](#-installation)

To install this package you will need:

- Laravel 5.1+
- PHP 5.5.9+

You must then modify your `composer.json` file and run `composer update` to include the latest version of the package in your project.

```
"require": {
    "nodes/api": "^1.0"
}
```

Or you can run the composer require command from your terminal.

```
composer require nodes/api:^1.0
```

🔧 Setup
-------

[](#-setup)

Setup service providers in `config/app.php`

```
Nodes\Api\ServiceProvider::class,
```

Setup alias in `config/app.php`

```
'API' => Nodes\Api\Support\Facades\API::class,
'APIRoute' => Nodes\Api\Support\Facades\Route::class
```

Publish config files

```
php artisan vendor:publish --provider="Nodes\Api\ServiceProvider"
```

If you want to overwrite any existing config files use the `--force` parameter

```
php artisan vendor:publish --provider="Nodes\Api\ServiceProvider" --force
```

#### Bypass Laravel's CSRF tokens

[](#bypass-laravels-csrf-tokens)

Laravel comes with a built-in CSRF token system, which is by default hooked into all `POST` requests. This gives us a bit of a problem since API requests won't contain the required CSRF token that Laravel expects. Therefore we need to *whitelist* all requests hitting our API.

This can be done by modifying the following file `app/Http/Middleware/VerifyCsrfToken.php` and add `api/*` to the `$except` array:

```
protected $except = [
    'api/*',
];
```

⚙ Usage
-------

[](#-usage)

Please refer to our extensive [Wiki documentation](https://github.com/nodes-php/api/wiki) for more infromation

🏆 Credits
---------

[](#-credits)

This package is developed and maintained by the PHP team at [Nodes](http://nodesagency.com)

[![Follow Nodes PHP on Twitter](https://camo.githubusercontent.com/a898a5b14227bafa0c17c43be4f67460fe2b1dc3b88627d7b959e7fae4256a45/68747470733a2f2f696d672e736869656c64732e696f2f747769747465722f666f6c6c6f772f6e6f6465737068702e7376673f7374796c653d736f6369616c)](https://twitter.com/nodesphp) [![Tweet Nodes PHP](https://camo.githubusercontent.com/8c1a307180498b3bb360cf73e63da1bfa3afc0306f601be021acd1e85d2bb4e4/68747470733a2f2f696d672e736869656c64732e696f2f747769747465722f75726c2f687474702f6e6f6465737068702e7376673f7374796c653d736f6369616c)](https://twitter.com/nodesphp)

📄 License
---------

[](#-license)

This package is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)

###  Health Score

35

—

LowBetter than 79% of packages

Maintenance7

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity77

Established project with proven stability

 Bus Factor1

Top contributor holds 50.4% 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 ~13 days

Recently: every ~87 days

Total

58

Last Release

2994d ago

Major Versions

0.1.22 → 1.0.02016-05-14

1.1.4 → 2.0.02017-02-17

1.1.6 → 2.0.32017-03-20

### Community

Maintainers

![](https://www.gravatar.com/avatar/3aaee2c2b7632254faa8a589817712bdab2c7d46778fb26994eef75b20ec9c08?d=identicon)[nodes](/maintainers/nodes)

---

Top Contributors

[![Casperhr](https://avatars.githubusercontent.com/u/1279756?v=4)](https://github.com/Casperhr "Casperhr (63 commits)")[![rugaard](https://avatars.githubusercontent.com/u/179868?v=4)](https://github.com/rugaard "rugaard (41 commits)")[![rasmusebbesen](https://avatars.githubusercontent.com/u/944158?v=4)](https://github.com/rasmusebbesen "rasmusebbesen (12 commits)")[![nielsiano](https://avatars.githubusercontent.com/u/947684?v=4)](https://github.com/nielsiano "nielsiano (4 commits)")[![pcoutinho](https://avatars.githubusercontent.com/u/3076738?v=4)](https://github.com/pcoutinho "pcoutinho (2 commits)")[![joscdk](https://avatars.githubusercontent.com/u/2535140?v=4)](https://github.com/joscdk "joscdk (2 commits)")[![tomserowka](https://avatars.githubusercontent.com/u/12412776?v=4)](https://github.com/tomserowka "tomserowka (1 commits)")

---

Tags

apilaraveldingonodes

### Embed Badge

![Health badge](/badges/nodes-api/health.svg)

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

###  Alternatives

[dingo/blueprint

API Blueprint documentation generator.

2707.8M22](/packages/dingo-blueprint)[nilportugues/laravel5-json-api-dingo

Laravel5 JSONAPI and Dingo together to build APIs fast

311.5k](/packages/nilportugues-laravel5-json-api-dingo)

PHPackages © 2026

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