PHPackages                             rias/craft-ssg - 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. rias/craft-ssg

ActiveCraft-plugin[Utility &amp; Helpers](/categories/utility)

rias/craft-ssg
==============

Static Site Generation for Craft CMS

1.3.2(3mo ago)7461[1 issues](https://github.com/riasvdv/craft-ssg/issues)mitPHPPHP &gt;=8.3CI failing

Since Oct 9Pushed 3mo ago3 watchersCompare

[ Source](https://github.com/riasvdv/craft-ssg)[ Packagist](https://packagist.org/packages/rias/craft-ssg)[ RSS](/packages/rias-craft-ssg/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (9)Dependencies (5)Versions (13)Used By (0)

[![](./src/icon.svg)](./src/icon.svg)

Static Site Generation
======================

[](#static-site-generation)

Static Site Generation for Craft CMS

Requirements
------------

[](#requirements)

This plugin requires Craft CMS 5.4.0 or later, and PHP 8.2 or later.

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

[](#installation)

You can install this plugin from the Plugin Store or with Composer.

#### From the Plugin Store

[](#from-the-plugin-store)

Go to the Plugin Store in your project’s Control Panel and search for “ssg”. Then press “Install”.

#### With Composer

[](#with-composer)

Open your terminal and run the following commands:

```
# go to the project directory
cd /path/to/my-project.test

# tell Composer to load the plugin
composer require rias/craft-ssg

# tell Craft to install the plugin
./craft plugin/install ssg
```

Usage
-----

[](#usage)

You can configure how SSG generates your static site through the plugin settings or the config file.

Generate your static site by running:

```
php craft ssg/static/generate
```

Events
------

[](#events)

You can listen to events and add additional functionality like this:

```
use craft\base\Event;
use rias\ssg\SSG;
use rias\ssg\events\BeforeGeneratingEvent;

Event::on(
    SSG::class,
    SSG::EVENT_BEFORE_GENERATING,
    function (BeforeGeneratingEvent $event) {
        // Your code here
    }
);
```

A list of events can be found below.

### `SSG::EVENT_BEFORE_GENERATING`

[](#ssgevent_before_generating)

This event is fired before generating a site. You can set `->isValid` to `false` on the event to cancel the generation.

### `SSG::EVENT_AFTER_GENERATING`

[](#ssgevent_after_generating)

This event is fired after generating a site.

Demo
----

[](#demo)

You can find a demo of the [europa museum demo statically generated here](https://craft-ssg.pages.dev/).

###  Health Score

43

—

FairBetter than 90% of packages

Maintenance76

Regular maintenance activity

Popularity14

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity61

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 ~64 days

Recently: every ~103 days

Total

9

Last Release

108d ago

PHP version history (2 changes)1.0.0PHP &gt;=8.2

1.3.0PHP &gt;=8.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/dbd355ba9a931da845b0c4ff59a974dab98f829d567bb8c5ff435c823dfa255e?d=identicon)[riasvdv](/maintainers/riasvdv)

---

Top Contributors

[![riasvdv](https://avatars.githubusercontent.com/u/3626559?v=4)](https://github.com/riasvdv "riasvdv (19 commits)")

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/rias-craft-ssg/health.svg)

```
[![Health](https://phpackages.com/badges/rias-craft-ssg/health.svg)](https://phpackages.com/packages/rias-craft-ssg)
```

###  Alternatives

[spicyweb/craft-neo

A Matrix-like field type with block hierarchy

393808.8k10](/packages/spicyweb-craft-neo)[craftcms/feed-me

Import content from XML, RSS, CSV or JSON feeds into entries, categories, Craft Commerce products, and more.

293943.4k27](/packages/craftcms-feed-me)[verbb/formie

The most user-friendly forms plugin for Craft.

100387.6k57](/packages/verbb-formie)[solspace/craft-freeform

The most flexible and user-friendly form building plugin!

53675.5k15](/packages/solspace-craft-freeform)[verbb/navigation

Create navigation menus for your site.

92698.4k18](/packages/verbb-navigation)[verbb/workflow

Enforce multi-step review processes for creating entries.

138123.0k1](/packages/verbb-workflow)

PHPackages © 2026

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