PHPackages                             schornio/static-website-generator - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Templating &amp; Views](/categories/templating)
4. /
5. schornio/static-website-generator

ActiveLibrary[Templating &amp; Views](/categories/templating)

schornio/static-website-generator
=================================

Generates files from Handlebar-Templates on the server

v5.4.0(5y ago)0110[3 PRs](https://github.com/schornio/static-website-generator/pulls)MITPHP

Since Jan 5Pushed 3y agoCompare

[ Source](https://github.com/schornio/static-website-generator)[ Packagist](https://packagist.org/packages/schornio/static-website-generator)[ RSS](/packages/schornio-static-website-generator/feed)WikiDiscussions master Synced yesterday

READMEChangelog (10)Dependencies (4)Versions (37)Used By (0)

SchornIO\\StaticWebsiteGenerator
================================

[](#schorniostaticwebsitegenerator)

```
composer require schornio/static-website-generator

```

Scripts
-------

[](#scripts)

- **sio-swg-compile**: compiles `./components` to stdout php-script
- **sio-swg-generator**: each component has the opportunity to run a script at render time (`generator.php`, `function _generator ()`)
- **sio-swg-render**: overwrites `./dist` with given Storyblok content

Handlebar helpers
-----------------

[](#handlebar-helpers)

- `echo`
- `join`
- `replace`
- `toJSON`
- `toAlphaNum`
- `equal`
- `switch`
- `case`
- `split`
- `useDynamic`
- `markdown`
- `getStory`
- `getStories`
- `getCurrentStory`
- `url`
- `resize`
- `resolveSlug`
- `textToSlug`
- `isActiveStory`
- `renderTimestamp`
- `formatDate`
- `storyblokToken`
- (`storyblokBridge`)

Image Processor must be located at `public/images`
--------------------------------------------------

[](#image-processor-must-be-located-at-publicimages)

```
RewriteCond %{REQUEST_URI} ^/public/images/.+
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^.*$ public/imageProcessor.php [L]

```

Difference between static (`.html`) and dynamic (`.php`) content
----------------------------------------------------------------

[](#difference-between-static-html-and-dynamic-php-content)

The hbs-helper `{{useDynamic}}` markes a template as dynamic content. If at least one template in the render-chain is marked as dynamic then the resulting file will end in `.php` instead of `.html`.

```
{{useDynamic}}

```

Special slug `--fileextension-`
-------------------------------

[](#special-slug---fileextension-)

If a slug contains `(filename)--fileextension-(extension)` the file will be stored as `(filename).(extension)`. Eg `sitemap--fileextension-xml` will be converted to `sitemap.xml`

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity72

Established project with proven stability

 Bus Factor1

Top contributor holds 66.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~26 days

Total

33

Last Release

1833d ago

Major Versions

v1.8.0 → v2.0.02019-02-17

v2.4.0 → v3.0.02019-06-08

v3.1.1 → v4.0.02019-12-01

v4.1.0 → v5.0.02020-01-26

### Community

Maintainers

![](https://www.gravatar.com/avatar/0145f5e073e995187b4744003e6c1265761c3c53c9ef8b3c37e48fc38af51639?d=identicon)[schornio](/maintainers/schornio)

---

Top Contributors

[![npeham](https://avatars.githubusercontent.com/u/29887207?v=4)](https://github.com/npeham "npeham (2 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")

### Embed Badge

![Health badge](/badges/schornio-static-website-generator/health.svg)

```
[![Health](https://phpackages.com/badges/schornio-static-website-generator/health.svg)](https://phpackages.com/packages/schornio-static-website-generator)
```

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M2.6k](/packages/craftcms-cms)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[modx/revolution

MODX Revolution is a Content Management System

1.4k9.1k12](/packages/modx-revolution)[rareloop/lumberjack-core

A powerful MVC framework for the modern WordPress developer. Write better, more expressive and easier to maintain code

42155.0k19](/packages/rareloop-lumberjack-core)[sitegeist/fluid-styleguide

Living styleguide for Fluid Components

16227.4k1](/packages/sitegeist-fluid-styleguide)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
