Download the PHP package pixelpeter/laravel5-woocommerce-api-client without Composer

On this page you can find all versions of the php package pixelpeter/laravel5-woocommerce-api-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel5-woocommerce-api-client

Laravel 5 WooCommerce API Client

Latest Version on Packagist Travis Build Scrutinizer Quality Scrutinizer Build SensioLabsInsight Total Downloads Coverage Status

A simple Laravel 5 wrapper for the official WooCommerce REST API PHP Library from Automattic.

Version overview

Laravel wc-api-php used Wordpress Woocommerce WC API version use branch
5.7+ 2.x 4.4+ 3.5+ v1, v2, v3 w.i.p.
5.5+ 1.3.x 4.4+ 3.0 - 3.4.x v1, v2, v3 ^3.0
5.4+ 1.3.x 4.4+ 2.6 - 2.6.14 v1, v2 ^2.0
5.3 1.3.x 4.1+ 2.1 - 2.5.5 legacy v1, legacy v2, legacy v3 ^1.0

Installation

Step 1: Install Through Composer

For API Version v2, WooCommerce 3.0+, Wordpress 4.4+, php 7.0+, Laravel 5.5+ use the v3.x branch

For API Version v1, WooCommerce 2.6+, Wordpress 4.4+, Laravel 5.4+ use the v2.x branch

For older versions of Woocommerce starting from 2.1+ use the v1.x branch

Step 2: Add the Service Provider (not needed with v3.x)

Add the service provider in app/config/app.php

Step 3: Add the Facade (not needed with v3.x)

Add the alias in app/config/app.php

Step 4: Publish configuration

Step 5: Customize configuration

You can directly edit the configuration in config/woocommerce.php or copy these values to your .env file.

Examples

Get the index of all available endpoints

View all orders

View all completed orders created after a specific date

For legacy API versions

(WC 2.4.x or later, WP 4.1 or later) use this syntax

For current API versions

(WC 2.6.x or later, WP 4.4 or later) use this syntax. after needs to be a ISO-8601 compliant date!≠

Update a product

Pagination

So you don't have to mess around with the request and response header and the calculations this wrapper will do all the heavy lifting for you. (WC 2.6.x or later, WP 4.4 or later)

HTTP Request & Response (Headers)

More Examples

Refer to WooCommerce REST API Documentation for more examples and documention.

Testing

Run the tests with:

License

The MIT License (MIT). Please see License File for more information.


All versions of laravel5-woocommerce-api-client with dependencies

PHP Build Version
Package Version
Requires php Version ^7.0
automattic/woocommerce Version 1.3.*
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package pixelpeter/laravel5-woocommerce-api-client contains the following files

Loading the files please wait ....