# .HTML to .PHP Application

**URL:** https://forum.bootstrapstudio.io/t/html-to-php-application/12041
**Category:** Showcase
**Created:** [February 18, 2025, 11:26pm UTC](https://forum.bootstrapstudio.io/t/html-to-php-application/12041 "2025-02-18T23:26:49Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![catkin](https://forum.bootstrapstudio.io/user_avatar/forum.bootstrapstudio.io/catkin/32/4993_2.png) [@catkin](https://forum.bootstrapstudio.io/u/catkin)
#### Post date: [February 18, 2025, 11:26pm UTC](https://forum.bootstrapstudio.io/t/html-to-php-application/12041/1 "2025-02-18T23:26:49Z")

</div>

Hello,

As mentioned in another thread in the forums people where interested I share a application I have written that converts HTML documents to PHP. Here is the application and details.

 ![image](https://forum.bootstrapstudio.io/uploads/default/original/2X/3/3367d9401ff228d990af2267e2847add7a10c837.png)

# Features ⭐

- Allows you to write PHP in `Custom Code` tags, and convers this from HTML encoding back into plain text.
- Removes .html from all links on your page, this does require you setup an .htaccess file
- Easy file explorer to find the pages you want to convert.
- Can just strip .html from links if you choose Keep .html
- Bulk file conversion
- No technical knowledge required to setup and run the application.
- Progress bar tracks what file it is working on.
- Error reporting for if it finds issues.

# How to use the application 🎓

1. Export your design from Bootstrap Studio to one folder.
2. Open the application.
3. Click Browse.
4. Search and select the parent folder that contains your CSS, JS, Images, HTML files.
5. Click OK
6. Choose if you just want to strip .html from links by selecting Keep .html OR choose convert to .php to convert your PHP code and the file extensions into PHP.
7. Wait for the program to finish.

# Support 🔧

Please leave a message below if you have any issues, I shall be happy to assist when I have a moment. If you have feature suggestions I am willing to take them on, however please remember this is provided as is for free and developed in my spare time.

# Download

The file is provided as a .exe file, It is just a PowerShell script under the hood.

[![image|100%x58](https://forum.bootstrapstudio.io/uploads/default/original/2X/4/47a2398b1645bcab7a58c1bf34d710f5b59e4eca.png)](https://blackcloud.blackfox.it/s/y4kCb2gwqzbXDkt)

---

<div class="post-metadata">

### Author: ![kuligaposten](https://forum.bootstrapstudio.io/user_avatar/forum.bootstrapstudio.io/kuligaposten/32/1190_2.png) [@kuligaposten](https://forum.bootstrapstudio.io/u/kuligaposten)
#### Post date: [February 19, 2025, 1:20pm UTC](https://forum.bootstrapstudio.io/t/html-to-php-application/12041/2 "2025-02-19T13:20:39Z")

</div>

I have never understood why one would want to write PHP in an app that does not support PHP. Who wants to write a Laravel app with a frontend-only setup?

---

<div class="post-metadata">

### Author: ![catkin](https://forum.bootstrapstudio.io/user_avatar/forum.bootstrapstudio.io/catkin/32/4993_2.png) [@catkin](https://forum.bootstrapstudio.io/u/catkin)
#### Post date: [May 9, 2025, 10:39pm UTC](https://forum.bootstrapstudio.io/t/html-to-php-application/12041/3 "2025-05-09T22:39:45Z")

</div>

The password to download the file is: `B00tstrapStudio!`

I’ve had to add this as there’s been over 200 download attempts in the past day, and the notifications are getting annoying.

---

<div class="post-metadata">

### Author: ![stealthbusiness](https://forum.bootstrapstudio.io/user_avatar/forum.bootstrapstudio.io/stealthbusiness/32/4717_2.png) [@stealthbusiness](https://forum.bootstrapstudio.io/u/stealthbusiness)
#### Post date: [May 12, 2025, 3:32am UTC](https://forum.bootstrapstudio.io/t/html-to-php-application/12041/4 "2025-05-12T03:32:15Z")

</div>

> [@catkin](#):
>
> B00tstrapStudio!

Very Cool of you to put this together and then share it, Thank You, 😃

---

<div class="post-metadata">

### Author: ![FullStackDeveloper](https://forum.bootstrapstudio.io/letter_avatar_proxy/v4/letter/f/f4b2a3/32.png) [@FullStackDeveloper](https://forum.bootstrapstudio.io/u/FullStackDeveloper)
#### Post date: [May 21, 2025, 6:19am UTC](https://forum.bootstrapstudio.io/t/html-to-php-application/12041/5 "2025-05-21T06:19:04Z")

</div>

Why do you not configure your Webserver to run php for html extensions too?

---

<div class="post-metadata">

### Author: ![catkin](https://forum.bootstrapstudio.io/user_avatar/forum.bootstrapstudio.io/catkin/32/4993_2.png) [@catkin](https://forum.bootstrapstudio.io/u/catkin)
#### Post date: [May 21, 2025, 5:47pm UTC](https://forum.bootstrapstudio.io/t/html-to-php-application/12041/6 "2025-05-21T17:47:46Z")

</div>

1. In my opinion that’s not best practice.
2. If you use the Custom Code element in Bootstrap Studio, then export your design the PHP code is HTML encoded so doesn’t run, which is something this script fixes.

I usually use the Custom Code element to add PHP that adds the copyright year, and I include partials, like the header or footer for the pages so I can just update one file. The conversation script is intended purpose is for small things like this.

---

<div class="post-metadata">

### Author: ![FullStackDeveloper](https://forum.bootstrapstudio.io/letter_avatar_proxy/v4/letter/f/f4b2a3/32.png) [@FullStackDeveloper](https://forum.bootstrapstudio.io/u/FullStackDeveloper)
#### Post date: [May 21, 2025, 7:39pm UTC](https://forum.bootstrapstudio.io/t/html-to-php-application/12041/7 "2025-05-21T19:39:43Z")

</div>

Why should the PHP code not be executed? Of course it does if the web server executes php in html files. I have been doing this for years…

`<div><?php echo date() ?></div>`

Still, great work from you. I don’t want to badmouth it…

---

<div class="post-metadata">

### Author: ![catkin](https://forum.bootstrapstudio.io/user_avatar/forum.bootstrapstudio.io/catkin/32/4993_2.png) [@catkin](https://forum.bootstrapstudio.io/u/catkin)
#### Post date: [May 21, 2025, 8:43pm UTC](https://forum.bootstrapstudio.io/t/html-to-php-application/12041/8 "2025-05-21T20:43:29Z")

</div>

> [@FullStackDeveloper](#):
>
> Why should the PHP code not be executed? Of course it does if the web server executes php in html files. I have been doing this for years…

I was not disagreeing that it would not, nor am I disagreeing that you should not use .html files that have PHP code in them, I know you can configure a server to run PHP within a .html file. However, it is my personal preference not to do this due to the extra configuration required, its not default behaviour. Making files that run PHP code have the .php extension removes any ambiguity for what those files run, and requires no further setup for end users of the application.

If you write PHP code within bootstrap studio that is not in a custom code block, then export your design, text becomes HTML encoded, so your code becomes:

```HTML
<div>&lt;?php echo date() ?&gt;</div>

```

Hence why PHP code would not ordinarily run. The application resolves any detected HTML encoding issue if you choose to convert the files to PHP, by smartly picking out the PHP blocks from the HTML.

If you prefer working with .html files with PHP code inside them, you can rename the extensions after the conversion. Its really up to the way you wish to work on your sites.

I hope this is more clear, and I appreciate your interest.

---

<div class="post-metadata">

### Author: ![catkin](https://forum.bootstrapstudio.io/user_avatar/forum.bootstrapstudio.io/catkin/32/4993_2.png) [@catkin](https://forum.bootstrapstudio.io/u/catkin)
#### Post date: [January 21, 2026, 1:15pm UTC](https://forum.bootstrapstudio.io/t/html-to-php-application/12041/9 "2026-01-21T13:15:54Z")

</div>

[updated download link](https://blackcloud.blackfox.it/s/W9Dc93XnRBgzFMz)

---

<div class="post-metadata">

### Author: ![chlitzxer](https://forum.bootstrapstudio.io/letter_avatar_proxy/v4/letter/c/c89c15/32.png) [@chlitzxer](https://forum.bootstrapstudio.io/u/chlitzxer)
#### Post date: [February 17, 2026, 5:08pm UTC](https://forum.bootstrapstudio.io/t/html-to-php-application/12041/10 "2026-02-17T17:08:56Z")

</div>

## **Share not found**

This share does not exist or is no longer available

I appreciate if you can reupload, thanks!
