arefshojaei/template-downloader

HTML template downloader

Maintainers

Package info

github.com/ArefShojaei/Template-downloader

Type:project

pkg:composer/arefshojaei/template-downloader

Transparency log

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

dev-main 2026-06-16 15:38 UTC

This package is auto-updated.

Last update: 2026-06-16 15:38:08 UTC


README

Template Downloader

ðŸ“Ĩ Template Downloader - SSR Rendering Model

Download your favorite HTML templates from anywhere with a simple CLI command. Automatically fetch HTML pages, assets, styles, scripts, images, and organize them into a ready-to-use local project.

âœĻ Features

  • 🌐 Download any public HTML template from a URL
  • ðŸŽĻ Automatically detect and download CSS, JavaScript, fonts, and images
  • 📁 Organize assets into a clean project structure
  • ⚡ Simple CLI interface
  • ðŸ“Ķ Support bulk downloading using configuration files
  • ðŸŠķ Lightweight and built with pure PHP
  • 🚀 Ready for local development and customization

ðŸ“Ĩ Installation

Install with Composer

composer create-project arefshojaei/template-downloader:dev-main my-project

Move into the project directory:

cd my-project

Clone from GitHub

git clone https://github.com/ArefShojaei/Template-downloader.git

cd Template-downloader

Install dependencies:

composer install

🚀 Quick Start

Download a single template

Use a template URL:

php cli template https://example.com

Download multiple templates

Define your templates inside:

template.config.json

Then run:

php cli template --config

📂 Downloaded Project Structure

After downloading a template, your output will look like this:

template/
│
├── assets/
│   ├── images/
│   ├── fonts/
│   ├── scripts/
│   └── styles/
│
└── index.html

The template is now available for local development and customization.

ðŸ–Ĩ Preview the Downloaded Template

For the best experience, run the template using a local web server because some assets may require HTTP access.

Method 1: Live Server (VS Code Extension)

Install the Live Server extension and open the template directory.

Method 2: PHP Built-in Web Server

Move to the downloaded template:

cd dist/template-name

Start the server:

php -S localhost:5200

Open your browser:

http://localhost:5200

🔧 Example Workflow

  1. Download a template:
php cli template https://my-template.com
  1. Enter the generated directory:
cd dist/my-template
  1. Run a local server:
php -S localhost:5200
  1. Customize the template files and start development.

🏗 How It Works

Website URL
     |
     |
 HTML Parser
     |
     |
 Asset Extractor
     |
     |
 Downloader Engine
     |
     |
 File Organizer
     |
     |
 Local Template Project

ðŸ’Ą Use Cases

This project is useful for:

  • Saving HTML templates for offline usage
  • Creating local copies of website themes
  • Learning frontend architecture
  • Customizing existing templates
  • Building prototypes faster

ðŸ”Ĩ Why Template Downloader?

Instead of manually downloading every image, stylesheet, font, and JavaScript file, Template Downloader automates the entire process with a single command.

It saves time and provides a clean starting point for your frontend projects.

ðŸ‘Ļ‍ðŸ’ŧ Author

Aref Shojaei

⭐ Show Your Support

If this project saves your time and helps your workflow, consider giving it a Star ⭐ on GitHub.

Your support motivates future improvements.