PHP code example of harpax / fb_http

1. Go to this page and download the library: Download harpax/fb_http 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/ */

    

harpax / fb_http example snippets




a = new \fb_http\HA\HomeAutomation('mySecretPassword', 'optional_FB_IP', 'optional_Username');
var_dump( $fb_ha->getDeviceListInfos() );