2017 © Pedro Peláez
 

library php-sdk

Horntell SDK for PHP

image

horntell/php-sdk

Horntell SDK for PHP

  • Wednesday, October 19, 2016
  • by mohitmamoria
  • Repository
  • 2 Watchers
  • 2 Stars
  • 494 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 2 Open issues
  • 11 Versions
  • 0 % Grown

The README.md

Horntell SDK for PHP

This SDK allows you to easily integrate Horntell in your PHP applications., (*1)

Requirements

PHP 5.4 and later., (*2)

However, there's nothing (yet!) that lower version cannot do, but we don't want to support <=5.3 because it will be a thing of past very soon (or is it already?). Going forward, we can make use of some of 5.4 features like Traits, which has ability to provide more beautiful API than what 5.3 can., (*3)

Guzzle, (*4)

This package depends on Guzzle HTTP client, which has the following additional requirements. - To use the PHP stream adapter, allow_url_fopen must be enabled in your system's php.ini. - To use the cURL adapter, you must have a recent version of cURL >= 7.16.2 compiled with OpenSSL and zlib., (*5)

Installation

You can install the SDK using Composer. Add this to your composer.json file. (Or use dev-master for nightly builds)., (*6)

{
    "require": {
        "horntell/php-sdk": "0.5.*"
    }
}

Then, pull the package using the following command:, (*7)

composer install

You will need to include the Composer's autoloader. Simply put this statement in the file you want to use the package., (*8)

require 'vendor/autoload.php';

Installation (without Composer)

The SDK can be installed without Composer too (v0.5.0 onwards). Head over to the Releases Page and download the ZIP package of the required version. Unzip the downloaded package and include it in your project structure., (*9)

In the PHP file, where you want to use Horntell SDK, require the package using the following statement on top of the file:, (*10)

require 'path/to/php-sdk/autoloader.php';

Getting Started

You need to initialize the SDK with the app's key and secret, which you can find in your account at http://app.horntell.com. Sample usage looks like this., (*11)

Horntell\App::init('YOUR_APP_KEY', 'YOUR_APP_SECRET');
(new Horntell\Profile)->create(array(
    'uid' => '1337',
    'first_name' => 'John',
    'last_name' => 'Doe',
    'signedup_at' => 1383350400
));

Documentation

Please see http://docs.horntell.com/api for up-to-date documentation., (*12)

Laravel

The composer package to work easily with Laravel will be available soon., (*13)

The Versions

19/10 2016

dev-master

9999999-dev

Horntell SDK for PHP

  Sources   Download

MIT

The Requires

 

by Mohit Mamoria

19/10 2016

0.5.1

0.5.1.0

Horntell SDK for PHP

  Sources   Download

MIT

The Requires

 

by Mohit Mamoria

25/04 2016

0.4.0

0.4.0.0

Horntell SDK for PHP

  Sources   Download

MIT

The Requires

 

by Mohit Mamoria

20/04 2016

0.3.2

0.3.2.0

Horntell SDK for PHP

  Sources   Download

MIT

The Requires

 

by Mohit Mamoria

20/04 2016

0.3.1

0.3.1.0

Horntell SDK for PHP

  Sources   Download

MIT

The Requires

 

by Mohit Mamoria

19/04 2016

0.3.0

0.3.0.0

Horntell SDK for PHP

  Sources   Download

MIT

The Requires

 

by Mohit Mamoria

30/10 2015

0.2.1

0.2.1.0

Horntell SDK for PHP

  Sources   Download

MIT

The Requires

 

by Mohit Mamoria

04/04 2015

0.2.0

0.2.0.0

Horntell SDK for PHP

  Sources   Download

MIT

The Requires

 

by Mohit Mamoria

03/04 2015

v0.1.2

0.1.2.0

Horntell SDK for PHP

  Sources   Download

MIT

The Requires

 

by Mohit Mamoria

06/08 2014

v0.1.1

0.1.1.0

Horntell SDK for PHP

  Sources   Download

MIT

The Requires

 

by Mohit Mamoria

05/08 2014

v0.1.0

0.1.0.0

Horntell SDK for PHP

  Sources   Download

MIT

The Requires

 

by Mohit Mamoria