PHPackages                             spress/spress-core - 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. spress/spress-core

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

spress/spress-core
==================

Static site generator with blogs support

v2.2.0(9y ago)031MITPHPPHP &gt;=5.5

Since Jan 8Pushed 8y ago2 watchersCompare

[ Source](https://github.com/spress/Spress-core)[ Packagist](https://packagist.org/packages/spress/spress-core)[ Docs](http://spress.yosymfony.com)[ RSS](/packages/spress-spress-core/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (9)Versions (18)Used By (0)

Spress Core - PHP Static site generator
=======================================

[](#spress-core---php-static-site-generator)

[![Build Status](https://camo.githubusercontent.com/45bd29e75760b393bafaae4caa741d924c8cc20c4e4863624085f12a2fc7aa75/68747470733a2f2f7472617669732d63692e6f72672f7370726573732f7370726573732e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/spress/spress)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/83e2803a8e6a7e6d10aedbb07be553a4a5a07bc4e2c7478ce67e8353c7529b1c/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f7370726573732f7370726573732f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/spress/spress/?branch=master)[![SensioLabsInsight](https://camo.githubusercontent.com/b8d986b1cff4dd18904f6d3e708c1ede71d88a0f96d4dfc711cc62d8ae3dbe91/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f31656137396438652d383934642d346366352d386636342d6339343133373662336637372f6d696e692e706e67)](https://insight.sensiolabs.com/projects/1ea79d8e-894d-4cf5-8f64-c941376b3f77)

Spress is a static site generator built with Symfony components and Twig as default template engine. This repository is the core of Spress application.

Installation
------------

[](#installation)

Go to your app folder and input the following command:

```
composer require spress/spress-core
```

How to use?
-----------

[](#how-to-use)

The entry-point class is `Yosymfony\Spress\Core\Spress`. The below example point out how to use:

```
use Yosymfony\Spress\Core\Spress;

class MyClass
{
    public function parseSite()
    {
        $spress = new Spress();
        $spress['spress.config.site_dir'] = '/path-to-your-spress-site';
        $spress->parse();
    }
}
```

### Including draft posts

[](#including-draft-posts)

```
use Yosymfony\Spress\Core\Spress;

class MyClass
{
    public function parseSite()
    {
        $spress = new Spress();
        $spress['spress.config.site_dir'] = '/path-to-your-spress-site';
        $spress['spress.config.drafts'] = true;
        $spress->parse();
    }
}
```

### Another configuration values:

[](#another-configuration-values)

- `$spress['spress.config.env']`: Environment name `dev` by default. This option determines the configuration file in case you have a specific configuration file for that environment name. e.g: `$spress['spress.config.env'] = 'prod'`
- `$spress['spress.config.safe']`: With `true` disable all plugins. e.g: `spress['spress.config.safe'] = true`.
- `$spress['spress.config.drafts']`: Include draft posts in the transformation. `false` by default.
- `$spress['spress.config.url']`: Sets the URL base.
- `$spress['spress.config.timezone']`: Sets the timezone. E.g: "Europe/Madrid".

Unit tests
----------

[](#unit-tests)

Spress core uses [PHPUnit](https://phpunit.de) &gt;= 5.7. You can run the unit tests with the following command:

```
$ cd your-path
$ phpunit
```

License
-------

[](#license)

This library is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 98.4% 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 ~55 days

Recently: every ~71 days

Total

16

Last Release

3366d ago

Major Versions

v1.1.1 → v2.0.0-alpha2015-08-12

PHP version history (2 changes)v1.1.1PHP &gt;=5.4

v2.0.0-alphaPHP &gt;=5.5

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3321099?v=4)[Yo! Symfony](/maintainers/yosymfony)[@yosymfony](https://github.com/yosymfony)

---

Top Contributors

[![yosymfony](https://avatars.githubusercontent.com/u/3321099?v=4)](https://github.com/yosymfony "yosymfony (484 commits)")[![jjk-jacky](https://avatars.githubusercontent.com/u/1540519?v=4)](https://github.com/jjk-jacky "jjk-jacky (8 commits)")

---

Tags

phpspressstatic-site-generatorwebtwightmlmarkdowncmsblogsilex

### Embed Badge

![Health badge](/badges/spress-spress-core/health.svg)

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

###  Alternatives

[drupal/core

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

21866.0M1.7k](/packages/drupal-core)[craftcms/cms

Craft CMS

3.6k3.6M3.0k](/packages/craftcms-cms)[drupal/core-recommended

Locked core dependencies; require this project INSTEAD OF drupal/core.

6942.5M406](/packages/drupal-core-recommended)[pimcore/pimcore

Content &amp; Product Management Framework (CMS/PIM/E-Commerce)

3.8k3.8M497](/packages/pimcore-pimcore)[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M380](/packages/easycorp-easyadmin-bundle)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M552](/packages/shopware-core)

PHPackages © 2026

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