承接 proglab/selligent-client-bundle 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

proglab/selligent-client-bundle

Composer 安装命令:

composer require proglab/selligent-client-bundle

包简介

Selligent Client Bundle

README 文档

README

A Selligent basic client

Installation

You must add this to your .env file :

###> proglab/selligent-client-bundle ###
APISELLIGENTCLIENT_INDIVIDUAL_URL=xxx
APISELLIGENTCLIENT_BROADCAST_URL=xxx
APISELLIGENTCLIENT_LOGIN=xxx
APISELLIGENTCLIENT_PASSWORD=xxx
###< proglab/selligent-client-bundle ###

Open a command console, enter your project directory and execute:

composer require proglab/selligent-client-bundle

If you're not using symfony/flex, enable the bundle by adding it to the list of registered bundles in the config/bundles.php file of your project:

// config/bundles.php

return [
    // ...
    Proglab\SelligentClientBundle\SelligentClientBundle::class => ['all' => true],
];

Usage

Generals

Getting a SelligentClient

You have two choices:

  1. Create the client manually, and pass it a logger:
use Proglab\SelligentClientBundle\Service\SelligentClient;
use Psr\Log\NullLogger;

$logger = new NullLogger();
$client = new SelligentClient($logger);
  1. Get the client from Dependency Injection:
use Proglab\SelligentClientBundle\Service\SelligentClient;

class Service
{
    public function __construct(private SelligentClient $client)
    {
    }
}

Connection

You must connect to Selligent SOAP API.

You need the individual_url, broadcast_url, login and password.

$client->connect('individual_url', 'broadcast_url', 'login', 'password');

Get a record

Get a record with a filter :

$filters = ['ID' => 18];
$listId = 54;
$client->getOneByFilter($filters, $listId);

Create a row

Create a record in a list :

$data = [
    'MAIL' => 'xx@xxxxx.xxx',
    'NAME' => 'xxxxx xxxx',
    'LANGUAGE' => 'fr'
];
$listId = 54;
$client->createRow($data, $listId);

Update a row

Update a record in a list :

$data = ['FIRSTNAME' => 'Fabrice'];
$listId = 54;
$client->updateRow($data, 54, $listId);

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: proprietary
  • 更新时间: 2021-08-20

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固