PHPackages                             horntell/php-sdk - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. horntell/php-sdk

ActiveLibrary[API Development](/categories/api)

horntell/php-sdk
================

Horntell SDK for PHP

0.5.1(9y ago)35104[2 issues](https://github.com/horntell/php-sdk/issues)MITPHPPHP &gt;=5.4.0

Since Aug 5Pushed 9y ago2 watchersCompare

[ Source](https://github.com/horntell/php-sdk)[ Packagist](https://packagist.org/packages/horntell/php-sdk)[ RSS](/packages/horntell-php-sdk/feed)WikiDiscussions master Synced 6d ago

READMEChangelogDependencies (1)Versions (11)Used By (0)

Horntell SDK for PHP
====================

[](#horntell-sdk-for-php)

This SDK allows you to easily integrate Horntell in your PHP applications.

Requirements
------------

[](#requirements)

**PHP 5.4 and later.**

*However, there's nothing (yet!) that lower version cannot do, but we don't want to support &lt;=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.*

**Guzzle**

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 &gt;= 7.16.2 compiled with OpenSSL and zlib.

Installation
------------

[](#installation)

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

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

Then, pull the package using the following command:

```
composer install

```

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

```
require 'vendor/autoload.php';

```

Installation (without Composer)
-------------------------------

[](#installation-without-composer)

The SDK can be installed without Composer too (v0.5.0 onwards). Head over to the [Releases Page](https://github.com/horntell/php-sdk/releases) and download the ZIP package of the required version. Unzip the downloaded package and include it in your project structure.

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

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

```

Getting Started
---------------

[](#getting-started)

You need to `init`ialize the SDK with the app's key and secret, which you can find in your account at . Sample usage looks like this.

```
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
-------------

[](#documentation)

Please see [http://docs.horntell.com/api](http://docs.horntell.com/api/?php) for up-to-date documentation.

Laravel
-------

[](#laravel)

The composer package to work easily with Laravel will be available soon.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance7

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 82.4% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~89 days

Recently: every ~45 days

Total

10

Last Release

3497d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4389133?v=4)[Owlgrin](/maintainers/owlgrin)[@owlgrin](https://github.com/owlgrin)

![](https://avatars.githubusercontent.com/u/2756694?v=4)[Mohit Mamoria](/maintainers/mohitmamoria)[@mohitmamoria](https://github.com/mohitmamoria)

---

Top Contributors

[![mohitmamoria](https://avatars.githubusercontent.com/u/2756694?v=4)](https://github.com/mohitmamoria "mohitmamoria (56 commits)")[![sahilsarpal15](https://avatars.githubusercontent.com/u/13375245?v=4)](https://github.com/sahilsarpal15 "sahilsarpal15 (8 commits)")[![Mayank009](https://avatars.githubusercontent.com/u/5304281?v=4)](https://github.com/Mayank009 "Mayank009 (4 commits)")

### Embed Badge

![Health badge](/badges/horntell-php-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/horntell-php-sdk/health.svg)](https://phpackages.com/packages/horntell-php-sdk)
```

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
