close
Skip to content

rain64x/wooclient

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A work in progress project to interact with Woocommerce REST API

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');

About

Work in Progress

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • PHP 100.0%