PHPackages                             leonstafford/static-html-output - 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. leonstafford/static-html-output

ActiveWordpress-plugin

leonstafford/static-html-output
===============================

WordPress Static HTML Output Plugin.

6.6.23(5y ago)1283235[68 issues](https://github.com/WP2Static/static-html-output/issues)[3 PRs](https://github.com/WP2Static/static-html-output/pulls)UNLICENSEPHPPHP &gt;=7.3

Since Jun 27Pushed 3y ago7 watchersCompare

[ Source](https://github.com/WP2Static/static-html-output)[ Packagist](https://packagist.org/packages/leonstafford/static-html-output)[ Docs](https://statichtmloutput.com)[ RSS](/packages/leonstafford-static-html-output/feed)WikiDiscussions develop Synced 4d ago

READMEChangelog (10)Dependencies (12)Versions (27)Used By (0)

Static HTML Output
==================

[](#static-html-output)

[![CircleCI](https://camo.githubusercontent.com/c44130233a806fc9f1460188e75231a3614ff390a884c22d40ee06b2214d3f43/68747470733a2f2f636972636c6563692e636f6d2f67682f6c656f6e73746166666f72642f7374617469632d68746d6c2d6f75747075742e7376673f7374796c653d737667)](https://circleci.com/gh/leonstafford/static-html-output)[![Packagist](https://camo.githubusercontent.com/62ca449db56cc59fd1a94d7f6bf2f01df2f44e77b1667057c20015e340544d73/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c656f6e73746166666f72642f7374617469632d68746d6c2d6f75747075742e7376673f636f6c6f723d323339393232267374796c653d706f706f7574)](https://packagist.org/packages/leonstafford/static-html-output)[![PHPStan](https://camo.githubusercontent.com/c961f520ec74aa0d9e60565e511aebb1c4930b5a0ea635e9be3e99bf562be287/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048505374616e2d656e61626c65642d323339393232)](https://github.com/phpstan/phpstan)

WordPress plugin to generate a static copy of your site and deploy to GitHub Pages, S3, Netlify, etc. Increase security, pageload speed and hosting options. Connect WordPress into your CI/CD workflow.

### Other WordPress SSGs I mantain

[](#other-wordpress-ssgs-i-mantain)

- [WP2Static](https://github.com/WP2Static/wp2static)
- [SimplerStatic](https://github.com/WP2Static/simplerstatic)
- [Homepage](https://statichtmloutput.com)
- [Documentation](https://statichtmloutput.com/docs/)
- [Support Forum](https://www.staticword.press/c/wordpress-static-site-generators/static-html-output/7)

WP-CLI commands
---------------

[](#wp-cli-commands)

- `wp statichtmloutput COMMAND`

Where `COMMAND` can be any of:

- `options`
- `generate`
- `deploy`
- `deploy_cache`

Get help for any command by appending `--help`

Hooks
-----

[](#hooks)

### Modify the initial list of URLs to crawl

[](#modify-the-initial-list-of-urls-to-crawl)

- `statichtmloutput_modify_initial_crawl_list`
- Filter hook

*signature*

```
apply_filters(
    'statichtmloutput_modify_initial_crawl_list',
    $url_queue
);
```

*example usage*

```
function add_additional_urls( $url_queue ) {
    $additional_urls = [
        'http://mydomain.com/custom_link_1/',
        'http://mydomain.com/custom_link_2/',
    ];

    $url_queue = array_merge(
        $url_queue,
        $additional_urls
    );

    return $url_queue;
}

add_filter( 'statichtmloutput_modify_initial_crawl_list', 'add_additional_urls' );
```

### Post-deployment hook

[](#post-deployment-hook)

- `statichtmloutput_post_deploy_trigger`
- Action hook

*signature*

```
do_action(
  'statichtmloutput_post_deploy_trigger',
  $archive
);
```

*example usage*

```
function printArchiveInfo( $archive ) {
    error_log( print_r( $archive, true ) );
}

add_filter( 'statichtmloutput_post_deploy_trigger', 'printArchiveInfo' );
```

*example response*

```
Archive Object
(
    [settings] => Array
        (
            [selected_deployment_option] => github
            [baseUrl] => https://leonstafford.github.io/demo-site-wordpress-static-html-output/
            [wp_site_url] => http://example.test/
            [wp_site_path] => /srv/www/example.com/current/web/wp/
            [wp_uploads_path] => /srv/www/example.com/current/web/app/uploads
            [wp_uploads_url] => http://example.test/app/uploads
            [wp_active_theme] => /wp/wp-content/themes/twentyseventeen
            [wp_themes] => /srv/www/example.com/current/web/app/themes
            [wp_uploads] => /srv/www/example.com/current/web/app/uploads
            [wp_plugins] => /srv/www/example.com/current/web/app/plugins
            [wp_content] => /srv/www/example.com/current/web/app
            [wp_inc] => /wp-includes
            [crawl_increment] => 1
        )

    [path] => /srv/www/example.com/current/web/app/uploads/wp-static-html-output-1547668758/
    [name] => wp-static-html-output-1547668758
    [crawl_list] =>
    [export_log] =>
)

```

Contributing / development
--------------------------

[](#contributing--development)

Contributions are very much welcome! Please don't be intimidated to file an issue, create a Pull Request or email me (Leon) .

### Developing

[](#developing)

- `git clone git@github.com:WP2Static/static-html-output.git`
- `cd static-html-output`
- `composer install`
- `composer test`
- `composer coverage` (optional coverage generation, requires [Xdebug](https://xdebug.org))

### Building an install .zip file

[](#building-an-install-zip-file)

- `composer build INSTALLER_FILENAME`

This will create the installer and place in your `$HOME/Downloads` directory.

On Windows, you will need the `zip` utility available to build an installer. I recommend using Git Bash shell and then manually installing the zip utility as per [these instructions](https://stackoverflow.com/a/55749636/1668057)

### Localisation / translations

[](#localisation--translations)

Localisation within the plugin isn't supported. Rather, it's recommended to use a browser extension if you need help translating the UI or you can run our documentation pages through any translation service.

Support
-------

[](#support)

Please [raise an issue](https://github.com/WP2Static/static-html-output/issues/new) here on GitHub or on the plugin's [support forum](https://forum.wp2static.com).

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance9

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community26

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 95.5% 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 ~13 days

Recently: every ~38 days

Total

15

Last Release

2006d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2d907fff87e1c39ba7025379dbe0218b62a52da4e0d0561bbb34596623257438?d=identicon)[ljsdotdev](/maintainers/ljsdotdev)

---

Top Contributors

[![leonstafford](https://avatars.githubusercontent.com/u/2066833?v=4)](https://github.com/leonstafford "leonstafford (707 commits)")[![crstauf](https://avatars.githubusercontent.com/u/4573033?v=4)](https://github.com/crstauf "crstauf (5 commits)")[![Semonxue](https://avatars.githubusercontent.com/u/372518?v=4)](https://github.com/Semonxue "Semonxue (5 commits)")[![szepeviktor](https://avatars.githubusercontent.com/u/952007?v=4)](https://github.com/szepeviktor "szepeviktor (4 commits)")[![patrickdk77](https://avatars.githubusercontent.com/u/8078633?v=4)](https://github.com/patrickdk77 "patrickdk77 (3 commits)")[![AyFun](https://avatars.githubusercontent.com/u/2750561?v=4)](https://github.com/AyFun "AyFun (2 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (2 commits)")[![hikarine3](https://avatars.githubusercontent.com/u/197538?v=4)](https://github.com/hikarine3 "hikarine3 (2 commits)")[![limmlingg](https://avatars.githubusercontent.com/u/19278516?v=4)](https://github.com/limmlingg "limmlingg (2 commits)")[![ibes](https://avatars.githubusercontent.com/u/383277?v=4)](https://github.com/ibes "ibes (1 commits)")[![CameronVetter](https://avatars.githubusercontent.com/u/7763701?v=4)](https://github.com/CameronVetter "CameronVetter (1 commits)")[![fmt](https://avatars.githubusercontent.com/u/140614?v=4)](https://github.com/fmt "fmt (1 commits)")[![peter279k](https://avatars.githubusercontent.com/u/9021747?v=4)](https://github.com/peter279k "peter279k (1 commits)")[![r2ce3po](https://avatars.githubusercontent.com/u/488707?v=4)](https://github.com/r2ce3po "r2ce3po (1 commits)")[![Rotzbua](https://avatars.githubusercontent.com/u/7337347?v=4)](https://github.com/Rotzbua "Rotzbua (1 commits)")[![DirtyF](https://avatars.githubusercontent.com/u/103008?v=4)](https://github.com/DirtyF "DirtyF (1 commits)")[![joyously](https://avatars.githubusercontent.com/u/7957680?v=4)](https://github.com/joyously "joyously (1 commits)")

---

Tags

strattic

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/leonstafford-static-html-output/health.svg)

```
[![Health](https://phpackages.com/badges/leonstafford-static-html-output/health.svg)](https://phpackages.com/packages/leonstafford-static-html-output)
```

###  Alternatives

[neuron-core/neuron-ai

The PHP Agentic Framework.

1.8k245.3k21](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[open-dxp/opendxp

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

7310.3k29](/packages/open-dxp-opendxp)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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