bubelbub/smarthome-php

智能家居的PHP库

dev-master 2015-02-10 15:41 UTC

This package is not auto-updated.

Last update: 2024-09-24 01:54:55 UTC


README

这是一个智能家居库。用PHP编写。

支持的智能家居

安装(常规方式)

  1. 下载GIT

    Debian/Ubuntu: apt-get install git-core Windows: http://msysgit.github.io/

  2. 下载 composer

     $ php -r "readfile('https://getcomposer.org.cn/installer');" | php
    
  3. 安装新项目

     $ php composer.phar create-project bubelbub/smarthome-php directory_path/
    
  4. 将示例文件复制到当前目录

    Debian/Ubuntu: cp "vendor/bubelbub/smarthome-php/Bubelbub/SmartHomePHP/example.php" . Windows: copy "vendor\bubelbub\smarthome-php\Bubelbub\SmartHomePHP\example.php" .

  5. 祝您玩得开心!

安装(旧方式 / 仓库方式)

  1. 下载GIT

    Debian/Ubuntu: apt-get install git-core Windows: http://msysgit.github.io/

  2. 克隆项目

     $ git clone https://github.com/Bubelbub/SmartHome-PHP.git
    
  3. 进入目录

     $ cd SmartHome-PHP
    
  4. 下载 composer

     $ php -r "readfile('https://getcomposer.org.cn/installer');" | php
    
  5. “安装”仓库

     $ php composer.phar install
    
  6. 祝您玩得开心!

许可证

SmartHome-PHP遵循MIT许可证