every/akeneo-api
Composer 安装命令:
composer require every/akeneo-api
包简介
Akeneo Api wrapper for PHP
README 文档
README
Connect easily to the Akeneo Api.
Compatible with Akeneo ^1.7
Install
You can install this library with composer:
composer require every/akeneo-api
Usage
In orden to use any of the Akeneo endpoints, first you need to create a settings object with the akeneo host, username, password, client id and secret. You need to create the Auth and the Client, and pass the Client object to the endpoint object.
Below an example to get a product:
<?php require_once 'vendor/autoload.php'; use Every\Akeneo\Api; use Every\Akeneo\Api\Endpoint; $settings = new Api\Settings( 'http://akeneohost.com', // Akeneo Host 'myuser', // User Username 'mypass', // User Password 'myclientid', // Client ID 'mysecret' // Secret ); $auth = new Api\Auth($settings); $client = new Api\Client($auth); $product = new Endpoint\Product($client); var_dump($product->get('product_sku'));
For more information about the Akeneo Api see its docs.
统计信息
- 总下载量: 400
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-06-08