massreuy / intercom-laravel

Laravel 5.x Wrapper for Intercom API

Home Page:https://github.com/intercom/intercom-php

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

intercom-laravel

Laravel 5.x Wrapper for Intercom API forked from Alex Slaughter repo https://github.com/slaughter550/intercom-laravel

Installation

Using Composer:

{
    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/massreuy/intercom-laravel"
        }
    ],
    "require": {
        "massreuy/intercom-laravel": "~1.1"
    }
}

Configuration

config/app.php

'providers' => [
    'Shadow\IntercomLaravel\ServiceProvider',
],
'aliases' => [
    'Intercom' => 'Shadow\IntercomLaravel\Facade',
],

config/services.php

'intercom' => [
    'app_id' => 'appIdGoesHere',
    'api_key' => 'apiKeyGoesHere',
],

Usage

// Create/update a user
Intercom::users()->create([
    'email' => 'test@intercom.io'
]);

About

Laravel 5.x Wrapper for Intercom API

https://github.com/intercom/intercom-php

License:MIT License


Languages

Language:PHP 100.0%