athlon1600/youtube-downloader
Pure-PHP YouTube downloader library that fetches direct stream links (audio-only and combined audio+video) without shelling out to youtube-dl or using JS interpreters. Simple API: getDownloadLinks() and pick the best format URL.
VideoInfo and DownloadOptions.JsonObject class and structured responses.SignatureLinkParser for reliable downloads.SplitStream removed, reducing attack surface.YouTubeStreamer for low-latency playback in internal applications (e.g., training portals, customer support tools).Adopt When:
yt-dlp or youtube-dl).VideoInfo, DownloadOptions) for programmatic processing, not just raw URLs.setCookieFile() or setUserAgent().Look Elsewhere When:
yt-dlp or youtube-dl instead.yt-dlp or youtube-dl with custom wrappers.For Executives: *"This package lets us programmatically download YouTube videos directly from our PHP/Laravel apps—no external APIs, no shell commands, and no JavaScript dependencies. It’s MIT-licensed, actively maintained, and type-safe, reducing technical debt while enabling features like:
For Engineers:
*"This is a modern, pure-PHP alternative to youtube-dl with key advantages:
DownloadOptions and VideoInfo objects for easy processing (e.g., extracting metadata or choosing formats).YouTubeStreamer for low-latency playback.
Trade-offs:yt-dlp or custom scrapers."*How can I help you explore Laravel packages today?