定制 fatpanda-gmbh/bexio-connector-bundle 二次开发

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

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

fatpanda-gmbh/bexio-connector-bundle

Composer 安装命令:

composer require fatpanda-gmbh/bexio-connector-bundle

包简介

This bundle wraps the fatpanda-gmbh/bexio-connector library for symfony apps

README 文档

README

A Symfony bundle that wraps the Bexio Connector library.

Setup

Add to composer.json

composer require fatpanda-gmbh/bexio-connector-bundle

Then enable it in your kernel:

// app/AppKernel.php
public function registerBundles()
{
    $bundles = array(
        //...
        new Fatpanda\BexioConnectorBundle\BexioConnectorBundle(),
        //...

Usage

The bundle registers the bexio_connector service. To use it, you need a valid Bexio API token that you can generate at https://office.bexio.com/index.php/admin/apiTokens#/

app.service.bexio:
  class: AppBundle\Service\BexioService
    arguments:
      $connector: '@bexio_connector'
      $token: %token%    
use Fatpanda\BexioConnector\BexioConnector;

class BexioService
{
    /**
     * @var BexioConnector
     */
    private $connector;

    public function __construct(BexioConnector $connector, string $token)
    {
        $this->connector = $connector;
        $this->connector->setToken($token);
    }

    public function getContactsList()
    {
        $this->connector->getContactsList();
    }
}

License

This bundle is under the MIT license. See the complete license in the bundle:

Resources/meta/LICENSE

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-06-02

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固