Paulius Opanovičius edited this page Jun 7, 2018 · 12 revisions

To install this package you will need:

  • PHP ^7.0

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

"require": {
    "dingo/api": "2.0.0-alpha1"

At this time the package is still in a developmental stage and as such does not have a stable release. You may need to set your minimum-stability to dev.

Once the package is installed the next step is dependant on which framework you're using.


If you'd like to make configuration changes in the configuration file you can publish it with the following Artisan command:

php artisan vendor:publish --provider="Dingo\Api\Provider\LaravelServiceProvider"


Open bootstrap/app.php and register the required service provider.



There are two facades shipped with the package. You can add either of them should you wish.


This is a facade for the dispatcher, however, it also provides helper methods for other methods throughout the package.


This is a facade for the API router and can be used to fetch the current route, request, check the current route name, etc.

Configuration →

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.