PHPackages                             casmo/backstage-static-site-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. casmo/backstage-static-site-generator

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

casmo/backstage-static-site-generator
=====================================

Static site generator for the Backstage CMS.

v0.0.2(5mo ago)21[2 PRs](https://github.com/Casmo/backstage-static-site-generator/pulls)MITPHPPHP ^8.3CI passing

Since Nov 19Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/Casmo/backstage-static-site-generator)[ Packagist](https://packagist.org/packages/casmo/backstage-static-site-generator)[ Docs](https://github.com/casmo/backstage-static-site-generator)[ GitHub Sponsors](https://github.com/Casmo)[ RSS](/packages/casmo-backstage-static-site-generator/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (15)Versions (5)Used By (0)

Static site generator for the Backstage CMS.
============================================

[](#static-site-generator-for-the-backstage-cms)

[![Latest Version on Packagist](https://camo.githubusercontent.com/7fd507230ee2f53cba0c8db323fc1cd8ab4c091687fb0837b1a9acb7b908ad83/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6361736d6f2f6261636b73746167652d7374617469632d736974652d67656e657261746f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/casmo/backstage-static-site-generator)[![Total Downloads](https://camo.githubusercontent.com/9b6a491d8d1ba556e6e285463f8539fd5f6adab1243bdc1fdd02203d58a0ce70/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6361736d6f2f6261636b73746167652d7374617469632d736974652d67656e657261746f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/casmo/backstage-static-site-generator)

Generate static versions of your [Backstage CMS](https://github.com/backstagephp/cms) websites.

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

[](#installation)

You can install the package via composer:

```
composer require casmo/backstage-static-site-generator
```

You can generate the static site by running the following command:

```
backstage:generate-static-site {--output=public/static/} {--optimize-images=true} {--minify-html=true}
```

Optimize images will resize images to max 1024 and quality to 60. Minify html will minify the html.

Github Pages
------------

[](#github-pages)

Use the following workflow to publish the static site on Github pages.

```
# Simple workflow for deploying static content to GitHub Pages
name: Deploy static content to Pages

on:
  # Runs on pushes targeting the default branch
  push:
    branches: ["gh-pages"]

  # Allows you to run this workflow manually from the Actions tab
  workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
  contents: read
  pages: write
  id-token: write

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
  group: "pages"
  cancel-in-progress: false

jobs:
  # Single deploy job since we're just deploying
  deploy:
    environment:
      name: github-pages
      url: ${{ steps.deployment.outputs.page_url }}
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v4
        with:
          ref: 'gh-pages'
      - name: Setup Pages
        uses: actions/configure-pages@v5
      - name: Upload artifact
        uses: actions/upload-pages-artifact@v3
        with:
          path: './public/static/example.com/'
      - name: Deploy to GitHub Pages
        id: deployment
        uses: actions/deploy-pages@v4
```

Replace example.com with your domain.

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

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

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Mathieu de Ruiter](https://github.com/Casmo)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

38

—

LowBetter than 84% of packages

Maintenance88

Actively maintained with recent releases

Popularity4

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 81.8% 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 ~0 days

Total

2

Last Release

171d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/496f3cdd0332a1ecdc23e82120789568b51f3a800f7a4005fa019bbef44a24bf?d=identicon)[Casmo](/maintainers/Casmo)

---

Top Contributors

[![Casmo](https://avatars.githubusercontent.com/u/385764?v=4)](https://github.com/Casmo "Casmo (9 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (1 commits)")

---

Tags

laravelMathieu de Ruiterbackstage-static-site-generator

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/casmo-backstage-static-site-generator/health.svg)

```
[![Health](https://phpackages.com/badges/casmo-backstage-static-site-generator/health.svg)](https://phpackages.com/packages/casmo-backstage-static-site-generator)
```

###  Alternatives

[spatie/laravel-data

Create unified resources and data transfer objects

1.7k28.9M626](/packages/spatie-laravel-data)[spatie/laravel-livewire-wizard

Build wizards using Livewire

4061.0M4](/packages/spatie-laravel-livewire-wizard)[hirethunk/verbs

An event sourcing package that feels nice.

513162.9k6](/packages/hirethunk-verbs)[worksome/exchange

Check Exchange Rates for any currency in Laravel.

123544.7k](/packages/worksome-exchange)[ralphjsmit/livewire-urls

Get the previous and current url in Livewire.

82270.3k4](/packages/ralphjsmit-livewire-urls)[hydrat/filament-table-layout-toggle

Filament plugin adding a toggle button to tables, allowing user to switch between Grid and Table layouts.

6292.3k1](/packages/hydrat-filament-table-layout-toggle)

PHPackages © 2026

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