2017 © Pedro Peláez
 

library laravel-pilot

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

image

zephia/laravel-pilot

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

  • Wednesday, August 17, 2016
  • by mauro-moreno
  • Repository
  • 2 Watchers
  • 0 Stars
  • 548 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 6 % Grown

The README.md

laravel-pilot

This package is a wrapper of Pilot CRM API Client PHP Class for Laravel Framework., (*1)

Installation

Run the following command and provide the latest stable version:, (*2)

composer require zephia/laravel-pilot

Then register this service provider with Laravel in config/app.php:, (*3)

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

Publish config file:, (*4)

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

Add PILOT_APP_KEY and PILOT_API_DEBUG constants to your .env file:, (*5)

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

Usage

Create and store lead

See fields documentation at official Pilot API reference, (*6)

<?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.

The Versions

17/08 2016

dev-master

9999999-dev

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

  Sources   Download

MIT

The Requires

 

The Development Requires

by Cristian Jimenez

laravel crm pilot

17/08 2016

v1.0.4

1.0.4.0

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

  Sources   Download

MIT

The Requires

 

The Development Requires

by Cristian Jimenez

laravel crm pilot

17/08 2016

v1.0.3

1.0.3.0

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

  Sources   Download

MIT

The Requires

 

The Development Requires

by Cristian Jimenez

laravel crm pilot

17/08 2016

v1.0.2

1.0.2.0

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

  Sources   Download

MIT

The Requires

 

The Development Requires

by Cristian Jimenez

laravel crm pilot

16/08 2016

v1.0.1

1.0.1.0

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

  Sources   Download

MIT

The Requires

 

The Development Requires

by Cristian Jimenez

laravel crm pilot

16/08 2016

v1.0.0

1.0.0.0

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

  Sources   Download

MIT

The Requires

 

The Development Requires

by Cristian Jimenez

laravel crm pilot