PHPackages                             flexnst/laravel-lgtv - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. flexnst/laravel-lgtv

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

flexnst/laravel-lgtv
====================

LG WebOS TV control with Laravel

v1.0.5(6y ago)8762MITPHP

Since Sep 24Pushed 5y agoCompare

[ Source](https://github.com/flexnst/laravel-lgtv)[ Packagist](https://packagist.org/packages/flexnst/laravel-lgtv)[ RSS](/packages/flexnst-laravel-lgtv/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (2)Versions (8)Used By (0)

Control LG WebOS TV with Laravel
================================

[](#control-lg-webos-tv-with-laravel)

The package allows you to control the status of LG Smart TVs based on WebOS, switch channels, control sound, launch applications and emulate pressing buttons on the remote control.

Installation
------------

[](#installation)

```
composer require flexnst/laravel-lgtv

```

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

```

Usage examples
--------------

[](#usage-examples)

Discover TV ip address on network:

```
$ip = \LgTv::device()->discover();

```

Start TV:

```
\LgTv::device()->turn_on();

```

TV off:

```
\LgTv::device()->turn_off();

```

Show float message on TV screen:

```
\LgTv::device()->show_float('Hello!');

```

Support many devices
--------------------

[](#support-many-devices)

```
// config/lgtv.php
