PHPackages                             underpin/block-loader - 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. underpin/block-loader

ActiveLibrary

underpin/block-loader
=====================

Block Loader for Underpin

1.2.0(4y ago)0119[3 issues](https://github.com/Underpin-WP/underpin-block-loader/issues)GPL-2.0-or-laterPHP

Since May 6Pushed 4y ago1 watchersCompare

[ Source](https://github.com/Underpin-WP/underpin-block-loader)[ Packagist](https://packagist.org/packages/underpin/block-loader)[ RSS](/packages/underpin-block-loader/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (3)Dependencies (3)Versions (8)Used By (0)

Underpin Block Loader
=====================

[](#underpin-block-loader)

Loader That assists with adding blocks to a WordPress website.

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

[](#installation)

### Using Composer

[](#using-composer)

`composer require underpin/block-loader`

### Manually

[](#manually)

This plugin uses a built-in autoloader, so as long as it is required *before*Underpin, it should work as-expected.

`require_once(__DIR__ . '/underpin-blocks/blocks.php');`

Setup
-----

[](#setup)

1. Install Underpin. See [Underpin Docs](https://www.github.com/underpin-wp/underpin)
2. Register new blocks menus as-needed.

Example
-------

[](#example)

A very basic example could look something like this. Note that your block will not display unless registered in Javascript as well.

```
// Register styles and scripts.
underpin()->styles()->add( 'test-style', [/*...*/] );
underpin()->scripts()->add( 'test-script', [/*...*/] );

// Register block
underpin()->blocks()->add( 'test', [
	'name'        => 'Test Block',
	'description' => 'Description for block.',
	'type'        => underpin()->dir() . 'block.json', // Can be the block ID or a link to a block.json file. See register_block_type
	'args'        => [],                               // Optional. See register_block_type
] );
```

Alternatively, you can extend `Block` and reference the extended class directly, like so:

```
underpin()->blocks()->add('block-key','Namespace\To\Class');
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

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

Total

4

Last Release

1636d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9e6206223bd6f2a57b8ac80605b1b5c3521faaec18ad3f20f25fb728a9a13784?d=identicon)[tstandiford](/maintainers/tstandiford)

---

Top Contributors

[![alexstandiford](https://avatars.githubusercontent.com/u/8210827?v=4)](https://github.com/alexstandiford "alexstandiford (17 commits)")

---

Tags

blocksgutenbergunderpinwordpress

### Embed Badge

![Health badge](/badges/underpin-block-loader/health.svg)

```
[![Health](https://phpackages.com/badges/underpin-block-loader/health.svg)](https://phpackages.com/packages/underpin-block-loader)
```

PHPackages © 2026

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