2017 © Pedro Peláez
 

library draugiem-php-sdk

Draugiem.lv API PHP library

image

draugiem/draugiem-php-sdk

Draugiem.lv API PHP library

  • Thursday, January 25, 2018
  • by briedis
  • Repository
  • 11 Watchers
  • 11 Stars
  • 8,763 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 6 Versions
  • 4 % Grown

The README.md

Draugiem.lv API library for PHP

Latest Stable Version Latest Unstable Version, (*1)

To make application development faster and easier, we've created a PHP library that performs API calls and automatically converts the requested data to the PHP data structures. PHP library can be used both for integrated applications and draugiem.lv Passport applications., (*2)

The library requires PHP5 environment and uses PHP session mechanism for storing user data during sessions. To be able to perform API calls, PHP configuration you have to enable access to HTTP URLs for file_get_contents function (enable allow_url_fopen setting in PHP configuration)., (*3)

In order to use PHP library, you have to include file DraugiemApi.php in your application., (*4)

Usage

Check examples for more on how to use the API library., (*5)

require 'DraugiemApi.php';

$draugiem = new DraugiemApi( 'YOUR_APP_ID', 'YOUR_APP_KEY' );

session_start();
$draugiem->cookieFix(); // Iframe cookie workaround for IE and Safari

$session = $draugiem->getSession();
if ($session) {
    $user = $draugiem->getUserData(); //Get user info
}

Usage with composer

  1. Add this package to your composer.json, (*6)

    "draugiem/draugiem-php-sdk": "1.3.*"
    
  2. Update composer.json packages, (*7)

    composer update
    
  3. Use library as shown in examples, (*8)

    $draugiem = new DraugiemApi( 'YOUR_APP_ID', 'YOUR_APP_KEY' );
    

The Versions

25/01 2018

dev-master

9999999-dev

Draugiem.lv API PHP library

  Sources   Download

The Requires

  • php >=5.3.0

 

by draugiem.lv

api php library draugiem draugiem.lv

25/01 2018

v1.3.7

1.3.7.0

Draugiem.lv API PHP library

  Sources   Download

The Requires

  • php >=5.3.0

 

by draugiem.lv

api php library draugiem draugiem.lv

20/08 2015

v1.3.6

1.3.6.0

Draugiem.lv API PHP library

  Sources   Download

The Requires

  • php >=5.3.0

 

by draugiem.lv

api php library draugiem draugiem.lv

13/11 2014

v1.3.5

1.3.5.0

Draugiem.lv API PHP library

  Sources   Download

The Requires

  • php >=5.3.0

 

by draugiem.lv

api php library draugiem draugiem.lv

16/09 2014

v1.3.4

1.3.4.0

Draugiem.lv API PHP library

  Sources   Download

The Requires

  • php >=5.3.0

 

by draugiem.lv

api php library draugiem draugiem.lv

16/09 2014

v1.3.3

1.3.3.0

Draugiem.lv API PHP library

  Sources   Download

The Requires

  • php >=5.3.0

 

by draugiem.lv

api php library draugiem draugiem.lv