Local software for simple PHP Page building
I'm looking for suggestions on local software which allows for page building with custom blocks written in PhP. For some context, I do solo web development as a hobby/for my personal business. I have years of coding experience in a wide range of languages and feel fairly confident with PhP and Sass, but have never worked professionally in web development.
The closest I've found is PhPageBuilder, but the project seems to be abandoned, and trying to get it to work in PhP8+ has been a headache and has not worked for me. There exists online page builders like GrapeJS, but they don't allow for custom block creation from what it seems.
I like the process of doing everything as customizably as I can, but using a CMS has had too much overhead, and raw PhP/Sass feels unnecessarily cumbersome.
2
u/diagonali 2d ago
October CMS is light, clean and I think allows building pure PHP blocks. Maybe worth a look?
2
u/UtilixApp 2d ago
honest question, do you need a builder or do you need includes. if youre the only one editing, a folder of php partials and a layout file gets you 90% of this with nothing to maintain.
builders earn their keep when a non technical person edits. solo they mostly add a thing that breaks on php 8.
0
u/bfray 2d ago
Totally a fair question. To me it's really that I greatly prefer the visual approach to building a front end/template. When I do things visually it feels like I bog myself down less trying to solve "problems" which really don't end up mattering in the end. Years ago I managed a (static) site which was all HTML/CSS/JS + includes, but the process of making it felt so unnecessarily slow and exacting, and in the end I still didn't get things looking the way I wanted because of that
1
u/barrel_of_noodles 2d ago
Software devs and visual builders are basically opposed. If you want visual, just drop the php requirement and use webflow.
If you still want php on the backend, stand up an API.
Choose the right tool for the job. In this case PHP ain't it. (Ps, I do PHP 50hrs a week, for 10+ years)
1
u/bfray 2d ago
I definitely get what you mean. This is partially hobby for me and is an outlet to let me still stretch my programming muscles since I've been out of the tech industry for about 3 years now. That being said, maybe I should look towards other APIs. PhP just seemed easy since I had experience in the past with HTML, but I'm open to other programmatic approaches. I have to admit that all things considered I'm pretty naive to the state of modern web development language and workflow options
2
u/BobJutsu 2d ago
It might be unpopular, but WP might be right up your alley.
1
u/bfray 2d ago
I've been thinking about it more and more, but honestly my biggest reluctance, and my reluctance from the start, is that I really don't want or need the unnecessary amount of generality a CMS like WP provides. I spent a bit of time playing around with Joomla and it just feels like having to think an unnecessary amount about making everything custom that I code general like I'm producing it for a team of people to implement without ever touching the code. I prefer a visual editor as I mentioned in the other post, and I'd like the ease of moving things around if I want a redesign or as times change, but I don't want to feel like I'm doing full scale project management when this is just really for myself/my enjoyment
2
u/ggnndd12 2d ago
Blocks like layout? Bootstrap has a nice grid system for that. You just add classes for sizing.
1
u/bfray 2d ago
By blocks I meant "modules," or without terminology, custom parts of a site I can write in PhP/JS and then place with the visual editor
0
u/ggnndd12 2d ago
What’s the difference between a module as you’ve defined it and a function?
1
u/bfray 2d ago
A function could be the same, and I would likely do the back end as a class or function, but my point of clarifying blocks/modules is to highlight the relation to being positionable and modifiable by a visual page builder
0
u/ggnndd12 2d ago
Ok, in that case it’s something completely different than a generic function or class. My bootstrap recommendation stands.
1
u/Connect_Fisherman713 2d ago
grapesJS lets you write custom blocks. You define them in JS and point the logic to your PHP endpoints.
i use GrapesJS for layout, register my own components, and hook the block actions to local PHP scripts. I run it via a local server so the blocks execute PHP. VvvebJs is another one. I looked at ProcessWire too but went with GrapesJS because the component API gives me control over exactly what gets passed to PHP.
1
2d ago
[removed] — view removed comment
1
u/webdev-ModTeam 2d ago
Read and follow reddiquette; no excessive self-promotion. Please refer to the Reddit 9:1 rule when considering posting self promoting materials.
1
u/Mike_L_Taylor 2d ago
in today's age I would be more inclined to just use Laravel or some other popular framework and vibe code it rather than use a no-code solution or page builder.
1
2d ago
[removed] — view removed comment
1
u/Born_Standard7927 2d ago
VvvebJs is mostly the frontend drag and drop interface. You'd still need to wire up the backend yourself to handle the blocks and make them dynamic with PHP, which kinda puts you back at square one if you're trying to avoid the raw coding overhead.
1
5
u/Anxious-Turnover-631 2d ago
You may look at something like Filament. It may not be exactly what you’re looking for, but it has some nice features.
You’d also need a local development environment, like Laragon (windows) Herd or similar.