{"id":21806383,"url":"https://github.com/svilborg/php-roku","last_synced_at":"2025-04-13T20:08:00.242Z","repository":{"id":19252189,"uuid":"22487790","full_name":"svilborg/php-roku","owner":"svilborg","description":"PHP Roku","archived":false,"fork":false,"pushed_at":"2019-01-05T23:04:18.000Z","size":39,"stargazers_count":15,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-14T20:11:41.074Z","etag":null,"topics":["composer","php","php-library","php-roku","roku","roku-device","roku-tv"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"hanzo-io/el.js","license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/svilborg.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-07-31T22:43:44.000Z","updated_at":"2024-04-11T20:58:32.000Z","dependencies_parsed_at":"2022-07-10T08:00:28.102Z","dependency_job_id":null,"html_url":"https://github.com/svilborg/php-roku","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svilborg%2Fphp-roku","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svilborg%2Fphp-roku/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svilborg%2Fphp-roku/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svilborg%2Fphp-roku/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/svilborg","download_url":"https://codeload.github.com/svilborg/php-roku/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226745334,"owners_count":17675028,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["composer","php","php-library","php-roku","roku","roku-device","roku-tv"],"created_at":"2024-11-27T12:19:18.185Z","updated_at":"2024-11-27T12:19:18.855Z","avatar_url":"https://github.com/svilborg.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Roku PHP Library\n================================================\n\n[![Build Status](https://api.travis-ci.org/svilborg/php-roku.png?branch=master)](https://travis-ci.org/svilborg/php-roku)\n[![Latest Stable Version](https://poser.pugx.org/svilborg/php-roku/v/stable.png)](https://packagist.org/packages/svilborg/php-roku)\n[![Latest Unstable Version](https://poser.pugx.org/svilborg/php-roku/v/unstable.png)](https://packagist.org/packages/svilborg/php-roku)\n\n\nPHP Library for communication with Roku External Control Protocol\n\nInstallation\n================\n\nInstalling via Composer\n-----------------------\nInstall composer in a common location or in your project:\n\n```bash\ncurl -s http://getcomposer.org/installer | php\n```\n\nCreate the composer.json file as follows:\n\n```json\n{ \n    \"require\": {\n        \"svilborg/php-roku\": \"dev-master\"\n    }\n}\n```\n\nRun the composer installer:\n\n```bash\nphp composer.phar install\n```\n\nRequirements\n============\n\n* PHP Version \u003e=5.3.2.\n* PHP Httpful Library\n\nUsage\n=====\n\nExecute commands :\n\n```php\n\n$roku = new \\Roku\\Roku(\"192.168.72.10\", 8060, 0.2);\n\n$roku-\u003eup();\n\n$roku-\u003eselect();\n\n$roku-\u003eliterals(\"test@gmail.com\");\n\n$roku-\u003edown();\n\n$roku-\u003edown();\n\n$roku-\u003eselect();\n\n```\n\nList the applicatioin installed on the device :\n\n```php\n\n\n$roku = new \\Roku\\Roku(\"192.168.72.10\", 8060, 0.2);\n\n$applications = $roku-\u003eapps();\n\nforeach ($applications as $application) {\n    echo $application-\u003egetId();\n    echo $application-\u003egetVersion();\n    echo $application-\u003egetName();\n    echo \"\\n\";\n}\n\n```\n\nGet device information :\n\n```php\n\n\n$roku = new \\Roku\\Roku(\"192.168.72.10\", 8060, 0.2);\n\n$device = $roku-\u003edevice();\n\necho $device-\u003egetSerialNumber();\necho $device-\u003egetModelName();\necho $device-\u003egetModelDescription();\n// etc..\n\n\n```\n\nUsage Commandline\n=================\n\nFor the list of commands execute :\n\n```bash\n\n$ vendor/bin/roku --help\n\n```\n\nIt displays :\n\n```bash\n\nPHP Roku Console\n\nUsage: roku [OPTION] ..\n\n-h \u003chost\u003e       Host\n-p \u003cport\u003e       Port\n-d \u003cdelay\u003e      Delay between each command\n-i              Interactive mode (Listens for keyboard keystrokes)\n-c \u003ccommands\u003e   Command mode (Specify commands to be executed, Example -c \"up down test@gmail.com down select home\")\n-t              Test Mode (Does not send commands.Just simulates them.)\n--help          Shows this help\n\n```\n\nExample usage of command and interactive modes :\n\n```bash\n\n$ vendor/bin/roku -h 192.168.72.10 -p 8060 -d 1 -c \"up test@gmailc.om down down select home\"\n\n$ vendor/bin/roku  -h 192.168.72.10 -d 1 -i\n\n```\n\nRunning the tests\n=================\n\nFirst, install PHPUnit with `composer.phar install --dev`, then run\n`./vendor/bin/phpunit`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsvilborg%2Fphp-roku","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsvilborg%2Fphp-roku","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsvilborg%2Fphp-roku/lists"}