2017 © Pedro Peláez
 

library suitecrm-client

SuiteCRM Soap and Rest Client

image

ste80pa/suitecrm-client

SuiteCRM Soap and Rest Client

  • Sunday, October 15, 2017
  • by ste80pa
  • Repository
  • 2 Watchers
  • 1 Stars
  • 60 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 7 % Grown

The README.md

Minimum PHP Version Build Status Coverage Status, (*1)

Synopsis

Simple library to communicate with SuiteCRM via Soap or Restful endpoints, (*2)

Code Example

Using Soap endopoint, (*3)

<?php

include('vendor/autoload.php');

use ste80pa\SuiteCRMClient\Types\Requests\GetEntryListRequest;
use ste80pa\SuiteCRMClient\Types\Requests\LoginRequest;
use ste80pa\SuiteCRMClient\SoapClient;
use ste80pa\SuiteCRMClient\Session;

$url = 'your sugar crm host';
$username = 'your username';
$password = 'your password';

$session = new Session($url, $username, $password);

$client = new SoapClient($session);

$client->login();

$request = new GetEntryListRequest();

$request->module_name   = 'Accounts';
$request->select_fields = array('id', 'name');
$request->max_results   = 100;
$request->favorites     = false;
$request->deleted       = 1;

$accounts = $client->getEntryList($request); 

print_r($accounts);

Using Rest endopoint, (*4)

<?php

include('vendor/autoload.php');

use ste80pa\SuiteCRMClient\Types\Requests\GetEntryListRequest;
use ste80pa\SuiteCRMClient\Types\Requests\LoginRequest;
use ste80pa\SuiteCRMClient\RestClient;
use ste80pa\SuiteCRMClient\Session;

$url = 'your sugar crm host';
$username = 'your username';
$password = 'your password';

$session = new Session($url, $username, $password);

$client = new RestClient($session);

$client->login();

$request = new GetEntryListRequest();

$request->module_name   = 'Accounts';
$request->select_fields = array('id', 'name');
$request->max_results   = 100;
$request->favorites     = false;
$request->deleted       = 1;

$accounts = $client->getEntryList($request); 

print_r($accounts);

Motivation

Installation

composer require ste80pa/suitecrm-client:dev-master

API Reference

Tests

To run all tests, (*5)

phpunit

Contributors

License

The Versions

15/10 2017

dev-master

9999999-dev https://github.com/ste80pa/suitecrm-client

SuiteCRM Soap and Rest Client

  Sources   Download

GPL-3.0

The Requires

  • ext-openssl *
  • ext-soap *
  • php >=5.3.0

 

The Development Requires

rest client soap suitecrm