承接 wavelabs/php-client-api 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

wavelabs/php-client-api

Composer 安装命令:

composer require wavelabs/php-client-api

包简介

PHP client to connect Wavelabs API

README 文档

README

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.

Installation

You can install wavelabs-php-client-api via composer

Via Composer

wavelabs-php-client-api is available on packagist as the "wavelabs/php-client-api" package

On your project root, install Composer

  curl -sS https://getcomposer.org/installer | php

Configure the wavelabs-php-client-api dependency in your 'composer.json' file:

"require": {
    "wavelabs/php-client-api": "*"
}

On your project root, install the the wavelabs-php-client-api with its dependencies:

php composer.phar install

You're ready to connect with wavelabs-php-client-api!

Via github

You can download from Github

Getting Started

Include the wavelabs-php-client-api via composer autoloder

inclide 'vendor/autoload.php';

Or Include the wavelabs-php-client-api when downloaded from github

include 'wavelabs-php-client-api-master/src/Wavelabs/Autoloader.php';

##Samples

  1. User Registration
// 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());
}
  1. User Login
// 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());
}

统计信息

  • 总下载量: 92
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 3
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-02-08

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固