morningtrain/wp-economic

PHP SDK for e-conomic with WordPress support

v0.7.0 2024-02-29 12:23 UTC

README

Latest Version on Packagist Tests Total Downloads

This creates a wrapper for the e-conomic REST API using morningtrain/economic package, and makes it easy to use in a WordPress application.

Installation

You can install the package via composer:

composer require morningtrain/wp-economic

Usage

    use MorningTrain\WordPress\Economic\Economic;

    Economic::setup(
    ECONOMIC_APP_SECRET_TOKEN,
    ECONOMIC_GRANT_TOKEN);
    
    Economic::useLogger(new fooLogger());

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.