A modern, user-friendly YouTube video downloader with a sleek UI built using PHP, JavaScript, and Tailwind CSS. Download YouTube videos in various formats (MP4/MP3) with different quality options.
Clone the repository:
git clone https://github.com/jk08y/smart-yt-downloader.git
cd smart-yt-downloader
Install PHP dependencies:
composer install
Install youtube-dl:
# On Ubuntu/Debian
sudo apt update
sudo apt install youtube-dl
# On MacOS
brew install youtube-dl
# On Windows (using Chocolatey)
choco install youtube-dl
Install ffmpeg:
# On Ubuntu/Debian
sudo apt install ffmpeg
# On MacOS
brew install ffmpeg
# On Windows (using Chocolatey)
choco install ffmpeg
Set up directory permissions:
chmod 755 downloads/
chmod 755 downloads/temp/
Configure your web server to point to the project directory.
Modify php/config.php
to adjust settings if needed:
// Maximum file lifetime before cleanup
define('FILE_LIFETIME', 3600); // 1 hour in seconds
// Memory limit
ini_set('memory_limit', '512M');
Ensure the following directories exist and are writable:
/downloads
/downloads/temp
To modify the UI or add features:
css/style.css
js/script.js
php/
directorygit checkout -b feature/improvement
)git commit -am 'Add new feature'
)git push origin feature/improvement
)This project is licensed under the MIT License - see the LICENSE file for details.
This tool is for educational purposes only. Please respect YouTube's terms of service and content creators' rights when using this application.
If you encounter any issues or have questions, please open an issue.