valerian/findmyiphone
Composer 安装命令:
composer require valerian/findmyiphone
包简介
Získání pozice Apple zařízení
关键字:
README 文档
README
Track your Apple devices. A PHP client for Apple's Find My iPhone service iCloud®.
Requirements
Requires PHP 5.5.0 or higher.
Installation
The best way to install valerian/findmyiphone is using Composer:
$ composer require valerian/findmyiphone
Getting Started
Find all devices in iCloud
$findMyIphone = new Valerian\FindMyIphome('icloud username', 'icloud password'); $devices = $findMyIphone->getDevices(); foreach ($devices as $device) { $location = $device->getLocation(); if ($location) { $latitude = $location->getLatitude(); $latitude = $location->getLongitude(); } }
Find device by name
$findMyIphone = new Valerian\FindMyIphome('icloud username', 'icloud password'); $device = $findMyIphone->getDevice('deviceDisplayName'); $location = $device->getLocation(); if ($location) { $latitude = $location->getLatitude(); $latitude = $location->getLongitude(); }
统计信息
- 总下载量: 49
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2016-11-28