I built a media host in one PHP file. Here's what 900 lines can do.

php dev.to

TL;DR: One index.php file. Zero dependencies. Zero database. Scales to 500k files. MIT licensed. Code on GitHub. The itch I was scratching I have a folder of MP3s I wanted to share with a small audience. Standard options were: Plex / Jellyfin → hours of Docker and configuration S3 + CloudFront → 40 AWS IAM tabs later I give up SoundCloud / YouTube → not self-hosted, algorithmic control WordPress + plugin → bloat, database, security patches forever I just wanted: "upload

Read Full Tutorial open_in_new
arrow_back Back to Tutorials