ederribeiro/wooapubundle

A WooCommerce REST API bundle

Installs: 15

Dependents: 0

Suggesters: 0

Security: 0

Stars: 3

Watchers: 2

Forks: 0

Open Issues: 0

Type:symfony-bundle

1.0.2 2015-10-02 02:42 UTC

This package is not auto-updated.

Last update: 2024-04-27 16:20:06 UTC


README

A WooCommerce REST API bundle

Installation

Step 1: Download Bundle

$ composer require ederribeiro/wooapubundle "~1.*"

Step 2: Enable the Bundle

In the 'app/AppKernel.php' file, you will add this row:

<?php
// app/AppKernel.php
// ...
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
        	// ...
            new Woo\ApuBundle\WooApuBundle(),
        );
    }
}
?>

Step 2: Add to parameters.yml.dist

woo_apu.consumer_key: <your key>
woo_apu.consumer_secret: <your secret>
woo_apu.shop: <your shop address>

Step 3: Update with composer

$ composer update

When the key is requested, put the key from woocommerce panel.

Usage

Just get the client service from symfony container

<?php
class MyTest
{
	public function __construct(ContainerInterface $container)
    {
        $client = $container->get("wooapu.client");
        // and do your magic
    }
}
?>

License

MIT License Eder Ribeiro