{"id":14036784,"url":"https://github.com/onigetoc/m3u8-PHP-Parser","last_synced_at":"2025-07-27T04:31:59.188Z","repository":{"id":145276491,"uuid":"101823120","full_name":"onigetoc/m3u8-PHP-Parser","owner":"onigetoc","description":"PHP m3u / m3u8 Parser to JSON","archived":false,"fork":false,"pushed_at":"2023-02-26T18:48:23.000Z","size":24,"stargazers_count":63,"open_issues_count":2,"forks_count":41,"subscribers_count":9,"default_branch":"master","last_synced_at":"2024-08-13T03:05:46.197Z","etag":null,"topics":["m3u-parser","m3u8","m3u8-parser","php-m3u"],"latest_commit_sha":null,"homepage":"http://tvcast.top","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/onigetoc.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,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2017-08-30T01:22:57.000Z","updated_at":"2024-06-06T16:26:26.000Z","dependencies_parsed_at":"2023-05-04T10:01:08.245Z","dependency_job_id":null,"html_url":"https://github.com/onigetoc/m3u8-PHP-Parser","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/onigetoc%2Fm3u8-PHP-Parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onigetoc%2Fm3u8-PHP-Parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onigetoc%2Fm3u8-PHP-Parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onigetoc%2Fm3u8-PHP-Parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/onigetoc","download_url":"https://codeload.github.com/onigetoc/m3u8-PHP-Parser/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227762260,"owners_count":17815997,"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":["m3u-parser","m3u8","m3u8-parser","php-m3u"],"created_at":"2024-08-12T03:02:13.777Z","updated_at":"2024-12-02T16:30:34.028Z","avatar_url":"https://github.com/onigetoc.png","language":"PHP","funding_links":[],"categories":["PHP"],"sub_categories":[],"readme":"# m3u8 / m3u PHP Parser\n\nm3u PHP Parser.m3u8 parser to json\n\n## How to use it? (With or without callback)\n\n`/m3u-parser.php?callback=jQuery112403360297908445591\u0026url=https://bit.ly/IPTVLIVE`\n\n`/m3u-parser.php?url=https://raw.githubusercontent.com/onigetoc/m3u8-PHP-Parser/master/ressources/demofile.m3u`\n\nMarkdown created with [Editconvert](http://codesniff.com/editconvert/)\n\n## Result for m3u-parser.php\n\n```json\n{\n  \"list\": {\n    \"service\": \"iptv\",\n    \"title\": \"iptv\",\n    \"item\": [\n      {\n        \"service\": \"iptv\",\n        \"title\": \"Rrokum\",\n        \"playlistURL\": \"https://raw.githubusercontent.com/onigetoc/m3u8-PHP-Parser/master/ressources/demofile.m3u\",\n        \"media_url\": \"http://82.114.65.202:1935/live/rrokumtv/playlist.m3u8\",\n        \"url\": \"http://82.114.65.202:1935/live/rrokumtv/playlist.m3u8\",\n        \"id\": \"RrokumTV.al\",\n        \"aspect-ratio\": \"16:9\",\n        \"author\": \"RrokumTV.al\",\n        \"language\": \"Albanian/Kosovo\",\n        \"country\": \"KS\",\n        \"thumb_square\": \"https://2.bp.blogspot.com/-adXhlGiHqxw/WSGCBl9Y8LI/AAAAAAAAD5Q/-t48sLv989Uxb5hgB0b38QlfTdoAE576ACLcB/s1600/tvrrokum.png\",\n        \"group\": \"TVSHQIP\"\n      },\n     {\n        \"service\": \"iptv\",\n        \"title\": \"JTV\",\n        \"playlistURL\": \"https://raw.githubusercontent.com/onigetoc/m3u8-PHP-Parser/master/ressources/demofile.m3u\",\n        \"media_url\": \"http://84.20.77.50:554/live/rtmp.stream/playlist.m3u8\",\n        \"url\": \"http://84.20.77.50:554/live/rtmp.stream/playlist.m3u8\",\n        \"id\": \"TVJUG.AL\",\n        \"author\": \"TVJUG.AL\",\n        \"language\": \"Albanian/Kosovo\",\n        \"country\": \"AL\",\n        \"thumb_square\": \"https://4.bp.blogspot.com/-LXFMStwz6tI/WSGLzk0QgVI/AAAAAAAAD6I/T-rFp4KD_c4zbCRN9hGrjy_jS2nmXgPJwCLcB/s1600/tvjug.png\",\n        \"group\": \"TVSHQIP\"\n      }\n    ]\n  }\n}\n```\n\n## Result for m3u-parser-simple.php\n\n```json\n[\n  {\n    \"id\": 1,\n    \"tvtitle\": \"Newsmax TV\",\n    \"tvmedia\": \"http://nmxlive.akamaized.net/hls/live/529965/Live_1/index.m3u8\",\n    \"tvname\": \"Newsmax TV\",\n    \"tvlanguage\": \"English\",\n    \"tvcountry\": \"US\",\n    \"tvid\": \"Newsmax-TV\",\n    \"tvlogo\": \"http://i.imgur.com/Twkovic.gif\",\n    \"tvgroup\": \"Entertainment\"\n  },\n  {\n    \"id\": 2,\n    \"tvtitle\": \"Infowars Live\",\n    \"tvmedia\": \"http://infowarslive-lh.akamaihd.net/i/infowarslivestream_1@353459/index_800_av-p.m3u8\",\n    \"tvlogo\": \"http://i.imgur.com/ODIWC6n.jpg\",\n    \"tvname\": \"Infowars\",\n    \"tvid\": \"Infowars\",\n    \"tvgroup\": \"News\"\n  },\n]\n```\n\n#### I used M3U8 PHP Parser on my website to load and play multiple IPTV Playlists (With ajax) and with my Videojs [videojs-unmute](https://github.com/onigetoc/videojs-unmute) plugin to mute \u0026 unmute autoplayed video.\nLive Demo: [hlsiptv.com](https://hlsiptv.com/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonigetoc%2Fm3u8-PHP-Parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fonigetoc%2Fm3u8-PHP-Parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonigetoc%2Fm3u8-PHP-Parser/lists"}