承接 lamoni/restlyte 相关项目开发

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

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

lamoni/restlyte

最新稳定版本:v1.0.0

Composer 安装命令:

composer require lamoni/restlyte

包简介

A simple REST client library implemented in PHP.

README 文档

README

RESTLyte is a simple REST client library implemented in PHP.

Examples

$rest = new RESTLyte(
    "https://spaceexample.io",  // Server
    "username",                 // Username
    "password",                 // Password
    false,                      // SSL Checking?
    [                           // Array of custom HTTP headers to send with the API call
        'Cache-Control: no-cache'
    ]
);

$response = $rest->get(
    '/api/space/device-management/devices', // API call
    'JSON',                                 // Response handler (RAW | JSON | XML)
    'application/vnd.net.juniper.space.device-management.devices+json;version=1' // "Accept: "
);

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-12-15