Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Erik van Velzen committed Jul 26, 2018
0 parents commit 36406cd
Show file tree
Hide file tree
Showing 12 changed files with 67,922 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
vendor
31 changes: 31 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# ZF3 WooCommerce client

WooCommerce client for Zend Framework 3.

This wraps [the php client](https://github.com/woocommerce/wc-api-php) so you can load the configuration.

## Installation

```
composer require polderknowledge/woocommerce-module
```

## Usage

Step 1. Add to application.config.php:

```
return [
'modules' => [
'PolderKnowledge\\WooCommerce',
],
]
```

Step 2. Copy config/woocommerce.global.php.dist to your projects config/autoload directory and adjust where necessary

Step 3. Use in application:

```
$container->get(\Automattic\WooCommerce\Client::class);
```
16 changes: 16 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"name": "polderknowledge/woocommerce-module",
"type": "library",
"description": "WooCommerce client for Zend Framework 3",
"homepage": "https://polderknowledge.com",
"license": "MIT",
"autoload": {
"psr-4": {
"PolderKnowledge\\WooCommerce\\": "src/"
}
},
"require": {
"automattic/woocommerce": "^2.0",
"zendframework/zend-mvc": "^3.1"
}
}
Loading

0 comments on commit 36406cd

Please sign in to comment.