flammy/fsapi 问题修复 & 功能扩展

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

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

flammy/fsapi

Composer 安装命令:

composer require flammy/fsapi

包简介

Frontier Silicon API for PHP

README 文档

README

This code is work in progress! It is not finished yet, feel free co contribute to it.

This code is developed for Frontier Silicon Ltd. Venice 6.2 chipset and tested with TERRIS® Stereo Internetradio.

In this case there is no spotify mode and there are not so many equalizers.

Please let me know if it does not work on your device.

Usage:

Class Radio

The radio class provides an easy to use set of human readable methods and parameters.

$Radio = new Radio($host,$pin);
$response = $Radio->radioFrequency(106.4);
$response = $Radio->mute(0);
$response = $Radio->volume(5);

Class FSAPI

The fsapi class provides the abstracted basic communication with the device.

$Request = new Request($host,$session_id,$pin);
$FSAPI = new FSAPI($Request);
$response = $FSAPI->doRequest('SET','netRemote.sys.audio.mute',array('value' => 0));
$response = $FSAPI->doRequest('SET','netRemote.play.frequency'',array('value' => 106400));
$response = $FSAPI->doRequest('SET','netRemote.sys.audio.volume',array('value' => 5));

Class SSDP (Simple Service Discovery Protocol)

The ssdp class provices the device discovery via UPNP. This is a very rudimentary class which does only this one thing.

$Scanner = new Scanner();
$SSDP = new SSDP($Scanner);
$response = $SSDP->doScan('urn:schemas-frontier-silicon-com:fs_reference:fsapi:1');

More examples

You can find a detailed documentation for the classes at:

https://github.com/flammy/fsapi/blob/master/Documentation.md

Example implementation:

You can find an example implementation in the following repository:

https://github.com/flammy/fsapi-remote

documentation:

You can find a documentation of the raw FSAPI reqests and responses at:

https://github.com/flammy/fsapi/blob/master/FSAPI.md

统计信息

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

GitHub 信息

  • Stars: 73
  • Watchers: 11
  • Forks: 19
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2016-12-27

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固