Download the PHP package eoko/magento2-client without Composer
On this page you can find all versions of the php package eoko/magento2-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download eoko/magento2-client
More information about eoko/magento2-client
Files in eoko/magento2-client
Package magento2-client
Short Description Eoko Magento 2 client for the API
License OSL-3.0
Informations about the package magento2-client
Eoko/magento2-client
A simple PHP client to use the Magento2.
Requirements
- PHP >= 7.1
- Composer
Installation
We use HTTPPlug as the HTTP client abstraction layer. In this example, we will use Guzzle v6 as the HTTP client implementation.
eoko/magento2-client
uses Composer.
The first step to use eoko/magento2-client
is to download composer:
Then, run the following command to require the library:
If you want to use another HTTP client implementation, you can check here the full list of HTTP client implementations.
Getting started
Initialise the client
You first need to initialise the client with your credentials with admin token.
If you don't have any admin token, you can create it and retrieve with the following code :
After that, you can create an authenticated client :
Get a product
Get a list of products
By getting pages
By getting a cursor
Create a product
unsupported
Update a product
Stock Item
Update a stock item
Support
If you find a bug or want to submit an improvement, don't hesitate to raise an issue on Github.
All versions of magento2-client with dependencies
psr/http-message Version ^1.0
php-http/httplug Version ^1.0
php-http/message Version ^1.0
php-http/discovery Version ^1.0
php-http/message-factory Version ^v1.0
php-http/multipart-stream-builder Version ^1.0
php-http/client-implementation Version ^1.0