承接 bk203/rgw-admin-client 相关项目开发

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

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

bk203/rgw-admin-client

最新稳定版本:2.0.0

Composer 安装命令:

composer require bk203/rgw-admin-client

包简介

PHP client for the rados gateway admin operations api.

README 文档

README

PHP client for the Rados Gateway admin operations api.

Requirements

  • Minimum PHP 8.0

Installation

What type of installation should I choose?

It's very simple, choose for an express installation if your application already contains an HTTP library such as GuzzleHTTP, otherwise just perform an quick installation.

Quick installation

For a quick installation we recommend you to install the php-http/curl-client package. This package is a small abstraction around native php curl api.

$ composer require php-http/curl-client guzzlehttp/psr7

After that you are ready to install this package:

$ composer require bk203/rgw-admin-client

Usage

Client configuration

Before you can use the api client you need to provide the apiUrl, apiKey and secretKey. You need to provided them when creating an instance of the client class.

use bk203\RgwAdminClient\Client;

$client = new Client('https://','apiKey','secretKey');

Create and execute a request

There are two ways to interact with the rados api via this package, you can manually create the request and send them afterwards. See the code below for an example.

$request = $client->createRequest('user', 'get', ['uid' => 'user-id']);

$response = $client->sendRequest($request);

var_dump($response);

You can also use the preferred short syntax.

$response = $client->get('user', ['uid' => 'user-id']);

var_dump($response);

See the api docs for more information about the available api resources.

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-08-14

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固