PHPackages                             symplify/statie - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. symplify/statie

Abandoned → [symplify/symfony-static-dumper](/?search=symplify%2Fsymfony-static-dumper)ArchivedLibrary[Utility &amp; Helpers](/categories/utility)

symplify/statie
===============

Static Site Generator

v7.2.3(6y ago)9225.5k↑50%41MITPHPPHP ^7.2

Since Nov 9Pushed 6y ago4 watchersCompare

[ Source](https://github.com/deprecated-packages/statie)[ Packagist](https://packagist.org/packages/symplify/statie)[ GitHub Sponsors](https://github.com/tomasvotruba)[ Patreon](https://www.patreon.com/rectorphp)[ RSS](/packages/symplify-statie/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (25)Versions (236)Used By (1)

 [![](docs/logo.svg)](docs/logo.svg)

\[DEPRECATED since 2020-03\] Statie - Modern and Simple Static Site Generator in PHP
====================================================================================

[](#deprecated-since-2020-03-statie---modern-and-simple-static-site-generator-in-php)

Use [Symfony Static Dumper](https://github.com/symplify/symfony-static-dumper) instead
--------------------------------------------------------------------------------------

[](#use-symfony-static-dumper-instead)

[![Downloads](https://camo.githubusercontent.com/b77ca592c82d719449c3d47ed861a158f256097718623fbb9a6130212dabe490/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73796d706c6966792f7374617469652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/symplify/statie/stats)

Statie takes HTML, Markdown and Twig files and generates static HTML page.

Install
-------

[](#install)

```
composer require symplify/statie
```

How to Generate and See the Website?
------------------------------------

[](#how-to-generate-and-see-the-website)

1. Prepare content for Statie

```
vendor/bin/statie init
```

This will generate config, templates, layouts and gulp code, so you can enjoy live preview.

Last step is install node dependencies:

```
npm install

```

2. Generate static site from `/source` (argument) to `/output` (default value) in HTML:

```
vendor/bin/statie generate source
```

3. Run website locally

```
gulp
```

4. And see web in browser [localhost:8000](http://localhost:8000).

Do you use Jekyll or Sculpin?
-----------------------------

[](#do-you-use-jekyll-or-sculpin)

- [9 Steps to Migrate From Jekyll to Statie](https://www.tomasvotruba.com/blog/2019/01/10/9-steps-to-migrate-from-jekyll-to-statie/)
- [11 Steps to Migrate From Sculpin to Statie](https://www.tomasvotruba.com/blog/2019/01/14/11-steps-to-migrate-from-sculpin-to-statie/)

Configuration
-------------

[](#configuration)

### `statie.yml` Config

[](#statieyml-config)

This is basically Symfony Kernel `config.yml` that you know from Symfony application. You can:

- [add parameters](https://symfony.com/doc/current/service_container/parameters.html)
- [import configs](http://symfony.com/doc/current/service_container/import.html)
- [register services](https://symfony.com/doc/current/service_container.html)

```
# statie.yml
imports:
    - { resource: 'data/favorite_links.yml' }

parameters:
    site_url: 'http://github.com'
    socials:
        facebook: 'http://facebook.com/github'

services:
    App\SomeService: ~
```

Parameters are available in every template:

```
{# source/_layouts/default.twig #}

Welcome to: {{ site_url }}

Checkout my FB page: {{ socials.facebook }}
```

### Do You Write Posts?

[](#do-you-write-posts)

Create a new empty `.md` file with date, webalized title and ID:

```
vendor/bin/statie create-post "My new post"
```

Statie privides default template:

```
id: __ID__
title: "__TITLE__"
---
```

Do you want your own template? Configure path to it:

```
# statie.yaml
parameters:
    post_template_path: 'templates/my_own_post.twig'
```

That's it!

### How to Generate API?

[](#how-to-generate-api)

Statie web [Friendsofphp.org](https://friendsofphp.org/) provide info about PHP meetups and groups. They're already stored in parameters. Do you want to publish them as JSON API?

```
parameters:
    api_parameters:
        - 'groups'
        - 'meetups'
```

This will generate 2 pages:

```
/api/groups.json
/api/meetups.json
```

With parameters as JSON, that anyone can use now.

### How to Redirect old page?

[](#how-to-redirect-old-page)

```
# statie.yml
parameters:
    redirects:
        old_page: 'new_page'
        old_local_page: 'https://external-link.com'
```

### Are you Speaker? Use your JoindIn Talks

[](#are-you-speaker-use-your-joindin-talks)

```
# statie.yml
parameters:
    joind_in_username: 'tomasvotruba'
```

```
vendor/bin/statie dump-joind-in
```

This will generated `source/_data/generated/joind_in_talks.yaml` file with your talks:

```
parameters:
    joind_in_talks:
        # ...
```

Then you can use them like any other parameter in your Statie templates:

```
{% for joind_in_talk in joind_in_talks %}
    ...
{% endfor %}
```

Useful Twig Filters
-------------------

[](#useful-twig-filters)

All from [this basic set](https://latte.nette.org/en/filters) and more:

```
{% set users = sort_by_field(users, 'name') %}
{% set users = sort_by_field(users, 'name', 'desc') %}

{% set relatedPosts = related_items(post)}

{{ content|reading_time }} mins
{{ post.getRawContent|reading_time }} mins

{{ perexDeprecated|markdown }}
{% set daysToFuture = diff_from_today_in_days(meetup.startDateTime) %}

{{ post|link }}
```

Documentation
-------------

[](#documentation)

Thanks to [@crazko](https://github.com/crazko) you can enjoy neat documentation and see projects that use Statie at [statie.org](https://www.statie.org).

- [How to Tweet your Posts with Travis](/docs/tweeting.md)
- [How to Thank your Contributors](/docs/gratitude.md)

Contributing
------------

[](#contributing)

Open an [issue](https://github.com/symplify/symplify/issues) or send a [pull-request](https://github.com/symplify/symplify/pulls) to main repository.

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity39

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity78

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~5 days

Recently: every ~18 days

Total

235

Last Release

2272d ago

Major Versions

v2.5.12 → v3.0.0-RC52017-12-08

v3.2.29 → v4.0.0alpha12018-03-12

v4.8.0 → v5.0.02018-09-15

v5.4.16 → v6.0.02019-05-28

v6.1.0 → v7.0.02019-11-23

PHP version history (4 changes)v1.2.4PHP ~7.0

v1.3.3PHP ^7.0

v1.4.0PHP ^7.1

v7.0.0PHP ^7.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/924196?v=4)[Tomas Votruba](/maintainers/TomasVotruba)[@TomasVotruba](https://github.com/TomasVotruba)

---

Top Contributors

[![TomasVotruba](https://avatars.githubusercontent.com/u/924196?v=4)](https://github.com/TomasVotruba "TomasVotruba (11 commits)")

---

Tags

github-pagesphp71static-site-generatorstatie

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/symplify-statie/health.svg)

```
[![Health](https://phpackages.com/badges/symplify-statie/health.svg)](https://phpackages.com/packages/symplify-statie)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[drupal/core

Drupal is an open source content management platform powering millions of websites and applications.

19562.3M1.3k](/packages/drupal-core)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[simplesamlphp/simplesamlphp

A PHP implementation of a SAML 2.0 service provider and identity provider.

1.1k12.4M193](/packages/simplesamlphp-simplesamlphp)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)

PHPackages © 2026

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