Installation

The API module is a paid addon and requires purchasing from the addon store or an active PRO subscription.

Installing with PRO Subscription

You can install the API module with Composer as a VCS repository if you have an active PRO subscription:

{
     "require": {
        "anomaly/api-module": "~1.0.0"
    },
    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/anomalylabs/api-module"
        }
    ]
}

Then simply install for your application:

php artisan addon:install anomaly.module.api
Installing from Store Download

You can install the API module by downloading the addon and placing it within your site's addon directory:

/addons/{application_ref}/anomaly/*

Next, copy the requirements section of the API module's composer.json file into your project's composer.json file:

"require": {
    "laravel/passport": "~1.0.0"
}

Then run composer update to bring in Passport:

composer update

Finally install the addon with the addon:install command:

php artisan addon:install anomaly.module.api