PHP code example of flexnst / laravel-lgtv

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

    

flexnst / laravel-lgtv example snippets


// config/lgtv.php


return [
    'devices' => [
        'tv1' => [
            'ip' => env('LGTV_TV1_IP'),
            'mac' => env('LGTV_TV1_MAC'),
            'key_path' => storage_path('lgtv_tv1.key')
        ]
    ],
    'default' => 'tv1'
];

php artisan vendor:publish --provider="Flexnst\LgTv\LgTvServiceProvider" --tag=config