定制 ederribeiro/wooapubundle 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

ederribeiro/wooapubundle

最新稳定版本:1.0.2

Composer 安装命令:

composer require ederribeiro/wooapubundle

包简介

A WooCommerce REST API bundle

README 文档

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

统计信息

  • 总下载量: 16
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 4
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-10-02