grccontact/php-sdk

There is no license information available for the latest version (dev-master) of this package.

The open source PHP SDK that allows you to access the GRC Contact CRM Platform from your PHP app

dev-master 2020-08-01 08:03 UTC

This package is auto-updated.

Last update: 2024-10-04 21:51:33 UTC


README

This repository contains the open source PHP SDK that allows you to access the GRC Contact CRM Platform from your PHP app.

Installation

The GRC Contact CRM PHP SDK can be installed with Composer. Run this command:

composer require grccontact/php-sdk

Usage

Note: This version of the GRC Contact CRM SDK for PHP requires PHP 5.4 or greater.

Simple GET example of a user's profile.

require_once __DIR__ . '/vendor/autoload.php'; // change path as needed

$grc = new \Grccontact\Grccontact([
  'personnal-acces-token' => '{token}',
  'api-version' => 'v3'
]);


try {
  $response = $grc->get('{endpoint}');
} catch(\Exceptions $e) {
  echo 'GRC Contact CRM returned an error: ' . $e->getMessage();
  exit;
}

$api = $response->getData();
echo 'Value : ' . $api->getProperty();

Complete documentation, installation instructions, and examples are available here.

TODO