承接 zephia/laravel-pilot 相关项目开发

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

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

zephia/laravel-pilot

Composer 安装命令:

composer require zephia/laravel-pilot

包简介

This package is a wrapper of Pilot CRM API Client PHP Class for Laravel Framework.

README 文档

README

This package is a wrapper of Pilot CRM API Client PHP Class for Laravel Framework.

Installation

Run the following command and provide the latest stable version:

composer require zephia/laravel-pilot

Then register this service provider with Laravel in config/app.php:

'providers' => [
    ...
    Zephia\LaravelPilot\LaravelPilotServiceProvider::class,
    ...
]

Publish config file:

php artisan vendor:publish --provider="Zephia\LaravelPilot\LaravelPilotServiceProvider" --tag="config"

Add PILOT_APP_KEY and PILOT_API_DEBUG constants to your .env file:

PILOT_APP_KEY=YOUR-PILOT-APP-KEY
PILOT_API_DEBUG=false

Usage

Create and store lead

See fields documentation at official Pilot API reference

<?php

/**
 * Create Lead
 */

// From array (field names without "pilot_" prefix)
$lead_data = new \Zephia\PilotApiClient\Model\LeadData([
    'business_type_id' => 1,
    'contact_type_id' => 1,
    'suborigin_id' => 'FFFF0000',
    'firstname' => 'John',
    'lastname' = 'Doe',
    'phone' => '+543512345678',
    'email' => 'john.doe@domain.com'
]);

// Using setters (camelcase)
$lead_data = new \Zephia\PilotApiClient\Model\LeadData();
$lead_data->setBusinessTypeId(1);
$lead_data->setContactTypeId(1);
$lead_data->setSuboriginId('FFFF0000');
$lead_data->setFirstName('John');
$lead_data->setLastName('Doe');
$lead_data->setPhone('+543512345678');
$lead_data->setEmail('john.doe@domain.com');

/**
 * Store Lead
 */
$pilot = app('pilot')->storeLead($lead_data);

// Returns API response object.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-08-16

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固