arimac/sigfox 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

arimac/sigfox

Composer 安装命令:

composer require arimac/sigfox

包简介

A highlevel up-to-date complete Sigfox API client

README 文档

README

PHP Sigfox Client

Travis:Status PHP:Version Packagist:Version Actions:Main

A high level, up-to-date client library to access Sigfox APIs. This client library covered all the operations.

Installation

$ composer require arimac/sigfox guzzlehttp/guzzle:7.*

If you are planning to use another HTTP client other than guzzlehttp, You do not want to install it.

Usage

See the documentation for a detailed description. This is some code snippets for you to get an idea about this library.

  • Initializing the client
use Arimac\Sigfox\Sigfox;

$sigfox = new Sigfox("myapikey", "password");
  • Fetch a device from the server
$device = $sigfox->devices()->find("AF01F")->get();
  • Update a device
$sigfox->devices()->find("AF01F")->update(["deviceTypeId"=>"0f1bc092ef..."]);
  • Create a device
$sigfox->devices()->create([
    "pac"=> "585CB3B42AC98BD4",
    "name"=> "Device 1",
    "deviceTypeId"=> "57309548171c857460043085",
    "id"=> "00FF"
]);

// Or you can use objects to pass data
$deviceId = $sigfox->devices()->create(
    (new DeviceCreationJob)
        ->setPac("585CB3B42AC98BD4")
        ->setId("00FF")
        ->setName("Device 1")
        ->setDeviceTypeId("57309548171c857460043085")
);
  • Delete a device
$sigfox->devices()->find("AF01F")->delete();

Features

  • All operations implemented
  • Ability to use user defined HTTP clients.
  • Requests validation over validation rules in the API documentation.
  • A developer friendly helper to handle pagination requests
  • A developer friendly helper to handle async requests
  • File downloads (kmz)

Versioning

The initial version code is the 2.0.0. The first number (2) belongs to the version number of the Sigfox API. Second number is changing with major versions. And the third number is changing with the minor versions.

Issues and Feature requests

Do not hesitate to report if you faced any issue or a bug while using this library. We are little bit busy, but happy to help you.

We have added just a few basic features to this library to solve only the most frequently encountered tasks. If you have an idea about a new feature, feel free to let us know in the issues section.

Contributing

If you like to contribute and you do not have an idea about where to contribute, go to the issues section and try to pick one.

Read the Contribution Guide if you new to contribute. And open a PR to the master branch with your contribution. Make sure all contributions are backward compatibility. Because we are not frequently releasing major versions of this library.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-05-26

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固