Download the PHP package oneall/php-sdk without Composer

On this page you can find all versions of the php package oneall/php-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package 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 repository.

Getting Started

Prerequisites

Installing

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

Testing

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

Using our PHP-SDK

The PHP-SDK is composed of

Get you configuration

In order to use the PHP-SDK, you'll need your application credentials you can find on our website.

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

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->build('curl', $subDomain, $sitePublicKey, $sitePrivateKey);

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

Use our API objects

Finally, instantiate the ApiObject you need (checkout our api documentation 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

More inforation on our documentation.

Here is a step-by-step documetation for implementing our Social Login, Social Link and Single Sign-On services on a website that already has users with accounts.

License

GNU General Public License, available at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html


All versions of php-sdk with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package oneall/php-sdk contains the following files

Loading the files please wait ....