webweave / magento2-sdk
A proper Magento 2 rest api sdk
Installs: 22
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/webweave/magento2-sdk
Requires
- guzzlehttp/guzzle: ~6.0
This package is auto-updated.
Last update: 2025-09-22 03:18:24 UTC
README
A proper sdk for Magento 2 rest api
WARNING
This piece of software is provided without warranty of any kind, use it at your own risk.
DONE FOR NOW
- Customer groups
- Customers
REQUIREMENTS
php-curl needs to be installed.
USAGE
Installation
Best way is to use composer
$ composer require webweave/magento2-sdk
Basic Code examples
<?php use WebWeave\Magento2SDK\ApiClient; use WebWeave\Magento2SDK\CustomerGroups; //Initialize client $apiClient = new ApiClient('https://magento2.shop/', 'AdminUserName', "AdminPassword"); //Get and set Bearer token in the client $apiClient->getToken(); //Create a customer group $customerGroup = new CustomerGroups($apiClient); $data = array("group" => array( "code" => "I am made by the magento2-sdk :D" )); $customerGroup->createCustomerGroup($data);