PHP code example of odannyc / iphone-locator

1. Go to this page and download the library: Download odannyc/iphone-locator library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

odannyc / iphone-locator example snippets


$username = 'test'; // This is the username associated with the iCloud account.
$password = 'password'; // This is the password associated with the iCloud account.

$locator = new iPhoneLocator($username, $password);

$locator->devices(); // Gets you all devices associated to the account with all their info.