arefshojaei / template-downloader
HTML template downloader
Package info
github.com/ArefShojaei/Template-downloader
Type:project
pkg:composer/arefshojaei/template-downloader
Requires
- php: ^8.2
- arefshojaei/php-x: ^1.6
- arefshojaei/spider: ^2.3
- guzzlehttp/guzzle: ^7.9
This package is auto-updated.
Last update: 2026-06-16 15:38:08 UTC
README
ðĨ 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
- Download a template:
php cli template https://my-template.com
- Enter the generated directory:
cd dist/my-template
- Run a local server:
php -S localhost:5200
- 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
- GitHub: https://github.com/ArefShojaei
â 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.