New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

codexshaper/laravel-woocommerce

WooCommerce Rest API for Laravel
200,120 205

Larablocks Analysis

codexshaper/laravel-woocommerce works with any PHP project: the latest release (v3.0.4, Mar 5, 2024) doesn't depend on Laravel.

Recommendation checks

Not advised

Not advised: no release or commit in over 2 years.

  • No release or commit in over 2 years
  • No release in the last 12 months (last: Mar 5, 2024)
  • 8,203 downloads a month (needs 10,000)
  • 205 GitHub stars (at least 100)

State

Likely abandoned
  • No release or commit in over 2 years.
  • Last stable release: Mar 5, 2024.
  • No releases in the last 12 months.
  • First released: Apr 9, 2019.
  • Monthly downloads: 8,203, up 80% from six months ago.
  • 53 open issues on GitHub.

Data from Packagist and GitHub, checked by Larablocks on Dec 1, 2026.

Install
composer require codexshaper/laravel-woocommerce
Latest Version:v3.0.4
License:MIT
Last Updated:Mar 5, 2024
Links: GitHub  ·  Packagist
Maintainer: Codexshaper

License Build Status StyleCI Quality Score Downloads Latest Version on Packagist

Description

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

Documentation

Authors

License

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: https://woocommerce.github.io/woocommerce-rest-api-docs/#products

#Customer Options: https://woocommerce.github.io/woocommerce-rest-api-docs/#customers

#Order Options: https://woocommerce.github.io/woocommerce-rest-api-docs/#orders

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

Related Packages

kimhf/sage-woocommerce-support

Add Woocommerce blade template and controllers support for Sage 9 based themes.

1,160 11
kitloom/kitloom

A Laravel CMS for sites with WordPress data: move a WordPress site to Laravel wi...

0 0
jakehenshall/pest-plugin-wordpress

The most comprehensive WordPress testing framework built on Pest PHP v4. Include...

6 2
doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

670,032,257 9,703
laravel/framework

The Laravel Framework.

640,572,096 35,338

Version History

Version Released License
v3.0.4 MIT
v3.0.3 MIT
v3.0.2 MIT
v3.0.1 MIT
v3.0 MIT