PHPackages                             oneall/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. oneall/php-sdk

ActiveLibrary[API Development](/categories/api)

oneall/php-sdk
==============

2.1.0(8y ago)1625.3k↓74.3%22[2 PRs](https://github.com/oneall/php-sdk/pulls)PHPPHP &gt;=5.4

Since Oct 18Pushed 6y ago7 watchersCompare

[ Source](https://github.com/oneall/php-sdk)[ Packagist](https://packagist.org/packages/oneall/php-sdk)[ RSS](/packages/oneall-php-sdk/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (2)Versions (8)Used By (0)

OneAll PHP SDK
==============

[](#oneall-php-sdk)

The SDK allows you to communicate with the OneAll API using PHP. It implements all API features through a curl or socket (FSockOpen) client. Implementation examples are available in the [oneall/php-api-examples](https://github.com/oneall/php-api-examples) repository.

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

[](#getting-started)

### Prerequisites

[](#prerequisites)

- A webserver with PHP &gt;=5.4
- A free OneAll [account](app.oneall.com) and a site. You will need the site's **subdomain**, **public key** and **private key**.

### Installing

[](#installing)

> composer require "oneall/php-sdk:~2.0"

### Testing

[](#testing)

> ./vendor/bin/phpunit tests/unit --coverage-html tests/results/unit

Using our PHP-SDK
-----------------

[](#using-our-php-sdk)

The PHP-SDK is composed of

- PHP clients (curl &amp; FSockOpen) &amp; a builder
- Apis object to use our differents endpoints.
- An ApiContainer containing all Apis object.

### Get you configuration

[](#get-you-configuration)

In order to use the PHP-SDK, you'll need your application credentials you can find on [our website](app.oneall.com).

```
$subDomain = 'your-subdomain';
$sitePublicKey = 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx';
$sitePrivateKey = 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx';

```

### Create the client

[](#create-the-client)

First, you'll have to create a php client which contains the previous credentials. You can choose between \*curl or *fsockopen*, depending on your system. damie // create the client through our builder $builder = new Oneall\\Client\\Builder(); $client = $builder-&gt;build('curl', $subDomain, $sitePublicKey, $sitePrivateKey);

```
// Or build it directly
$curlClient = new \Oneall\Client\Adapter\Curl($subDomain, $sitePublicKey, $sitePrivateKey);

```

### Use our API objects

[](#use-our-api-objects)

Finally, instantiate the ApiObject you need (checkout our [api documentation](http://docs.oneall.com/api/resources/)for more details). Each ApiObject needs the client in order to interact (and automatically log in) with ours services.

```
$connectionApi = new \Oneall\Api\Apis\Connection($client);
$connections = $api->getConnectionApi()->getAll();

```

You may use our ApiContainer to ease their instantiation.

```
$api = new \Oneall\OneallApi($client);
$connections = $api->getConnectionApi()->getAll();

```

For example, if you want to publish a message on Twitter.

```
$api = new \Oneall\OneallApi($client);
$twitter_api = $api->getProviderApi()->getProviderApi('twitter');
$twitter_api->publish($identity_token, $message);

```

Documentation
-------------

[](#documentation)

More inforation on our [documentation](http://docs.oneall.com/api/resources/).

Here is a [step-by-step documetation](http://docs.oneall.com/services/implementation-guide/) for implementing our Social Login, Social Link and Single Sign-On services on a website that already has users with accounts.

License
-------

[](#license)

**GNU General Public License**, available at

###  Health Score

39

—

LowBetter than 84% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity39

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 79.5% 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 ~30 days

Recently: every ~42 days

Total

7

Last Release

2998d ago

Major Versions

1.1.3 → 2.0.02018-03-20

### Community

Maintainers

![](https://www.gravatar.com/avatar/a9ebdd553e1411c3a084392df3138e3cf578cbb6b31ab09482055f7bc9bf4582?d=identicon)[oneall](/maintainers/oneall)

---

Top Contributors

[![SchlesserClaude](https://avatars.githubusercontent.com/u/1052414?v=4)](https://github.com/SchlesserClaude "SchlesserClaude (66 commits)")[![zaradamien](https://avatars.githubusercontent.com/u/4150915?v=4)](https://github.com/zaradamien "zaradamien (12 commits)")[![alinmiron](https://avatars.githubusercontent.com/u/9200637?v=4)](https://github.com/alinmiron "alinmiron (2 commits)")[![bhenner](https://avatars.githubusercontent.com/u/18596034?v=4)](https://github.com/bhenner "bhenner (2 commits)")[![frdpnl](https://avatars.githubusercontent.com/u/122168718?v=4)](https://github.com/frdpnl "frdpnl (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M20](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k14](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

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