yumdap / magento2-api
Provides access to the Magento 2 API
v0.0.2
2018-12-19 22:51 UTC
Requires
- php: ^7.0
- kitetail/zttp: ^0.3.0
Requires (Dev)
- phpunit/phpunit: ^7.0
This package is auto-updated.
Last update: 2024-04-20 11:03:00 UTC
README
This is a very incomplete implementation of the Magento 2 API. Extended as needed. Will break often. PRs welcome.
Installation
You can install the package via composer:
composer require yumdap/magento2-api
Usage
use Yumdap\Magento2\Client; // create client $client = Client($api_url, $integration_token); // get order $order = $client->getOrderByIncrementId("100000012"); // create invoice for given order $client->invoiceOrder($order); // create shipment for that order $client->shipOrder($order);
Testing
composer test
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email mniess@gmail.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.