承接 shreejalmaharjan-27/wooclient 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-09-10