PHPSSG, short for Personal Home Page Static Site Generator, takes a PHP-native approach to building static websites. Rather than introducing a separate template language, it uses ordinary PHP templates together with component classes.
Its rendering model separates components into different responsibilities. Renderable components work with view templates, composable components combine other elements, and buildable components can write their generated output to files. This makes the generator particularly suited to developers who prefer constructing a site through PHP objects rather than a conventional page-oriented generator.
This is free and open source software.
Key Features
- Uses ordinary PHP templates without requiring a separate template syntax.
- Invokable component classes make reusable site elements callable like regular PHP objects.
- Renderable, Composable and Buildable base classes define the main component roles.
- Components can be nested to assemble layouts and complete pages.
- Data and content can be passed into templates through component calls.
- Lifecycle hooks allow custom processing before and after important rendering stages.
- Incremental builds avoid rewriting files when their generated content has not changed.
- Uses fast content hashing to compare generated output.
- File paths and hashes can be cached on disk with attention to thread-safe access.
- Supports PHAR-based operation.
- Uses PSR-4 autoloading with Composer.
- The project structure is deliberately flexible and its defaults can be reconfigured.
- Developers can extend the supplied base classes to integrate alternative renderers and templating systems.
Website: github.com/Taujor/php-static-site-generator
Support:
Developer: Taujor
License: MIT License
PHPSSG is written in PHP. Learn PHP with our recommended free books and free tutorials.
Related Software
| PHP Static Site Generators | |
|---|---|
| HydePHP | Content-first Laravel-powered static site generator |
| Jigsaw | Framework for rapidly building static sites |
| Spress | Blog-aware application that transform your plain text files in static sites |
| Sculpin | Can be used to create any type of static website |
| Cecil | Simple and powerful content-driven static site generator |
| Couscous | Turns Markdown documentation into beautiful websites |
| Ata’s SSG | Static site generator for GitHub pages. |
| WP2Static | WordPress plugin for static site generation and deployment |
| Capro | Uses the Blade template engine |
| StaticForge | Processes Markdown and HTML content files through an event-driven pipeline |
| Crossroads | Builds static websites from Markdown-based content with front matter metadata |
| PHPSSG | Personal Home Page Static Site Generator |
| Freezed | Generate static sites with TYPO3 Fluid templates |
| Basildon | Builds sites from text content files with YAML frontmatter and body conten |
Read our verdict in the software roundup.
LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more. Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion. Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README. |


Please read our Comment Policy before commenting.