Static Site Generator

PHPSSG – component-based PHP static site generator

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
HydePHPContent-first Laravel-powered static site generator
JigsawFramework for rapidly building static sites
SpressBlog-aware application that transform your plain text files in static sites
SculpinCan be used to create any type of static website
CecilSimple and powerful content-driven static site generator
CouscousTurns Markdown documentation into beautiful websites
Ata’s SSGStatic site generator for GitHub pages.
WP2StaticWordPress plugin for static site generation and deployment
CaproUses the Blade template engine
StaticForgeProcesses Markdown and HTML content files through an event-driven pipeline
CrossroadsBuilds static websites from Markdown-based content with front matter metadata
PHPSSGPersonal Home Page Static Site Generator
FreezedGenerate static sites with TYPO3 Fluid templates
BasildonBuilds sites from text content files with YAML frontmatter and body conten

Read our verdict in the software roundup.


Best Free and Open Source Software 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.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted