PHPackages                             pedrosancao/wordimpress - 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. pedrosancao/wordimpress

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

pedrosancao/wordimpress
=======================

Static site generator library using Wordpress API as content source.

v1.0.0-alpha3(5y ago)3181MITPHPPHP &gt;=7.1.0

Since Jul 29Pushed 5y ago1 watchersCompare

[ Source](https://github.com/pedrosancao/wordimpress)[ Packagist](https://packagist.org/packages/pedrosancao/wordimpress)[ RSS](/packages/pedrosancao-wordimpress/feed)WikiDiscussions main Synced yesterday

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

Wordimpress
===========

[](#wordimpress)

[![project license](https://camo.githubusercontent.com/3025249afefb68d3873ff03ee476a687dd1948a79a3a5f8fddf050ab969e6369/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f706564726f73616e63616f2f776f7264696d7072657373)](https://camo.githubusercontent.com/3025249afefb68d3873ff03ee476a687dd1948a79a3a5f8fddf050ab969e6369/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f706564726f73616e63616f2f776f7264696d7072657373)[![code size](https://camo.githubusercontent.com/fcb6801ecff39dc1595768970b1c058d551b5e3968f09ea016ea89e305c5eb95/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c616e6775616765732f636f64652d73697a652f706564726f73616e63616f2f776f7264696d7072657373)](https://camo.githubusercontent.com/fcb6801ecff39dc1595768970b1c058d551b5e3968f09ea016ea89e305c5eb95/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c616e6775616765732f636f64652d73697a652f706564726f73616e63616f2f776f7264696d7072657373)[![PHP version](https://camo.githubusercontent.com/d02e31f014dea8f921cfb19a4b6b8f52b9bd3577010c4f6e8f60777cf4d6b2ba/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f706564726f73616e63616f2f776f7264696d7072657373)](https://camo.githubusercontent.com/d02e31f014dea8f921cfb19a4b6b8f52b9bd3577010c4f6e8f60777cf4d6b2ba/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f706564726f73616e63616f2f776f7264696d7072657373)[![packagist version](https://camo.githubusercontent.com/a20494a46946ab4e84dbf546f795e1efdaee7cee407427a8d60c832475420c5c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f706564726f73616e63616f2f776f7264696d7072657373)](https://camo.githubusercontent.com/a20494a46946ab4e84dbf546f795e1efdaee7cee407427a8d60c832475420c5c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f706564726f73616e63616f2f776f7264696d7072657373)[![packagist downloads](https://camo.githubusercontent.com/2568ab78a885a90ffa10493c7d3dc8b4c787b26a81fbcb3af00c4e99c04fc9b4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f706564726f73616e63616f2f776f7264696d7072657373)](https://camo.githubusercontent.com/2568ab78a885a90ffa10493c7d3dc8b4c787b26a81fbcb3af00c4e99c04fc9b4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f706564726f73616e63616f2f776f7264696d7072657373)

Static site generator library that uses Wordpress API as content source. The library still a prototype.

Key features
------------

[](#key-features)

- uses Twig as template engine
- convert images to WebP format
- supports markdown to HTML

Dependencies
------------

[](#dependencies)

This package rely on these PHP extensions:

- GD
- DOM
- Inotify

Make sure you have them installed.

Usage
-----

[](#usage)

Add Wordimpress to your project using composer:

```
composer require pedrosancao/wordimpress
```

---

Create a class implementing `PedroSancao\Wordimpress\Contracts\SiteInterface`, then implement other interfaces on the namespace `PedroSancao\Wordimpress\Contracts` to add more capabilities, some of them have traits that implements the interface (`PedroSancao\Wordimpress\BlogData\Has*Trait`).

---

Invoke wordpress command:

`vendor/bin/wordimpress [options] classname`

`classname` is the full qualified name of the class implementing `SiteInterface`

The available options:

- `-p, --production` generate assets production
- `-w, --watch` watch for changes to recompile
- `--html-only` run only HTML generation (prevents `-w`)

---

An example of usage is available on [Bootstrap Template](https://github.com/pedrosancao/wordimpress-bootstrap).

To do
-----

[](#to-do)

Check the project's [kanban board](https://github.com/pedrosancao/wordimpress/projects/1).

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

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

Total

4

Last Release

1892d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5c9cc997dca1af30ebb7fe960ba7edbbd6f273eaacbc74b2cb3c0aedfc2b6790?d=identicon)[pedrosancao](/maintainers/pedrosancao)

---

Top Contributors

[![pedrosancao](https://avatars.githubusercontent.com/u/5047991?v=4)](https://github.com/pedrosancao "pedrosancao (34 commits)")

---

Tags

static-site-generatortwigwordpress-apiwordpress-restwp-jsontwigstatic-site-generatorWordPress-APIwordpress-restwp-json

###  Code Quality

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/pedrosancao-wordimpress/health.svg)

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

###  Alternatives

[twig/extra-bundle

A Symfony bundle for extra Twig extensions

91292.0M315](/packages/twig-extra-bundle)[twig/intl-extra

A Twig extension for Intl

36663.2M221](/packages/twig-intl-extra)[rcrowe/twigbridge

Adds the power of Twig to Laravel

9105.9M50](/packages/rcrowe-twigbridge)[twig/string-extra

A Twig extension for Symfony String

21946.0M133](/packages/twig-string-extra)[twig/cssinliner-extra

A Twig extension to allow inlining CSS

23018.5M55](/packages/twig-cssinliner-extra)[symfony/ux-twig-component

Twig components for Symfony

21814.8M162](/packages/symfony-ux-twig-component)

PHPackages © 2026

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