2017 © Pedro Peláez
 

library php-client-api

PHP client to connect Wavelabs API

image

wavelabs/php-client-api

PHP client to connect Wavelabs API

  • Monday, June 27, 2016
  • by lbsastry
  • Repository
  • 3 Watchers
  • 0 Stars
  • 84 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 35 Versions
  • 0 % Grown

The README.md

Wavelabs PHP client App

Wavelabs PHP client App is the first easy, secure user management and authentication service for developers. This is the PHP Client App to easy integration of its features with any PHP language based application., (*1)

Installation

You can install wavelabs-php-client-api via composer, (*2)

Via Composer

wavelabs-php-client-api is available on packagist as the "wavelabs/php-client-api" package, (*3)

On your project root, install Composer php curl -sS https://getcomposer.org/installer | php Configure the wavelabs-php-client-api dependency in your 'composer.json' file: json "require": { "wavelabs/php-client-api": "*" } On your project root, install the the wavelabs-php-client-api with its dependencies: php php composer.phar install You're ready to connect with wavelabs-php-client-api!, (*4)

Via github

You can download from Github, (*5)

Getting Started

Include the wavelabs-php-client-api via composer autoloder php inclide 'vendor/autoload.php'; Or Include the wavelabs-php-client-api when downloaded from github php include 'wavelabs-php-client-api-master/src/Wavelabs/Autoloader.php';, (*6)

Samples

  1. User Registration, (*7)

    // Include autoloader
    require "vendor/autoload.php";
    
    // calling login service
    $response = $auth->signup([
     "username" => "demouser",
     "password" => "demopass",
     "email" => "demo@gmail.com",
     "firstName" => "first name",
     "lastName" => "last name"
    ]);
    // get service HTTP status code
    $http_code = $auth->getLastHttpCode();
    
    // if HTTP status is OK
    if($http_code == 200){
     // message from server
     echo "Token :".$response->token->access_token;
     echo "Member ID :".$response->member->id;
     echo "Email :".$response->member->email;
     echo "First Name :".$response->member->firstName;
    }else {
     //get Errors
     print_r(\Wavelabs\core\ApiBase::getErrors());
    }
    
  2. User Login, (*8)

    // Include autoloader
    require "vendor/autoload.php";
    
    $auth = new Wavelabs\core\Auth();
    
    // calling login service
    $response = $auth->login("sastrylal", "Admin@123");
    // get service HTTP status code
    $http_code = $auth->getLastHttpCode();
    
    // if HTTP status is OK
    if($http_code == 200){
     echo "Welcome to ". $response->member->firstName;
    }else {
     //get Errors 
     print_r(\Wavelabs\core\ApiBase::getErrors());
    }
    

The Versions

27/06 2016

dev-master

9999999-dev https://github.com/nbostech/wavelabs-php-client-api

PHP client to connect Wavelabs API

  Sources   Download

MIT

The Requires

 

by L B Sastry

php api wavelabs

13/06 2016

V1.0.34

1.0.34.0 https://github.com/nbostech/wavelabs-php-client-api

PHP client to connect Wavelabs API

  Sources   Download

MIT

The Requires

 

by L B Sastry

php api wavelabs

14/04 2016

V1.0.33

1.0.33.0 https://github.com/nbostech/wavelabs-php-client-api

PHP client to connect Wavelabs API

  Sources   Download

MIT

The Requires

 

by L B Sastry

php api wavelabs

14/04 2016

V1.0.32

1.0.32.0 https://github.com/nbostech/wavelabs-php-client-api

PHP client to connect Wavelabs API

  Sources   Download

MIT

The Requires

 

by L B Sastry

php api wavelabs

06/04 2016

V1.0.31

1.0.31.0 https://github.com/nbostech/wavelabs-php-client-api

PHP client to connect Wavelabs API

  Sources   Download

MIT

The Requires

 

by L B Sastry

php api wavelabs

06/04 2016

V1.0.30

1.0.30.0 https://github.com/nbostech/wavelabs-php-client-api

PHP client to connect Wavelabs API

  Sources   Download

MIT

The Requires

 

by L B Sastry

php api wavelabs

06/04 2016

V1.0.29

1.0.29.0 https://github.com/nbostech/wavelabs-php-client-api

PHP client to connect Wavelabs API

  Sources   Download

MIT

The Requires

 

by L B Sastry

php api wavelabs

06/04 2016

V1.0.28

1.0.28.0 https://github.com/nbostech/wavelabs-php-client-api

PHP client to connect Wavelabs API

  Sources   Download

MIT

The Requires

 

by L B Sastry

php api wavelabs

06/04 2016

V1.0.27

1.0.27.0 https://github.com/nbostech/wavelabs-php-client-api

PHP client to connect Wavelabs API

  Sources   Download

MIT

The Requires

 

by L B Sastry

php api wavelabs

05/04 2016

V1.0.26

1.0.26.0 https://github.com/nbostech/wavelabs-php-client-api

PHP client to connect Wavelabs API

  Sources   Download

MIT

The Requires

 

by L B Sastry

php api wavelabs

05/04 2016

V1.0.25

1.0.25.0 https://github.com/nbostech/wavelabs-php-client-api

PHP client to connect Wavelabs API

  Sources   Download

MIT

The Requires

 

by L B Sastry

php api wavelabs

28/03 2016

V1.0.24

1.0.24.0 https://github.com/nbostech/wavelabs-php-client-api

PHP client to connect Wavelabs API

  Sources   Download

MIT

The Requires

 

by L B Sastry

php api wavelabs

16/03 2016

V1.0.23

1.0.23.0 https://github.com/nbostech/wavelabs-php-client-api

PHP client to connect Wavelabs API

  Sources   Download

MIT

The Requires

 

by L B Sastry

php api wavelabs

11/03 2016

V1.0.22

1.0.22.0 https://github.com/nbostech/wavelabs-php-client-api

PHP client to connect Wavelabs API

  Sources   Download

MIT

The Requires

 

by L B Sastry

php api wavelabs

09/03 2016

V1.0.21

1.0.21.0 https://github.com/nbostech/wavelabs-php-client-api

PHP client to connect Wavelabs API

  Sources   Download

MIT

The Requires

 

by L B Sastry

php api wavelabs

09/03 2016

V1.0.20

1.0.20.0 https://github.com/nbostech/wavelabs-php-client-api

PHP client to connect Wavelabs API

  Sources   Download

MIT

The Requires

 

by L B Sastry

php api wavelabs

04/03 2016

V1.0.19

1.0.19.0 https://github.com/nbostech/wavelabs-php-client-api

PHP client to connect Wavelabs API

  Sources   Download

MIT

The Requires

 

by L B Sastry

php api wavelabs

03/03 2016

V1.0.18

1.0.18.0 https://github.com/nbostech/wavelabs-php-client-api

PHP client to connect Wavelabs API

  Sources   Download

MIT

The Requires

 

by L B Sastry

php api wavelabs

03/03 2016

V1.0.17

1.0.17.0 https://github.com/nbostech/wavelabs-php-client-api

PHP client to connect Wavelabs API

  Sources   Download

MIT

The Requires

 

by L B Sastry

php api wavelabs

29/02 2016

V1.0.16

1.0.16.0 https://github.com/nbostech/wavelabs-php-client-api

PHP client to connect Wavelabs API

  Sources   Download

MIT

The Requires

 

by L B Sastry

php api wavelabs

26/02 2016

V1.0.15

1.0.15.0 https://github.com/nbostech/wavelabs-php-client-api

PHP client to connect Wavelabs API

  Sources   Download

MIT

The Requires

 

by L B Sastry

php api wavelabs

25/02 2016

V1.0.14

1.0.14.0 https://github.com/nbostech/wavelabs-php-client-api

PHP client to connect Wavelabs API

  Sources   Download

MIT

The Requires

 

by L B Sastry

php api wavelabs

23/02 2016

V1.0.12

1.0.12.0 https://github.com/nbostech/wavelabs-php-client-api

PHP client to connect Wavelabs API

  Sources   Download

MIT

The Requires

 

by L B Sastry

php api wavelabs

22/02 2016

V1.0.11

1.0.11.0 https://github.com/nbostech/wavelabs-php-client-api

PHP client to connect Wavelabs API

  Sources   Download

MIT

The Requires

 

by L B Sastry

php api wavelabs

22/02 2016

V1.0.10

1.0.10.0 https://github.com/nbostech/wavelabs-php-client-api

PHP client to connect Wavelabs API

  Sources   Download

MIT

The Requires

 

by L B Sastry

php api wavelabs

17/02 2016

V1.0.9

1.0.9.0 https://github.com/nbostech/wavelabs-php-client-api

PHP client to connect Wavelabs API

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by L B Sastry

php api wavelabs

17/02 2016

V1.0.8

1.0.8.0 https://github.com/nbostech/wavelabs-php-client-api

PHP client to connect Wavelabs API

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by L B Sastry

php api wavelabs

12/02 2016

V1.0.7

1.0.7.0 https://github.com/nbostech/wavelabs-php-client-api

PHP client to connect Wavelabs API

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by L B Sastry

php api wavelabs

10/02 2016

V1.0.6

1.0.6.0 https://github.com/nbostech/wavelabs-php-client-api

PHP client to connect Wavelabs API

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by L B Sastry

php api wavelabs

09/02 2016

V1.0.4

1.0.4.0 https://github.com/nbostech/wavelabs-php-client-api

PHP client to connect Wavelabs API

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by L B Sastry

php api wavelabs

09/02 2016

V1.0.5

1.0.5.0 https://github.com/nbostech/wavelabs-php-client-api

PHP client to connect Wavelabs API

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by L B Sastry

php api wavelabs

09/02 2016

V1.0.3

1.0.3.0 https://github.com/nbostech/wavelabs-php-client-api

PHP client to connect Wavelabs API

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by L B Sastry

php api wavelabs

09/02 2016

V1.0.2

1.0.2.0 https://github.com/nbostech/wavelabs-php-client-api

PHP client to connect Wavelabs API

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by L B Sastry

php api wavelabs

09/02 2016

v1.0.1

1.0.1.0 https://github.com/nbostech/wavelabs-php-client-api

PHP client to connect Wavelabs API

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by L B Sastry

php api wavelabs

08/02 2016

v1.0.0

1.0.0.0 https://github.com/nbostech/wavelabs-php-client-api

Logging for PHP 5.3

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by L B Sastry

logging