PHPackages                             shreejalmaharjan-27/wooclient - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. shreejalmaharjan-27/wooclient

ActiveLibrary[API Development](/categories/api)

shreejalmaharjan-27/wooclient
=============================

A Woocommerce REST API client

v0.0.3(3y ago)0121MITPHPPHP &gt;=8.0

Since Sep 13Pushed 3y ago1 watchersCompare

[ Source](https://github.com/shreejalmaharjan-27/wooclient)[ Packagist](https://packagist.org/packages/shreejalmaharjan-27/wooclient)[ RSS](/packages/shreejalmaharjan-27-wooclient/feed)WikiDiscussions master Synced yesterday

READMEChangelog (3)DependenciesVersions (4)Used By (0)

A work in progress project to interact with Woocommerce REST API
================================================================

[](#a-work-in-progress-project-to-interact-with-woocommerce-rest-api)

Install
-------

[](#install)

```
composer require shreejalmaharjan-27/wooclient

```

Usage
-----

[](#usage)

### Require composer autoload file and load classfiles

[](#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)

[](#create-wooclient-object-with-trailing-slash-on-website-address)

```
$wooclient = new WooClient("ck_xxxxx,"cs_xxxxx","https://wordpress.example.com/");
```

### Create a Product

[](#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
-------------------------

[](#create-a-product-category)

```
$category = new Category($wooclient);
$category->create(name: 'Example category');
```

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 94.1% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~55 days

Total

3

Last Release

1279d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7b3863aebef5a5a447b4011272aaffa4692bc44c1efa1f846ad00dc4b10018c9?d=identicon)[shreejalmaharjan-27](/maintainers/shreejalmaharjan-27)

---

Top Contributors

[![shreejalmaharjan-27](https://avatars.githubusercontent.com/u/58314282?v=4)](https://github.com/shreejalmaharjan-27 "shreejalmaharjan-27 (32 commits)")[![rain64x](https://avatars.githubusercontent.com/u/48401834?v=4)](https://github.com/rain64x "rain64x (2 commits)")

### Embed Badge

![Health badge](/badges/shreejalmaharjan-27-wooclient/health.svg)

```
[![Health](https://phpackages.com/badges/shreejalmaharjan-27-wooclient/health.svg)](https://phpackages.com/packages/shreejalmaharjan-27-wooclient)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M20](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k15](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
