PHP Includes Support in Bootstrap Studio

Bootstrap Studio has become such a time saver, but I am having issues including PHP. I rely on PHP includes to manage dynamic elements like headers and footers while also allowing each page to have SEO-friendly content (custom meta tags and titles).

Currently, I have to export the project, manually convert the static HTML into PHP, and reapply includes every time I update the design. This can be quite tedious, so it would be amazing if Bootstrap Studio could support PHP. This would also help with compatibility when I bring such files back into Bootstrap Studio to make changes.

This was asked a little while ago in this forum: PHP - before page header and anything else so I was looking for an update on this.

Thank you!

Bootstrap Studio is a frontend tool, I believe this is not going to happen. This has been asked before I guess.

Martin has said in other posts the PHP support will never be added to Bootstrap Studio.

Hey @Andrea,

I can send you a PowerShell application I made with a GUI that converts your .html files into PHP.

I often use PHP to add the copyright year to my sites, so I add the PHP in the Custom Code block, then once it’s converted to PHP it works on my hosting.

1 Like

Thank you for your comments, I understand that PHP will never be supported. Would have helped but still not a major issue.

Hey @catkin, that would be greatly appreciated if you could send it.

Hi, I’m also interested in your PowerShell application.
And thank you for your benevolent activity on this forum.

You may hire backend developer :blush:. I show you a sample output from BSS converted to dynamic website using Codeigniter.

https://riflex.21owl.com/login

Hello @Andrea and @JCWEB

I created a new post for the PowerShell script, I am sorry for not posting it sooner - but I wanted to improve the UI and make it more accessible by converting it to a .exe application.

1 Like

Thank you for your help @catkin, your program is incredibly useful and I appreciate you sharing it!

1 Like
  1. is this for custom one php file per page?
  2. or more like as view layer on MVC pattern framework(laravel, codeignigter or symfony)?

if you want for 1), then extending bss with export script(eg. Powershell), is the quickest way…

if 2) however, using library (eg. chokidar) that watches directory will perform better(no script call each time you export), you can also combine them with dom parser library(domino) for better output control…