PHPackages                             afurculita/woocommerce-api-client - 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. afurculita/woocommerce-api-client

AbandonedArchivedProject[API Development](/categories/api)

afurculita/woocommerce-api-client
=================================

Woocommerce Rest API client

v0.2.0(11y ago)51.1k3MITPHP

Since Jun 6Pushed 11y ago1 watchersCompare

[ Source](https://github.com/afurculita/woocommerce-api-client)[ Packagist](https://packagist.org/packages/afurculita/woocommerce-api-client)[ Docs](https://github.com/kloon/WooCommerce-REST-API-Client-Library)[ RSS](/packages/afurculita-woocommerce-api-client/feed)WikiDiscussions master Synced today

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

WooCommerce REST API Client Library
===================================

[](#woocommerce-rest-api-client-library)

A PHP wrapper for the WooCommerce REST API. Easily interact with the WooCommerce REST API using this wrapper class. Feedback and bug reports are appreciated.

Requirements
------------

[](#requirements)

PHP 5.2.x cURL WooCommerce 2.1 at least on the store

Getting started
---------------

[](#getting-started)

Generate API credentials ( Consumer Key &amp; Consumer Secret ) on your profile page for the store you want to interact with.

> A good place to start is to look at the example script included.

### Initialize the class

[](#initialize-the-class)

```

```

### Get the data using methods

[](#get-the-data-using-methods)

```

```

**All methods return the data `json_decode()` by default so you can access the data.**

Available methods
-----------------

[](#available-methods)

### Index method

[](#index-method)

- `get_index()`

### Order methods

[](#order-methods)

- `get_orders()`
- `get_orders( $params = array( 'status' => 'completed' ) )`
- `get_order( $order_id )`
- `get_orders_count()`
- `get_order_notes( $order_id )`
- `update_order( $order_id, $data = array( 'status' => 'processing' ) )`

### Coupon methods

[](#coupon-methods)

- `get_coupons()`
- `get_coupon( $coupon_id )`
- `get_coupon_by_code( $coupon_code )`
- `get_coupons_count()`

### Customer methods

[](#customer-methods)

- `get_customers()`
- `get_customers( $params = array( 'filter[created_at_min]' => '2013-12-01' ) )`
- `get_customer( $customer_id )`
- `get_customers_count()`
- `get_customer_orders( $customer_id )`

### Product methods

[](#product-methods)

- `get_products()`
- `get_products( $params = array( 'filter[created_at_min]' => '2013-12-01' ) )`
- `get_product( $product_id )`
- `get_products_count()`
- `get_product_reviews( $product_id )`

### Report methods

[](#report-methods)

- `get_reports()`
- `get_sales_report( $params = array( 'filter[start_date]' => '2013-12-01', 'filter[end_date]' => '2013-12-09' ) )`
- `get_top_sellers_report( $params = array( 'filter[limit]' = '10' ) )`

### Custom endpoints

[](#custom-endpoints)

If you extended the WooCommerce API with your own endpoints you can use the following function to get access to that data

- `make_custom_endpoint_call( $endpoint, $params = array(), $method = 'GET' )`

Credit
------

[](#credit)

Copyright (c) 2013-2014 - [Gerhard Potgieter](http://gerhardpotgieter.com/)Released under the [GPL3 license](http://www.gnu.org/licenses/gpl-3.0.html)

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

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

2

Last Release

4356d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3129631?v=4)[Alexandru Furculita](/maintainers/afurculita)[@afurculita](https://github.com/afurculita)

---

Top Contributors

[![kloon](https://avatars.githubusercontent.com/u/271630?v=4)](https://github.com/kloon "kloon (9 commits)")[![maxrice](https://avatars.githubusercontent.com/u/1579862?v=4)](https://github.com/maxrice "maxrice (2 commits)")

### Embed Badge

![Health badge](/badges/afurculita-woocommerce-api-client/health.svg)

```
[![Health](https://phpackages.com/badges/afurculita-woocommerce-api-client/health.svg)](https://phpackages.com/packages/afurculita-woocommerce-api-client)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M478](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M271](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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