PHPackages                             piotrpress/asset-block - 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. piotrpress/asset-block

ActiveWordpress-plugin[Utility &amp; Helpers](/categories/utility)

piotrpress/asset-block
======================

This plugin adds an Asset Block for enqueueing registered scripts and styles in content, solving the issue of loading assets with patterns.

v0.1.1(1y ago)080↓100%GPL-3.0-or-laterJavaScriptPHP &gt;=7.4

Since Nov 14Pushed 1y ago1 watchersCompare

[ Source](https://github.com/PiotrPress/wordpress-asset-block)[ Packagist](https://packagist.org/packages/piotrpress/asset-block)[ Docs](https://github.com/PiotrPress/wordpress-asset-block)[ RSS](/packages/piotrpress-asset-block/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (3)Used By (0)

WordPress Asset Block
=====================

[](#wordpress-asset-block)

This plugin adds an Asset Block for enqueueing registered scripts and styles in content, solving the issue of loading assets with patterns.

Usage
-----

[](#usage)

### 1. Register script or style

[](#1-register-script-or-style)

```
add_action( 'init', function() {
    wp_register_script( 'example', 'https://example.com/script.js' );
    wp_register_style( 'example', 'https://example.com/style.css' );
```

### 2. Add Asset Block in editor and select registered script or style

[](#2-add-asset-block-in-editor-and-select-registered-script-or-style)

[![Asset Block in WordPress block editor view](screenshot-1.png)](screenshot-1.png)

Requirements
------------

[](#requirements)

- PHP &gt;= `7.4` version.
- WordPress &gt;= `6.0` version.

License
-------

[](#license)

[GPL v3 or later](license.txt)

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance40

Moderate activity, may be stable

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity29

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

Total

2

Last Release

540d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/10326736?v=4)[Piotr Niewiadomski](/maintainers/PiotrPress)[@PiotrPress](https://github.com/PiotrPress)

---

Top Contributors

[![PiotrPress](https://avatars.githubusercontent.com/u/10326736?v=4)](https://github.com/PiotrPress "PiotrPress (2 commits)")

---

Tags

asset-blockassetsblockblocksfsefull-site-editinggutenberggutenberg-blockgutenberg-blocksjsphpscriptscriptsstylestyleswordpresswordpress-blockwordpress-pluginwp-enqueue-scriptwp-enqueue-stylewordpressstylewpassetsassetblockblocksscriptstylesscriptsgutenbergfsefull-site-editingasset-block

### Embed Badge

![Health badge](/badges/piotrpress-asset-block/health.svg)

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

###  Alternatives

[infinum/eightshift-libs

WordPress libs developed by Eightshift team to use in modern WordPress.

63118.9k3](/packages/infinum-eightshift-libs)

PHPackages © 2026

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