PHPackages                             codek365/laravel-woocommerce - 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. codek365/laravel-woocommerce

ActiveLibrary

codek365/laravel-woocommerce
============================

WooCommerce Rest API for Laravel

v3.0.1(5y ago)112MITPHP

Since Apr 9Pushed 5y agoCompare

[ Source](https://github.com/Codek365/laravel-woocommerce)[ Packagist](https://packagist.org/packages/codek365/laravel-woocommerce)[ RSS](/packages/codek365-laravel-woocommerce/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (3)Versions (45)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/laravel-woocommerce)[![StyleCI](https://camo.githubusercontent.com/84f091c691fb632370384107d9274207535a7892ab89ec19da5754f3086ebbb0/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3138303433363831312f736869656c643f6272616e63683d6d6173746572)](https://github.styleci.io/repos/180436811)[![Quality Score](https://camo.githubusercontent.com/166d577149c56cbd404ab02c114e4233828c7e4d1c03ae59bbdb23361388965b/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f436f6465787368617065722f6c61726176656c2d776f6f636f6d6d657263652e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/Codexshaper/laravel-woocommerce)[![Downloads](https://camo.githubusercontent.com/d437632b742a2d3d4ccddf67ce9190297a5b08be4aac83fa5e268e6db621ac51/68747470733a2f2f706f7365722e707567782e6f72672f436f6465787368617065722f6c61726176656c2d776f6f636f6d6d657263652f642f746f74616c2e737667)](https://packagist.org/packages/Codexshaper/laravel-woocommerce)[![Latest Version on Packagist](https://camo.githubusercontent.com/f520f4f0b232c4222ada48b734f2baf9ab14725233ecdf6910ad27253af1cd31/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f436f6465787368617065722f6c61726176656c2d776f6f636f6d6d657263652e7376673f7374796c653d666c61742d737175617265)](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

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity72

Established project with proven stability

 Bus Factor1

Top contributor holds 65.5% 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 ~21 days

Total

28

Last Release

2006d ago

Major Versions

v1.1.8 → v2.12020-03-27

v2.9 → v3.02020-10-28

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/14676526?v=4)[Tasu Iruka](/maintainers/Codek365)[@Codek365](https://github.com/Codek365)

---

Top Contributors

[![Codexshaper](https://avatars.githubusercontent.com/u/49456098?v=4)](https://github.com/Codexshaper "Codexshaper (93 commits)")[![maab16](https://avatars.githubusercontent.com/u/20833514?v=4)](https://github.com/maab16 "maab16 (45 commits)")[![vivekaris](https://avatars.githubusercontent.com/u/3786005?v=4)](https://github.com/vivekaris "vivekaris (3 commits)")[![Codek365](https://avatars.githubusercontent.com/u/14676526?v=4)](https://github.com/Codek365 "Codek365 (1 commits)")

---

Tags

laravelwoocommercelaravel-woocommercewoocommerce-apiwoocommerce-rest-apilaravel-woocommerce-apilaravel-woocommerce-rest-api

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/codek365-laravel-woocommerce/health.svg)

```
[![Health](https://phpackages.com/badges/codek365-laravel-woocommerce/health.svg)](https://phpackages.com/packages/codek365-laravel-woocommerce)
```

###  Alternatives

[codexshaper/laravel-woocommerce

WooCommerce Rest API for Laravel

207161.5k](/packages/codexshaper-laravel-woocommerce)[pixelpeter/laravel5-woocommerce-api-client

Laravel 5 wrapper for the Woocommerce REST API

125103.4k](/packages/pixelpeter-laravel5-woocommerce-api-client)[rtconner/laravel-likeable

Trait for Laravel Eloquent models to allow easy implementation of a 'like' or 'favorite' or 'remember' feature.

394388.0k5](/packages/rtconner-laravel-likeable)[slowlyo/owl-admin

基于 laravel、amis 开发的后台框架~

61214.2k26](/packages/slowlyo-owl-admin)

PHPackages © 2026

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