PHPackages                             upgradelabs/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. [API Development](/categories/api)
4. /
5. upgradelabs/laravel-woocommerce

ActiveLibrary[API Development](/categories/api)

upgradelabs/laravel-woocommerce
===============================

WooCommerce Rest API for Laravel

1.0.5(2y ago)08MITPHP

Since Oct 20Pushed 2y ago1 watchersCompare

[ Source](https://github.com/upgradelabs/woocomerce-laravel)[ Packagist](https://packagist.org/packages/upgradelabs/laravel-woocommerce)[ RSS](/packages/upgradelabs-laravel-woocommerce/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (6)Dependencies (3)Versions (7)Used By (0)

[![License](https://camo.githubusercontent.com/1e1cb7bae9fc55a01fc5443d26e358dc21c129253bcfa9841db85c4f25aa2ecf/687474703a2f2f696d672e736869656c64732e696f2f3a6c6963656e73652d6d69742d626c75652e7376673f7374796c653d666c61742d737175617265)](http://badges.mit-license.org)[![Build Status](https://camo.githubusercontent.com/32fa579efdd4a195f080550ef9e6c4720e2bf9b5074ca75bb6f5ba6094db67ab/68747470733a2f2f7472617669732d63692e6f72672f557067726164656c6162732f6c61726176656c2d776f6f636f6d6d657263652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Upgradelabs/laravel-woocommerce)[![StyleCI](https://camo.githubusercontent.com/84f091c691fb632370384107d9274207535a7892ab89ec19da5754f3086ebbb0/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3138303433363831312f736869656c643f6272616e63683d6d6173746572)](https://github.styleci.io/repos/180436811)[![Quality Score](https://camo.githubusercontent.com/15bb0ac36f0d896a0f9ec0e119e051bfed45e13b5ecf2d64ef98f3b4f4f935b6/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f557067726164656c6162732f6c61726176656c2d776f6f636f6d6d657263652e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/Upgradelabs/laravel-woocommerce)[![Downloads](https://camo.githubusercontent.com/953ce30973924932ca4e84528c520d98fdb4e24f492dd58d5267d685c92e5f85/68747470733a2f2f706f7365722e707567782e6f72672f557067726164656c6162732f6c61726176656c2d776f6f636f6d6d657263652f642f746f74616c2e737667)](https://packagist.org/packages/Upgradelabs/laravel-woocommerce)[![Latest Version on Packagist](https://camo.githubusercontent.com/3dd7e11919db0cfa2b77f10d94a8fba0bd4d56acbb3e3438633a8b68bf1f3cb0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f557067726164656c6162732f6c61726176656c2d776f6f636f6d6d657263652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/Upgradelabs/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://upgradelabs.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/Upgradelabs/laravel-woocommerce/blob/master/LICENSE).

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

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

```
//This fork allows to use several WooCommerce Sites.
//You can have a Dashboard to manage several WooCommerce

//Before use you need to specify which WooCommerce site you´re using.
//Just bind to the app container

app()->bind(WooCommerceApi::class, fn() => new WooCommerceApi('site_name_in_the_config_file'));

// 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 Upgradelabs\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 Upgradelabs\WooCommerce\Facades\WooCommerce;
use Customer // Same as use Upgradelabs\WooCommerce\Models\Customer;
use Order // Same as use Upgradelabs\WooCommerce\Models\Order;
use Product // Same as Upgradelabs\WooCommerce\Models\Product;

```

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

6

Last Release

941d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b20557c62a96fca9a58d80b11dffbaf4e3debd77d9358c66ed06d413c1e884a7?d=identicon)[rpsimao](/maintainers/rpsimao)

---

Top Contributors

[![rpsimao](https://avatars.githubusercontent.com/u/205846?v=4)](https://github.com/rpsimao "rpsimao (8 commits)")

---

Tags

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

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[codexshaper/laravel-woocommerce

WooCommerce Rest API for Laravel

207161.5k](/packages/codexshaper-laravel-woocommerce)[rakibdevs/openweather-laravel-api

Laravel package to connect https://openweathermap.org/ to get customized weather data for any location on the globe immediately

7648.2k](/packages/rakibdevs-openweather-laravel-api)

PHPackages © 2026

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