smart-yt-downloader Tailwind Templates

Smart Yt Downloader

The Smart YouTube Downloader is a modern, user-friendly web application that enables fast and easy downloading of YouTube videos and audio in multiple formats (MP4 and MP3). Built with PHP, JavaScript, and Tailwind CSS

Smart YouTube Downloader ๐ŸŽฅ

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.

Screenshot

Smart YT Downloader Interface

โœจ Features

  • ๐Ÿ“ฑ Responsive, modern UI design
  • ๐ŸŽฅ Support for multiple video formats (MP4 720p/1080p)
  • ๐ŸŽต Audio extraction (MP3 192kbps/320kbps)
  • โšก Fast download speeds
  • ๐Ÿ“Š Real-time progress tracking
  • ๐Ÿ›ก๏ธ Error handling and validation
  • ๐Ÿงน Automatic cleanup of old downloads

๐Ÿ”ง Prerequisites

  • PHP >= 7.4
  • Composer
  • youtube-dl
  • ffmpeg (for audio conversion)
  • Web server (Apache/Nginx)

๐Ÿ“ฆ Installation

  1. Clone the repository:

    git clone https://github.com/jk08y/smart-yt-downloader.git
    cd smart-yt-downloader
    
  2. Install PHP dependencies:

    composer install
    
  3. 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
    
  4. Install ffmpeg:

    # On Ubuntu/Debian
    sudo apt install ffmpeg
    
    # On MacOS
    brew install ffmpeg
    
    # On Windows (using Chocolatey)
    choco install ffmpeg
    
  5. Set up directory permissions:

    chmod 755 downloads/
    chmod 755 downloads/temp/
    
  6. Configure your web server to point to the project directory.

โš™๏ธ Configuration

  1. 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');
    
  2. Ensure the following directories exist and are writable:

    /downloads
    /downloads/temp
    

๐Ÿš€ Usage

  1. Access the application through your web browser
  2. Paste a YouTube URL into the input field
  3. Select your desired format and quality
  4. Click "Start Download" and wait for the process to complete
  5. The file will automatically download once ready

๐Ÿ’ป Development

To modify the UI or add features:

  1. CSS modifications can be made in css/style.css
  2. JavaScript logic is in js/script.js
  3. PHP backend code is in the php/ directory

๐Ÿ” Security Considerations

  • The application implements file cleanup to prevent storage issues
  • Input validation is performed on both client and server side
  • Downloaded files are stored with sanitized filenames
  • Temporary files are automatically removed

๐Ÿค Contributing

  1. Fork the repository
  2. Create a new branch (git checkout -b feature/improvement)
  3. Commit your changes (git commit -am 'Add new feature')
  4. Push to the branch (git push origin feature/improvement)
  5. Create a Pull Request

๐Ÿ“ License

This project is licensed under the MIT License - see the LICENSE file for details.

๐Ÿ™ Acknowledgments

โš ๏ธ Disclaimer

This tool is for educational purposes only. Please respect YouTube's terms of service and content creators' rights when using this application.

๐Ÿ“ž Support

If you encounter any issues or have questions, please open an issue.

Lets connect

Top categories

Loading Svelte Themes