承接 primeinc/edgeapi 相关项目开发

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

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

primeinc/edgeapi

Composer 安装命令:

composer require primeinc/edgeapi

包简介

A PHP wrapper for the EdgeOS API

README 文档

README

A PHP wrapper for the EdgeOS API

Installation

  1. Use Composer to install EdgeAPI into your project:

    composer require primeinc/edgeapi
  2. Setup the endpoint and guzzle client

    //create new endpoint config, with required info
    $endpoint = new \PrimeInc\EdgeApi\Endpoint(array(
        'protocol' => 'https',
        'domain' => '192.168.1.1',
        'port' => '443',
        'username' => 'ubnt',
        'password' => 'ubnt',
        // don't have a valid cert? set the following to false
        'verify' => true
    ));
    $client = new \PrimeInc\EdgeApi\Client($endpoint);
    $client->data('sys_info');
    
    echo $client->prettyJson(); // this will grab the last data fetched automatically

    For more options, have a look at the example files in examples/ to get a feel for how things work. There is also a standalone template if you don't wish to use this libray.

Todo's

  • Catch & Handle Errors
  • Write Tests
  • Ability to change endpoint configuration via POST requests

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-06-17