PHPackages                             drdplusinfo/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. drdplusinfo/statie

ActiveLibrary

drdplusinfo/statie
==================

Static Site Generator

v6.0.10(1y ago)043MITPHPPHP ^7.1|^8.0CI failing

Since Nov 9Pushed 1y agoCompare

[ Source](https://github.com/drdplusinfo/statie)[ Packagist](https://packagist.org/packages/drdplusinfo/statie)[ RSS](/packages/drdplusinfo-statie/feed)WikiDiscussions master Synced 6d ago

READMEChangelogDependencies (23)Versions (268)Used By (0)

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

Statie - Modern and Simple Static Site Generator in PHP
=======================================================

[](#statie---modern-and-simple-static-site-generator-in-php)

[![Build Status](https://camo.githubusercontent.com/711ac93b95cdc8dcb6596fcd2283f71de87c8e280a4dbf7a22eb03d3313e3e64/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f53796d706c6966792f5374617469652f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/Symplify/Statie)[![Downloads](https://camo.githubusercontent.com/b77ca592c82d719449c3d47ed861a158f256097718623fbb9a6130212dabe490/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73796d706c6966792f7374617469652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/symplify/statie/stats)

Statie takes HTML, Markdown and Twig or Latte 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
```

Do you prefer [Latte](https://github.com/nette/latte)?

```
vendor/bin/statie init --templating latte
```

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)

We'll help you migrate:

```
vendor/bin/statie migrate-jekyll
vendor/bin/statie migrate-sculpin
```

They will do 95 % of migration for you. If you still struggle with migration, look at:

- [9 Steps to Migrate From Jekyll to Statie](https://www.tomasvotruba.cz/blog/2019/01/10/9-steps-to-migrate-from-jekyll-to-statie/)
- [11 Steps to Migrate From Sculpin to Statie](https://www.tomasvotruba.cz/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 and Latte Filters
-----------------------------

[](#useful-twig-and-latte-filters)

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

**Twig**

```
{% 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 }}
```

**Latte**

```
{var $users = ($users|sort_by_field:'name')}
{var $users = ($users|sort_by_field:'name', 'desc')}

{var $relatedPosts = (post|related_items)}

{$content|reading_time} mins
{$post->getRawContent()|reading_time} mins

{$perexDeprecated|markdown}
{var $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

40

—

FairBetter than 88% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity88

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 90.3% 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 ~10 days

Recently: every ~371 days

Total

267

Last Release

628d ago

Major Versions

v2.5.8 → v3.0.0-RC12017-11-11

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.6.x-dev → 6.0.12020-07-31

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

v1.3.3PHP ^7.0

v1.4.0PHP ^7.1

v6.0.10PHP ^7.1|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/7e35d11c9a75584084f0dc0ba1a3b6ff03355777809cbe8eabd20a88ac00f794?d=identicon)[jaroslavtyc](/maintainers/jaroslavtyc)

---

Top Contributors

[![TomasVotruba](https://avatars.githubusercontent.com/u/924196?v=4)](https://github.com/TomasVotruba "TomasVotruba (913 commits)")[![jaroslavtyc](https://avatars.githubusercontent.com/u/2290225?v=4)](https://github.com/jaroslavtyc "jaroslavtyc (58 commits)")[![crazko](https://avatars.githubusercontent.com/u/1255989?v=4)](https://github.com/crazko "crazko (14 commits)")[![tomasfejfar](https://avatars.githubusercontent.com/u/642928?v=4)](https://github.com/tomasfejfar "tomasfejfar (6 commits)")[![enumag](https://avatars.githubusercontent.com/u/539462?v=4)](https://github.com/enumag "enumag (6 commits)")[![carusogabriel](https://avatars.githubusercontent.com/u/16328050?v=4)](https://github.com/carusogabriel "carusogabriel (5 commits)")[![jiriferkl](https://avatars.githubusercontent.com/u/23029419?v=4)](https://github.com/jiriferkl "jiriferkl (2 commits)")[![ostrolucky](https://avatars.githubusercontent.com/u/496233?v=4)](https://github.com/ostrolucky "ostrolucky (2 commits)")[![chemix](https://avatars.githubusercontent.com/u/42802?v=4)](https://github.com/chemix "chemix (1 commits)")[![RiKap](https://avatars.githubusercontent.com/u/6736715?v=4)](https://github.com/RiKap "RiKap (1 commits)")[![solcik](https://avatars.githubusercontent.com/u/1543737?v=4)](https://github.com/solcik "solcik (1 commits)")[![dg](https://avatars.githubusercontent.com/u/194960?v=4)](https://github.com/dg "dg (1 commits)")[![JanMikes](https://avatars.githubusercontent.com/u/3995003?v=4)](https://github.com/JanMikes "JanMikes (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/drdplusinfo-statie/health.svg)](https://phpackages.com/packages/drdplusinfo-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)[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)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[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)

PHPackages © 2026

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