arefshojaei / theme-downloader
HTML Theme Downloader
Package info
github.com/ArefShojaei/Theme-downloader
Type:project
pkg:composer/arefshojaei/theme-downloader
Requires
- php: ^8.0
- arefshojaei/kitdash: ^2.0
- arefshojaei/php-x: ^1.6
- arefshojaei/spider: ^2.3
- guzzlehttp/guzzle: ^7.9
This package is auto-updated.
Last update: 2026-08-05 17:19:50 UTC
README
ðĨ Theme Downloader - SSR Rendering Model
Download your favorite HTML themes 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 theme 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/theme-downloader:dev-main my-project
Move into the project directory:
cd my-project
Clone from GitHub
git clone https://github.com/ArefShojaei/Theme-downloader.git
cd Theme-downloader
Install dependencies:
composer install
ð Quick Start
Download a single theme
Use a theme URL:
php cli theme https://example.com
Download multiple themes
Define your themes inside:
theme.config.json
Then run:
php cli theme --config
ð Downloaded Project Structure
After downloading a theme, your output will look like this:
theme/ â âââ assets/ â âââ css/ â âââ js/ â âââ fonts/ â âââ images/ â âââ index.html
The theme is now available for local development and customization.
ðĨ Preview the Downloaded Theme
For the best experience, run the theme 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 theme directory.
Method 2: PHP Built-in Web Server
Move to the downloaded theme:
cd dist/theme-name
Start the server:
php -S localhost:5200
Open your browser:
http://localhost:5200
ð§ Example Workflow
- Download a theme:
php cli theme https://my-theme.com
- Enter the generated directory:
cd dist/my-theme
- Run a local server:
php -S localhost:5200
- Customize the theme files and start development.
ð How It Works
Website URL
|
|
HTML Parser
|
|
Asset Extractor
|
|
Downloader Engine
|
|
File Organizer
|
|
Local Theme Project
ðĄ Use Cases
This project is useful for:
- Saving HTML themes for offline usage
- Creating local copies of website themes
- Learning frontend architecture
- Customizing existing themes
- Building prototypes faster
ðĨ Why Theme Downloader?
Instead of manually downloading every image, stylesheet, font, and JavaScript file, Theme 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.