Skip to content

Track your Apple devices. A PHP client for Apple's Find My iPhone service iCloud®.

License

Notifications You must be signed in to change notification settings

miroslav-valerian/find-my-iphone

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FindMyIphone

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();
}

About

Track your Apple devices. A PHP client for Apple's Find My iPhone service iCloud®.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages