https://github.com/lasserafn/laravel-economic
Economic REST wrapper for Laravel
https://github.com/lasserafn/laravel-economic
api api-wrapper economic laravel
Last synced: over 1 year ago
JSON representation
Economic REST wrapper for Laravel
- Host: GitHub
- URL: https://github.com/lasserafn/laravel-economic
- Owner: LasseRafn
- License: mit
- Created: 2016-12-05T11:57:03.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2023-03-09T13:11:23.000Z (over 3 years ago)
- Last Synced: 2025-03-17T14:08:22.154Z (over 1 year ago)
- Topics: api, api-wrapper, economic, laravel
- Language: PHP
- Size: 188 KB
- Stars: 11
- Watchers: 4
- Forks: 11
- Open Issues: 3
-
Metadata Files:
- Readme: readme.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Laravel e-conomic REST wrapper
## Installation
1. Require using composer
``` bash
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.
2. Add the EconomicServiceProvider to your `config/app.php` providers array.
``` php
[
// ...
\LasseRafn\Economic\EconomicServiceProvider::class,
// ...
]
```
3. Copy the package config to your local config with the publish command:
``` bash
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](https://github.com/LasseRafn/laravel-economic/graphs/contributors)