New

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

morningtrain/laravel-economic

This is my package laravel-economic
2,622 2
Install
composer require morningtrain/laravel-economic
Latest Version:v1.1.0
PHP:^8.2
Laravel:10 – 13
License:MIT
Last Updated:Aug 26, 2026
Links: GitHub  ·  Packagist
Maintainer: morningtrain

This is my package laravel-e-conomic

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

This is where your description should go. Limit it to a paragraph or two. Consider adding a small example.

Installation

You can install the package via composer:

composer require morningtrain/laravel-economic

Configuring the package

You can publish the config file with:

php artisan vendor:publish --tag="e-conomic-config"

This is the contents of the published config file:

<?php

return [
    'app_secret_token' => env('ECONOMIC_APP_SECRET_TOKEN'),
    'agreement_grant_token' => env('ECONOMIC_AGREEMENT_GRANT_TOKEN'),

    /*
     * This class handles actions on request and response to Economic.
     */
    'request_logger' => \Morningtrain\LaravelEconomic\RequestLogger\VoidRequestLogger::class,
];

Usage

Creating your own request logger

A request logger is any class that implements \Morningtrain\LaravelEconomic\RequestLogger\RequestLogger. Here's what that interface looks like.

use GuzzleHttp\Psr7\Response;
use Illuminate\Http\Client\Request;
use Psr\Http\Message\ResponseInterface;

interface RequestLogger
{
    public function onRequest(Request $request);

    public function onResponse(Response $response): ResponseInterface;
}

After creating your own RequestLogger you must register it in the request_logger in the e-conomic config file.

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.


Developed by

Related Packages

morningtrain/economic

PHP SDK for e-conomic

14,874 2
morningtrain/foundation

Tools built on top of laravel 5.4

184 0
morningtrain/menumanager

Simple menu includer for Laravel

47 2
morningtrain/wp-route

A simple route service for WordPress

2,126 3

Version History

Version Released PHP Laravel License
v1.1.0 ^8.2 ^10.0|^11.0|^12.0|^13.0 MIT
v1.0.0 ^8.1 ^10.0|^11.0|^12.0 MIT
v0.11.0 ^8.1 ^10.0|^11.0 MIT
v0.10.0 ^8.1 ^10.0|^11.0 MIT
v0.9.0 ^8.1 ^10.0|^11.0 MIT