{"id":23129962,"url":"https://github.com/yocto/yoclib-mpegurl-php","last_synced_at":"2025-04-04T06:41:13.511Z","repository":{"id":117473473,"uuid":"346326666","full_name":"yocto/yoclib-mpegurl-php","owner":"yocto","description":"PHP yocLib for MPEGURL","archived":false,"fork":false,"pushed_at":"2021-03-17T12:56:21.000Z","size":25,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-09T17:45:42.761Z","etag":null,"topics":["hls","mpeg","mpegurl","php","yoclib"],"latest_commit_sha":null,"homepage":"https://github.com/yocto/yoclib-mpegurl-php","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yocto.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-03-10T11:06:26.000Z","updated_at":"2021-03-17T12:56:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"a344a3dd-653f-4dbb-a738-3470bcd35404","html_url":"https://github.com/yocto/yoclib-mpegurl-php","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yocto%2Fyoclib-mpegurl-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yocto%2Fyoclib-mpegurl-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yocto%2Fyoclib-mpegurl-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yocto%2Fyoclib-mpegurl-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yocto","download_url":"https://codeload.github.com/yocto/yoclib-mpegurl-php/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247135125,"owners_count":20889420,"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":["hls","mpeg","mpegurl","php","yoclib"],"created_at":"2024-12-17T10:11:34.054Z","updated_at":"2025-04-04T06:41:13.482Z","avatar_url":"https://github.com/yocto.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# yocLib - MPEGURL (PHP)\n\nThis yocLibrary enables your project to read and write MPEGURL files in PHP.\n\n## Status\n\n[![Build Status](https://travis-ci.com/yocto/yoclib-mpegurl-php.svg?branch=master)](https://travis-ci.com/yocto/yoclib-mpegurl-php)\n\n## Installation\n\n`composer require yocto/yoclib-mpegurl`\n\n## Use\n\nRead:\n```php\nuse YOCLIB\\MPEGURL\\MPEGURL;\n\n$fileContent = '';\n$fileContent .= '#EXTM3U'.\"\\r\\n\";\n$fileContent .= '#EXTINF:123,The example file'.\"\\r\\n\";\n$fileContent .= '/home/user/test.mp3'.\"\\r\\n\";\n\n$mpegurl = MPEGURL::read($fileContent);\n```\n\nWrite:\n```php\nuse YOCLIB\\MPEGURL\\MPEGURL;\nuse YOCLIB\\MPEGURL\\Lines\\Location;\nuse YOCLIB\\MPEGURL\\Lines\\Tags\\EXTINF;\nuse YOCLIB\\MPEGURL\\Lines\\Tags\\EXTMxU;\n\n$mpegurl = new MPEGURL();\n$mpegurl-\u003eaddLine(new EXTMxU());\n$mpegurl-\u003eaddLine(new EXTINF('123,The example file'));\n$mpegurl-\u003eaddLine(new Location('/home/user/test.mp3'));\n\n$fileContent = MPEGURL::write($mpegurl);\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyocto%2Fyoclib-mpegurl-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyocto%2Fyoclib-mpegurl-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyocto%2Fyoclib-mpegurl-php/lists"}