定制 pixers/salesmanago-api-bundle 二次开发

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

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

pixers/salesmanago-api-bundle

Composer 安装命令:

composer require pixers/salesmanago-api-bundle

包简介

sales manago api client

README 文档

README

Integrate Sales Manago Api with Symfony.

Get it started.

Library opens easy way to integration Sales Manago with Symfony.

Installation

The preferred way to install the library is using composer.

Run:

php composer.phar require "pixers/salesmanago-api-bundle"

Symfony Integration

Symfony2 - how to add library to framework:

<?php
// app/AppKernel.php

// ...
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            // ...

            new Pixers\SalesManagoApiBundle\PixersSalesManagoApiBundle()
        );

        // ...
    }

    // ...
}
// app/Resources/config.yml:

pixers_sales_manago_api:
    client_id: salesmanago_api_client_id
    endpoint: salesmanago_api_endpoint
    api_secret: salesmanago_api_secret
    api_key: salesmanago_api_key
    owner: salesmanago_api_owner
    guzzle_client: salesmanago_api_guzzle_client // Dependency Injection Service Name (optional)

Usage

Bundle adds "salesmanago" service that is an instance of SalesManago[https://github.com/pixers/salesmanago-api/blob/master/src/Pixers/SalesManagoAPI/SalesManago.php] class.

Example usage in controller

public function fooAction()
{
    $this->get('salesmanago')->getContactService();
}

Resources

Author

License

Copyright 2016 PIXERS Ltd - www.pixersize.com

Licensed under the BSD 3-Clause

统计信息

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

GitHub 信息

  • Stars: 1
  • Watchers: 7
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2016-08-03

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固