PHPackages                             codexshaper/woocommerce-php-sdk - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. codexshaper/woocommerce-php-sdk

ActiveLibrary[HTTP &amp; Networking](/categories/http)

codexshaper/woocommerce-php-sdk
===============================

WooCommerce Rest API for PHP

v0.7.0(6y ago)180MITPHPCI failing

Since May 11Pushed 6y ago1 watchersCompare

[ Source](https://github.com/Codexshaper/woocommerce-php-sdk)[ Packagist](https://packagist.org/packages/codexshaper/woocommerce-php-sdk)[ RSS](/packages/codexshaper-woocommerce-php-sdk/feed)WikiDiscussions master Synced 6d ago

READMEChangelog (7)Dependencies (2)Versions (9)Used By (0)

[![License](https://camo.githubusercontent.com/1e1cb7bae9fc55a01fc5443d26e358dc21c129253bcfa9841db85c4f25aa2ecf/687474703a2f2f696d672e736869656c64732e696f2f3a6c6963656e73652d6d69742d626c75652e7376673f7374796c653d666c61742d737175617265)](http://badges.mit-license.org)[![Build Status](https://camo.githubusercontent.com/ede6ff4af772ceefc139e62f7cd54114cb8dd87a1a9d9711ce006a756983dd91/68747470733a2f2f7472617669732d63692e6f72672f436f6465787368617065722f6c61726176656c2d776f6f636f6d6d657263652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Codexshaper/woocommerce-php-sdk)[![StyleCI](https://camo.githubusercontent.com/28a30941237e60751528e55edffe6cf0055cbf0bc30fd8fcfdddc762a299dc9c/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3236323938313832312f736869656c643f6272616e63683d6d6173746572)](https://github.styleci.io/repos/262981821)[![Quality Score](https://camo.githubusercontent.com/94c14c59467c68e7c4b4d0da3df548c6c70d3aec609553fe96337e0905491ce8/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f436f6465787368617065722f776f6f636f6d6d657263652d7068702d73646b2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/Codexshaper/woocommerce-php-sdk)[![Downloads](https://camo.githubusercontent.com/4b169cc0b1de4aa2fb5a0b7a5aed9b1ba67a77b36f2e29676baa2d0c696183d3/68747470733a2f2f706f7365722e707567782e6f72672f436f6465787368617065722f776f6f636f6d6d657263652d7068702d73646b2f642f746f74616c2e737667)](https://packagist.org/packages/Codexshaper/woocommerce-php-sdk)[![Latest Version on Packagist](https://camo.githubusercontent.com/54f20d2a32f79b0ae0754edb4c689af4997fa4789e59aca867fc7215e026fa86/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f436f6465787368617065722f776f6f636f6d6d657263652d7068702d73646b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/Codexshaper/laravel-woocommerce)

Description
===========

[](#description)

WooCommerce Rest API for Laravel. You can Get, Create, Update and Delete your woocommerce product using this package easily.

[Documentation](https://codexshaper.github.io/docs/laravel-woocommerce/)

Authors
-------

[](#authors)

- **Md Abu Ahsan Basir** - [github](https://github.com/maab16)

License
-------

[](#license)

- **[MIT license](http://opensource.org/licenses/mit-license.php)**
- Copyright 2020 © [CodexShaper](https://github.com/Codexshaper/laravel-woocommerce/blob/master/LICENSE).

Eloquent Style for Product, Customer and Order
==============================================

[](#eloquent-style-for-product-customer-and-order)

```
// Where passing multiple parameters
$products = Product::where('title','hello')->get();
OR
// You can call field with where clause
$products = Product::whereTitle('hello')->get();
// Fields name are more than one words or seperate by underscore (_). For example field name is `min_price`
$products = Product::whereMinPrice(5)->get();

// Where passing an array
$orders = Order::where(['status' => 'processing']);
$orders = Order::where(['status' => 'processing', 'orderby' => 'id', 'order' => 'asc'])->get();

// Set Options
$orders = Order::options(['status' => 'processing', 'orderby' => 'id', 'order' => 'asc'])->get();

// You can set options by passing an array when call `all` method
$orders = Order::all(['status' => 'processing', 'orderby' => 'id', 'order' => 'asc']);

```

\#Product Options:

\#Customer Options:

\#Order Options:

You can also use `WooCommerce` Facade
=====================================

[](#you-can-also-use-woocommerce-facade)

```
use Codexshaper\WooCommerce\Facades\WooCommerce;

public function products()
{
  return WooCommerce::all('products');
}

public function product( Request $request )
{
  $product = WooCommerce::find('products/'.$request->id);
}

public function orders()
{
  return WooCommerce::all('orders');
}

public function order( Request $request )
{
  $order = WooCommerce::all('orders/'.$request->id);
}

public function customers()
{
  return WooCommerce::all('customers');
}

public function customer( Request $request )
{
  $customer = WooCommerce::all('customers/'.$request->id);
}

```

Use Facade Alias
================

[](#use-facade-alias)

```
use WooCommerce // Same as use Codexshaper\WooCommerce\Facades\WooCommerce;
use Customer // Same as use Codexshaper\WooCommerce\Models\Customer;
use Order // Same as use Codexshaper\WooCommerce\Models\Order;
use Product // Same as Codexshaper\WooCommerce\Models\Product;

```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 58.3% 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 ~0 days

Total

7

Last Release

2197d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/88afdef32d0b9f6870f60d470bd66609c03fa02643393a7ee4c4de50dc390e3d?d=identicon)[Codexshaper](/maintainers/Codexshaper)

---

Top Contributors

[![Codexshaper](https://avatars.githubusercontent.com/u/49456098?v=4)](https://github.com/Codexshaper "Codexshaper (7 commits)")[![maab16](https://avatars.githubusercontent.com/u/20833514?v=4)](https://github.com/maab16 "maab16 (5 commits)")

---

Tags

phprestsdkwoocommercephpsdkrestwoocommerce

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/codexshaper-woocommerce-php-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/codexshaper-woocommerce-php-sdk/health.svg)](https://phpackages.com/packages/codexshaper-woocommerce-php-sdk)
```

###  Alternatives

[bamboohr/api

Official PHP SDK for the BambooHR API. https://documentation.bamboohr.com

34101.5k1](/packages/bamboohr-api)[abantecart/ups-php

UPS PHP SDK based on OAuth

1815.3k](/packages/abantecart-ups-php)

PHPackages © 2026

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