PHPackages                             arefshojaei/template-downloader - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. arefshojaei/template-downloader

ActiveProject[Utility &amp; Helpers](/categories/utility)

arefshojaei/template-downloader
===============================

HTML template downloader

00PHP

Since Jun 16Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/ArefShojaei/Template-downloader)[ Packagist](https://packagist.org/packages/arefshojaei/template-downloader)[ RSS](/packages/arefshojaei-template-downloader/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependenciesVersions (1)Used By (0)

 [![Template Downloader](docs/thumbnail.png)](docs/thumbnail.png)📥 Template Downloader - SSR Rendering Model
===========================================

[](#-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
----------

[](#-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
--------------

[](#-installation)

### Install with Composer

[](#install-with-composer)

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

Move into the project directory:

```
cd my-project
```

---

Clone from GitHub
-----------------

[](#clone-from-github)

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

cd Template-downloader
```

Install dependencies:

```
composer install
```

---

🚀 Quick Start
-------------

[](#-quick-start)

### Download a single template

[](#download-a-single-template)

Use a template URL:

```
php cli template https://example.com
```

---

### Download multiple templates

[](#download-multiple-templates)

Define your templates inside:

```
template.config.json
```

Then run:

```
php cli template --config
```

---

📂 Downloaded Project Structure
------------------------------

[](#-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
---------------------------------

[](#-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)

[](#method-1-live-server-vs-code-extension)

Install the **Live Server** extension and open the template directory.

---

### Method 2: PHP Built-in Web Server

[](#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
------------------

[](#-example-workflow)

1. Download a template:

```
php cli template https://my-template.com
```

2. Enter the generated directory:

```
cd dist/my-template
```

3. Run a local server:

```
php -S localhost:5200
```

4. Customize the template files and start development.

---

🏗 How It Works
--------------

[](#-how-it-works)

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

---

💡 Use Cases
-----------

[](#-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?
--------------------------

[](#-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
----------

[](#‍-author)

**Aref Shojaei**

- GitHub:

---

⭐ Show Your Support
-------------------

[](#-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.

###  Health Score

20

—

LowBetter than 12% of packages

Maintenance61

Regular maintenance activity

Popularity0

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity11

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/ab587c1a6f8067452db012ede97d8f6c2b7362c4442ddc95d798d81e8922dc67?d=identicon)[ArefShojaei](/maintainers/ArefShojaei)

---

Top Contributors

[![ArefShojaei](https://avatars.githubusercontent.com/u/134844185?v=4)](https://github.com/ArefShojaei "ArefShojaei (15 commits)")

---

Tags

assetextract-datahtmlresourcesourcetemplatetheme

### Embed Badge

![Health badge](/badges/arefshojaei-template-downloader/health.svg)

```
[![Health](https://phpackages.com/badges/arefshojaei-template-downloader/health.svg)](https://phpackages.com/packages/arefshojaei-template-downloader)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
