Economic REST wrapper for Laravel
Latest commit 320d3dc Dec 7, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src Apply fixes from StyleCI Dec 7, 2018
.gitignore Added ProductGroup to Product model, added .idea to gitignore Mar 4, 2018
.styleci StyleCI Mar 19, 2018
LICENSE.md Year Mar 19, 2018
composer.json Update composer.json Jul 19, 2018
readme.md Update readme.md Mar 19, 2018

readme.md

Laravel e-conomic REST wrapper

Total Downloads Latest Stable Version License StyleCI Status

Installation

  1. Require using composer
composer require lasserafn/laravel-economic

In Laravel 5.5, and above, the package will auto-register the service provider. In Laravel 5.4 you must install this service provider.

  1. Add the EconomicServiceProvider to your config/app.php providers array.
<?php 
'providers' => [
    // ...
    \LasseRafn\Economic\EconomicServiceProvider::class,
    // ...
]
  1. Copy the package config to your local config with the publish command:
php artisan vendor:publish --provider="LasseRafn\Economic\EconomicServiceProvider"

Usage outside of Laravel

You can use this package without Laravel, but configuration files wont be used, so you must provide the keys to the class.

The wrapper uses the config() method in the Economic class if no keys are provided. But if you remember to provide keys, it should never be called.

Otherwise register a global method for config until there's a framework agnostic version (coming eventually)

Contributors