{"id":30300292,"url":"https://github.com/bfncs/youtubehelper","last_synced_at":"2025-08-17T04:32:51.264Z","repository":{"id":3370354,"uuid":"4417292","full_name":"bfncs/YoutubeHelper","owner":"bfncs","description":"CakePHP 2.x Youtube Helper","archived":false,"fork":false,"pushed_at":"2012-10-24T11:41:51.000Z","size":116,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-13T09:08:48.229Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bfncs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-05-23T07:43:02.000Z","updated_at":"2016-09-09T16:55:50.000Z","dependencies_parsed_at":"2022-09-13T10:11:22.406Z","dependency_job_id":null,"html_url":"https://github.com/bfncs/YoutubeHelper","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bfncs/YoutubeHelper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bfncs%2FYoutubeHelper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bfncs%2FYoutubeHelper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bfncs%2FYoutubeHelper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bfncs%2FYoutubeHelper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bfncs","download_url":"https://codeload.github.com/bfncs/YoutubeHelper/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bfncs%2FYoutubeHelper/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270807430,"owners_count":24649342,"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","status":"online","status_checked_at":"2025-08-17T02:00:09.016Z","response_time":129,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2025-08-17T04:32:21.006Z","updated_at":"2025-08-17T04:32:51.244Z","avatar_url":"https://github.com/bfncs.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CakePHP 2.x Youtube Helper\n\nInclude Youtube-Players quick and easy\n\nInspired by:\n\n* [Youtube Helper by Tomas Pavlatka](http://bakery.cakephp.org/articles/pavlatka/2011/09/09/youtube_helper_using_youtube_iframe_player_api)\n* [Youtube Helper by Carly Marie](http://bakery.cakephp.org/articles/cmarie/2010/11/20/youtube_helper_3)\n\n\n## Requirements\n\n* CakePHP 2.x\n\n## Installation\n\n### Git Clone\n\n\nIn your app directory:\n\n    git clone git://github.com/boundaryfunctions/YoutubeHelper.git Plugin/Youtube\n\n### Git Submodule\n\nIn your app directory:\n\n    git submodule add git://github.com/boundaryfunctions/YoutubeHelper.git Plugin Youtube\n    git update --init\n\n### Without Git:\n\nDownload the [zipball](https://github.com/boundaryfunctions/YoutubeHelper/zipball/master \"Download the repository zipped\") and extract it to `app/Plugin/Youtube`.\n\n## Usage\n\n## Controller\n\nInclude the helper in your Controller:\n\n    \u003c?php\n    class MyController extends AppController {\n      public $helpers = array('Youtube.Youtube');\n    }\n\nYou can also pass your own defaults for Iframe and Player to the helper like this:\n\n    \u003c?php\n    class MyController extends AppController {\n      public $helpers = array(\n        'Youtube.Youtube' =\u003e array(\n          'iframeOpts' =\u003e array(\n            'width' =\u003e 640,\n            'height' =\u003e 390,\n            'frameborder' =\u003e 0\n          ),\n          'playerVars' = array(\n            'autohide'    =\u003e 2,\n            'autoplay'    =\u003e 0,\n            'controls'    =\u003e 1,\n            'enablejsapi' =\u003e 0,\n            'loop'        =\u003e 0, \n            'origin'      =\u003e null,\n            'rel'         =\u003e 0,\n            'showinfo'    =\u003e 0,\n            'start'       =\u003e null,\n            'theme'       =\u003e 'dark'\n          ),\n        ),\n      );\n    }\n\nAbove you can see all default values. Additionally, you can specify additional options for `iframeopts` as you would pass it as the third argument `$options` to the (`HtmlHelper::tag()`)[http://api20.cakephp.org/class/html-helper#method-HtmlHelpertag] function.\n\nYou can also add more (query paramaters)[https://developers.google.com/youtube/player_parameters#Parameters] to the `playerVars` array. If you want to remove a default parameter from the query, set it to `null`.\n\n## View\n\nAfter including the helper in your controller, you can use it like this in your views:\n\n    $this-\u003eYoutube-\u003eiframe($url);\n\nWhere `$url` is a valid Youtube URL (i.e. `http://www.youtube.com/watch?v=Zln9I9IttLA`) or ID (i.e. `Zln9I9IttLA`).\n\nAdditionaly, you can add custom options for the current Video only by passing an array of options for the Iframe as second argument and an array of parameters for the player as third argument:\n\n    $this-\u003eYoutube-\u003eiframe($url, array('width' =\u003e 640), array('autohide' =\u003e 2));\n\n## To do:\n\n* Method to show Youtube Preview Images\n* Method to include Iframes with (Youtube Javascript Iframe API)[https://developers.google.com/youtube/iframe_api_reference]\n\n## License\n\nCopyright (c) 2012 Marc Löhe\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbfncs%2Fyoutubehelper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbfncs%2Fyoutubehelper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbfncs%2Fyoutubehelper/lists"}