priskz/sorad-api

A service oriented API built around the Responder-Action-Domain pattern.

Installs: 102

Dependents: 7

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

pkg:composer/priskz/sorad-api

0.1.0 2019-10-19 02:56 UTC

This package is auto-updated.

Last update: 2025-09-19 16:27:20 UTC


README

Purpose

A service oriented API built around the Responder-Action-Domain pattern.

Install via Composer

Add the following to your "require" schema:

"require": {
     "priskz/sorad-api": "~0.1.0"
}

Run: composer install

Add 'SORAD\Laravel\APIServiceProvider' to the 'providers' in /app/laravel/config/app.php to enable the newly added service.

Run: php artisan vendor:publish to publish the configuration file in /app/laravel/config/ directory.

Register SORAD API based modules via the /app/laravel/config/sorad.php modules array. These entries should be the directory path to the modules. PSR4 autoloading recommended. These modules will require a routes.php file.

Example:

'modules' => [
    'API/Account',
    'API/Admin',
    'API/Auth',
    'API/Front',
],

In the above example, we have a dedicated API directory that holds modules.