2017 © Pedro Peláez
 

library xa-platform-client

Client written in PHP for XAPlatform

image

rev/xa-platform-client

Client written in PHP for XAPlatform

  • Thursday, May 4, 2017
  • by Reverze
  • Repository
  • 1 Watchers
  • 1 Stars
  • 38 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

XAPlatformClient

Client for XAPlatform written in PHP, (*1)

What is it?

The XAPlatformClient is a some kind of bridge between XAPlatform and your app. It helps you to integrate your app with XAPlatform. This library does not require any frameworks (its not a framework-bundle)., (*2)

Installation

You can install this library using composer:, (*3)

composer require rev/xa-platform-client

This will install package at newest version., (*4)

Usage

Before you will use it, you must have registered application at XAPlatform. Application key is a special key which identifies your app and app's other., (*5)

At first we must determine application key and XAPlatform provider., (*6)

$platformCredentials = new PlatformClient\Auth\PlatformCredentials();
$platformCredentials->setAppKey($yourApplicationId);
$platformCredentials->setProvider($yourProviderHostname);
$platformCredentials->setPort($yourProviderServicePort);

The next is to set up cache driver. Caching is use to improve performance. The recommended cache driver is apcu. Then you should determine cache lifetime multiplier. What is lifetime multiplier? Each action has own cache lifetime. If you set lifetime multiplier as 2, each action will be stored 2 times longer., (*7)

$cacheDriverParameters = new PlatformClient\Cache\CacheDriverParameters();
$cacheDriverParameters->setDriver('apcu');
$cacheDriverParameters->setMultiplier(2);

At the end we initialize client core using above parameters:, (*8)

$core = new PlatformClient\Core();
$core->setProvider($platformCredentials);
$core->setCacheParameters($cacheDriverParameters);

$core->connect();

That's all. Your app is ready to integrate with XAPlatform., (*9)

The Versions

04/05 2017

dev-dev

dev-dev

Client written in PHP for XAPlatform

  Sources   Download

MIT

The Requires

 

by Avatar Reverze

23/03 2017

dev-master

9999999-dev

Client written in PHP for XAPlatform

  Sources   Download

MIT

The Requires

 

by Avatar Reverze

12/03 2017

v1.2.0

1.2.0.0

Client written in PHP for XAPlatform

  Sources   Download

MIT

The Requires

 

by Avatar Reverze

10/03 2017

0.7.x-dev

0.7.9999999.9999999-dev

Client written in PHP for XAPlatform

  Sources   Download

MIT

The Requires

 

by Avatar Reverze