PHPackages                             dxw/govpress-blocks - 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. dxw/govpress-blocks

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

dxw/govpress-blocks
===================

Reusable custom blocks for WordPress

221PHP

Since Jul 29Pushed 3y ago8 watchersCompare

[ Source](https://github.com/dxw/govpress-blocks)[ Packagist](https://packagist.org/packages/dxw/govpress-blocks)[ RSS](/packages/dxw-govpress-blocks/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (5)Used By (0)

GovPress Blocks
===============

[](#govpress-blocks)

A library of reusable blocks for use in GovPress projects.

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

[](#how-to-use)

1. Install the package in your theme: ```
    composer require dxw/govpress-blocks

    ```
2. Use the factory to create the blocks you want to use, and pass them any configuration, e.g. To create a card block with default config: ```
    \Dxw\GovPressBlocks\Factory::create('card');

    ```

    To create a card block that renders a custom template: ```
    \Dxw\GovPressBlocks\Factory::create('card', [
      'template' => '\the\full\path\to\your\custom\template.php`
    ]);

    ```

    For dxw projects, the recommended approach is to add this code to your theme's `app/di.php`, if the theme uses [Iguana](https://github.com/dxw/iguana).
3. If you want to use the default styles for a block, import them into your main SASS file like so (where the final name in the path is the block type): ```
    @import 'vendor/dxw/govpress-blocks/assets/scss/blocks/card'

    ```

The available blocks are documented below.

Blocks
------

[](#blocks)

### Card

[](#card)

`\Dxw\GovPressBLocks\Factory::create('card', array $config)`

Config options:

```
[
    'template' => string $theFullPathToYourCustomCardTemplate
]

```

Sass:

```
@import 'vendor/dxw/govpress-blocks/assets/scss/blocks/card'

```

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity30

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/370665?v=4)[Rob Skilling](/maintainers/RobjS)[@RobjS](https://github.com/RobjS)

![](https://avatars.githubusercontent.com/u/1659723?v=4)[jkeasley](/maintainers/jkeasley)[@jkeasley](https://github.com/jkeasley)

![](https://avatars.githubusercontent.com/u/4721596?v=4)[Matthew Passmore](/maintainers/matpassmore)[@matpassmore](https://github.com/matpassmore)

![](https://avatars.githubusercontent.com/u/71827088?v=4)[Serena Piccioni](/maintainers/serena-piccioni)[@serena-piccioni](https://github.com/serena-piccioni)

---

Top Contributors

[![RobjS](https://avatars.githubusercontent.com/u/370665?v=4)](https://github.com/RobjS "RobjS (22 commits)")

---

Tags

composergovpresspackagistphp

### Embed Badge

![Health badge](/badges/dxw-govpress-blocks/health.svg)

```
[![Health](https://phpackages.com/badges/dxw-govpress-blocks/health.svg)](https://phpackages.com/packages/dxw-govpress-blocks)
```

###  Alternatives

[t3docs/examples

This extension packages a number of code examples from the Core Documentation.

3120.2k](/packages/t3docs-examples)

PHPackages © 2026

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