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 2w ago

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 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity73

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

1880d 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://avatars.githubusercontent.com/u/743846?v=4)[schorn.io](/maintainers/schornio)[@schornio](https://github.com/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.9k](/packages/craftcms-cms)[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.6k38.2k](/packages/matomo-matomo)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k496.1k33](/packages/neuron-core-neuron-ai)[modx/revolution

MODX Revolution is a Content Management System

1.4k9.4k12](/packages/modx-revolution)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3661.2M46](/packages/tencentcloud-tencentcloud-sdk-php)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

252.5k](/packages/eslazarev-wildberries-sdk)

PHPackages © 2026

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