manuglopez / laravel-wooclient
Woocommerce api client for Laravel
v1.0.0
2022-03-31 17:56 UTC
Requires
- automattic/woocommerce: ^3.1
Requires (Dev)
- fakerphp/faker: ^1.19
- illuminate/contracts: ^9.0
- illuminate/support: ^9.0
- mockery/mockery: ^1.5
- orchestra/database: dev-master
- orchestra/testbench: ^7.2
- phpunit/phpunit: ^9.5
- symfony/thanks: ^1.0
README
This Laravel package offer a wrapper for https://github.com/woocommerce/wc-api-php
Install
composer require manuglopez/laravel-wooclient
Usage
Before using this client you will need to publish config file.
php artisan vendor:publish --provider="Manuglopez\LaravelWooclient\LaravelWooclientServiceProvider"
Values are expected to find in your .env file with apropiate key and credentials
After that you can use the Facade as
LaravelWooclientFacade::get('/woocommerce_endpoint', [])
Testing
Run the tests with:
vendor/bin/phpunit
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security-related issues, please email mglopez@me.com instead of using the issue tracker.
License
The MIT License (MIT). Please see License File for more information.