Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/morning-train/wp-economic
PHP SDK for e-conomic with WordPress support
https://github.com/morning-train/wp-economic
e-conomic economic php php-sdk sdk visma wordpress
Last synced: about 2 months ago
JSON representation
PHP SDK for e-conomic with WordPress support
- Host: GitHub
- URL: https://github.com/morning-train/wp-economic
- Owner: Morning-Train
- License: mit
- Created: 2023-12-19T11:47:24.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-07-08T15:34:21.000Z (6 months ago)
- Last Synced: 2024-09-18T19:29:19.217Z (4 months ago)
- Topics: e-conomic, economic, php, php-sdk, sdk, visma, wordpress
- Language: PHP
- Homepage:
- Size: 39.1 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
Awesome Lists containing this project
README
# PHP SDK for e-conomic with WordPress support
[![Latest Version on Packagist](https://img.shields.io/packagist/v/morningtrain/wp-economic.svg?style=flat-square)](https://packagist.org/packages/morningtrain/wp-economic)
[![Tests](https://img.shields.io/github/actions/workflow/status/Morning-train/wp-economic/run-tests.yml?branch=main&label=tests&style=flat-square)](https://github.com/Morning-train/wp-economic/actions/workflows/run-tests.yml)
[![Total Downloads](https://img.shields.io/packagist/dt/morningtrain/wp-economic.svg?style=flat-square)](https://packagist.org/packages/morningtrain/wp-economic)This creates a wrapper for the e-conomic REST API using [morningtrain/economic package](https://github.com/Morning-Train/economic), and makes it easy to use in a WordPress application.
## Installation
You can install the package via composer:
```bash
composer require morningtrain/wp-economic
```## Usage
```php
use MorningTrain\WordPress\Economic\Economic;Economic::setup(
ECONOMIC_APP_SECRET_TOKEN,
ECONOMIC_GRANT_TOKEN);
Economic::useLogger(new fooLogger());
```## Testing
```bash
composer test
```## Changelog
Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.
## Contributing
Please see [CONTRIBUTING](https://github.com/spatie/.github/blob/main/CONTRIBUTING.md) for details.
## Security Vulnerabilities
Please review [our security policy](../../security/policy) on how to report security vulnerabilities.
## Credits
- [Martin Schadegg Brønniche](https://github.com/mschadegg)
- [Lars Rasmussen](https://github.com/larasmorningtrain)
- [All Contributors](../../contributors)## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.