https://github.com/marketcloud/marketcloud-php
Official PHP sdk for Marketcloud's eCommerce API
https://github.com/marketcloud/marketcloud-php
api ecommerce marketcloud shopping-cart
Last synced: 9 months ago
JSON representation
Official PHP sdk for Marketcloud's eCommerce API
- Host: GitHub
- URL: https://github.com/marketcloud/marketcloud-php
- Owner: Marketcloud
- License: mit
- Created: 2016-05-11T22:16:42.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2024-09-09T18:19:12.000Z (over 1 year ago)
- Last Synced: 2025-02-22T00:17:12.880Z (about 1 year ago)
- Topics: api, ecommerce, marketcloud, shopping-cart
- Language: PHP
- Homepage: http://www.marketcloud.it
- Size: 23.4 KB
- Stars: 2
- Watchers: 3
- Forks: 5
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# marketcloud-php
Marketcloud API official PHP client library
## Installation with Composer
```
composer require marketcloud/marketcloud-php
composer install
```
Then you can use the Composer's autoload
```php
require_once('vendor/autoload.php');
```
## Manual installation
You can download the latest release from GitHub and then include the init.php file
```php
require_once('/path/to/marketcloud-php/init.php');
```
## Documentation
The official documentation can be found at http://www.marketcloud.it/documentation
## API overview
You can interact with the api through a Marketcloud
```php
Marketcloud\Marketcloud::setCredentials(array(
'secret_key' => 'your-secret-key',
'public_key' => 'your-public-key'
));
```
Every resource method, returns json data:
```php
$response = Marketcloud\Products::get();
echo json_encode( (array)$response->body )
```