shreejalmaharjan-27/wooclient
最新稳定版本:v0.0.3
Composer 安装命令:
composer require shreejalmaharjan-27/wooclient
包简介
A Woocommerce REST API client
README 文档
README
Install
composer require shreejalmaharjan-27/wooclient
Usage
Require composer autoload file and load classfiles
use Shreejalmaharjan27\Wooclient\Category; use Shreejalmaharjan27\Wooclient\Product; use Shreejalmaharjan27\Wooclient\WooClient; require __DIR__.'/vendor/autoload.php';
Create WooClient Object (with trailing slash on website address)
$wooclient = new WooClient("ck_xxxxx,"cs_xxxxx","https://wordpress.example.com/");
Create a Product
$product = new Product($wooclient); $product->create(name: 'Example Product', price: 18.00, image: 'https://example.com/image.jpg');
Create a Product Category
$category = new Category($wooclient); $category->create(name: 'Example category');
统计信息
- 总下载量: 12
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-09-10