New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

lasserafn/laravel-economic

Economic REST wrapper for Laravel
21,270 11
Install
composer require lasserafn/laravel-economic
Latest Version:4.1
PHP:>=7.3
Laravel:8 · 9 · 10
Older releases:5 · 6 · 7
License:MIT
Last Updated:Mar 9, 2023
Links: GitHub  ·  Packagist
Maintainer: lasserafn

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

Related Packages

lasserafn/php-dinero

Dinero REST wrapper for PHP

5,260 11
lasserafn/php-fortnox

Fortnox REST wrapper for PHP

97 1
fenix007/apiwrapper

Laravel API wrapper

14 1
redeman/imgur-laravel

Laravel Package for Imgur API. Provides easy access to the adyg/php-imgur-api-cl...

2,639 9

Version History

Version Released PHP Laravel License
4.1 >=7.3 8.*|9.*|10.* MIT
4.0 >=7.3 8.*|9.* MIT
3.2 >=5.4.0 5.*|6.*|7.*|8.*|9.* MIT
3.1 >=5.4.0 5.*|6.*|7.*|8.*|9.* MIT
3.0 >=5.4.0 5.*|6.*|7.*|8.*|9.* MIT