{"id":15201816,"url":"https://github.com/rimelek/ybb","last_synced_at":"2026-02-02T22:49:58.333Z","repository":{"id":62535884,"uuid":"97409087","full_name":"rimelek/ybb","owner":"rimelek","description":"BB Code interpreter for youtube videos","archived":false,"fork":false,"pushed_at":"2017-07-17T18:36:31.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-04T22:19:29.554Z","etag":null,"topics":["bbcode","php","youtube","youtube-video"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rimelek.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":"2017-07-16T20:24:28.000Z","updated_at":"2017-08-06T06:31:35.000Z","dependencies_parsed_at":"2022-11-02T16:01:06.838Z","dependency_job_id":null,"html_url":"https://github.com/rimelek/ybb","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/rimelek/ybb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rimelek%2Fybb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rimelek%2Fybb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rimelek%2Fybb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rimelek%2Fybb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rimelek","download_url":"https://codeload.github.com/rimelek/ybb/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rimelek%2Fybb/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263636797,"owners_count":23492306,"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":["bbcode","php","youtube","youtube-video"],"created_at":"2024-09-28T03:40:30.075Z","updated_at":"2026-02-02T22:49:53.310Z","avatar_url":"https://github.com/rimelek.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# README\n\n## Description\n\nThis is just a simple function convert youtube video links or video IDs to the video embed code using BB codes.\nYou can pass arguments to the BB code or you can disable them.\n \n# Arguments\n\n- **nocookie**: Default: \"off\". If it is \"on\" youtube-nocookie.com will be used as domain.\n- **controls**: Default: \"on\". Whether you want to show control buttons or not.\n- **suggestions**: Default: \"on\". You can turn suggestions after the video on or off.\n- **showinfo**: Default: \"on\". In case of \"off\" the title of the video and other information will be hidden.\n- **width**: Default: 560. Width in pixels\n- **height**: Default: 315. Height in pixels\n\nYou can completely omit the value if it is \"on\". \"nocookie\" means the same as \"nocookie=on\"  \n\n## Examples\n\n### BB codes\n\n    [youtube showinfo=off]https://www.youtube.com/watch?v=tH2TvzgFCU0[/youtube]\n    [youtube]https://youtube.com/watch?v=tH2TvzgFCU0[/youtube]\n    [youtube]http://www.youtube.com/watch?v=tH2TvzgFCU0[/youtube]\n    [youtube]//www.youtube.com/watch?v=tH2TvzgFCU0[/youtube]\n    [youtube]https://youtu.be/tH2TvzgFCU0[/youtube]\n    [youtube]http://youtu.be/tH2TvzgFCU0[/youtube]\n    [youtube]//youtu.be/tH2TvzgFCU0[/youtube]\n    [youtube suggestions=off]tH2TvzgFCU0[/youtube]\n    [youtube width=350 height=300 nocookie controls=off]tH2TvzgFCU0[/youtube]\n    \n### Usage of the function\n\n    \u003c?php\n    use Rimelek\\YBB;\n    \n    $text = '... Here is your text containing bb codes like:     [youtube width=350 height=300 nocookie controls=off]tH2TvzgFCU0[/youtube] ... ';\n    \n    echo YBB\\ybb($text);\n    echo YBB\\ybb($text, ['nocookie' =\u003e 'on']);\n    echo YBB\\ybb($text, ['nocookie' =\u003e 'on'], ['width', 'height']);\n    \nInstead of \"on\", you can always write \"yes\", \"1\", or \"true\"\nInstead of \"off\", you can always write \"no\", \"0\" or \"false\"\n    \nRun [demo.php](demo.php) for a working demo.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frimelek%2Fybb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frimelek%2Fybb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frimelek%2Fybb/lists"}