定制 weblabnl/restclient 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

weblabnl/restclient

最新稳定版本:1.0.2

Composer 安装命令:

composer require weblabnl/restclient

包简介

README 文档

README

This library will help you implement REST APIs faster. Just add an adapter that implements the interface, set the base URL and you are good to go. It's shipped with an OAuth adapter.

Installation

Install using composer:

composer require weblabnl/restclient

Using the Library

Setup client

$api = new \Weblab\RESTClient\RESTClient();

$adapter = (new \Weblab\RESTClient\Adapters\OAuth)
    ->setAccessToken($accessToken);

$api->setAdapter($adapter);
$api->setBaseURL('https://api.weblab.nl');

Make a POST request to a REST API

$result = $api->post('/users', ['first_name' => 'Ankie', 'last_name' => 'Visser']);

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Apache-2.0
  • 更新时间: 2018-05-08