承接 open-resource-manager/client-php 相关项目开发

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

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

open-resource-manager/client-php

Composer 安装命令:

composer require open-resource-manager/client-php

包简介

ORM client library for php.

README 文档

README

License GitHub issues

Install

Install with composer.

composer require open-resource-manager/client-php ~1.0

Usage

Docs:

The API documentation is available here.

Example:

<?php

use Exception;
use OpenResourceManager\ORM;
use OpenResourceManager\Client\Account as AccountClient;

class SomeClass
{
    function someFunction () {
    
        // API environment variables
        $apiSecret = '123456789';
        $apiHost = 'localhost';
        $apiPort = 80;
        $apiVersion = 1;
        $useHttps = false;
        
        // Build the ORM connection
        $orm = new ORM($apiSecret, $apiHost, $apiVersion, $apiPort, $useHttps);
        
        // Build an account client
        $accountClient = new AccountClient($orm);
        
        // Get an ORM Account
        $response = $accountClient->getFromUsername('skywal');
        
        // Verify that the API returned a 200 http code
        if ($response->code == 200) {
            // Get the account from the response body
            $account = $response->body->data;
        } else {
            // Throw an exception if we did not get 200 back
            // display the http code with the message from the API.
            throw new Exception($response->body->message, $response->code);
        }
    }
}

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-04-27

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固