PHPackages                             preseto/block-context - 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. preseto/block-context

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

preseto/block-context
=====================

WordPress plugin for showing or hiding Gutenberg blocks depending on context.

0.1.1(7y ago)1172[8 issues](https://github.com/preseto/block-context/issues)GPL-2.0-or-laterPHP

Since Mar 3Pushed 7y ago2 watchersCompare

[ Source](https://github.com/preseto/block-context)[ Packagist](https://packagist.org/packages/preseto/block-context)[ Docs](https://blockcontext.com)[ RSS](/packages/preseto-block-context/feed)WikiDiscussions master Synced 5d ago

READMEChangelog (2)Dependencies (5)Versions (3)Used By (0)

Block Context for WordPress
===========================

[](#block-context-for-wordpress)

**A WordPress plugin to show or hide WordPress editor (Gutenberg) blocks in context.**

[![Build Status](https://camo.githubusercontent.com/f1dbf18f443d401b4fdd90b3a446d68cbe65217522c148c47931c04f482c810e/68747470733a2f2f7472617669732d63692e6f72672f7072657365746f2f626c6f636b2d636f6e746578742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/preseto/block-context)[![Coverage Status](https://camo.githubusercontent.com/9105e8ba26a78715a9ca5c4ff146c83256e248b21e1953da22274dcaf781dbec/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f7072657365746f2f626c6f636b2d636f6e746578742f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/preseto/block-context?branch=master)

Source of the [Gutenberg Block Context plugin](https://blockcontext.com) for WordPress.

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

[](#requirements)

- WordPress 5.0+ or the [Gutenberg Plugin](https://wordpress.org/plugins/gutenberg/).
- [Composer](https://getcomposer.org) and [Node.js](https://nodejs.org) for dependency management.
- [Vagrant](https://www.vagrantup.com) and [VirtualBox](https://www.virtualbox.org) for local testing environment.

Install
-------

[](#install)

- Search for "Block Context" under "Plugins → Add New" in your WordPress dashboard.
- Install as a [Composer](https://packagist.org/packages/preseto/block-context) dependency:

    ```
    composer require preseto/block-context

    ```

Feature Roadmap
---------------

[](#feature-roadmap)

See [the roadmap](https://github.com/preseto/block-context/projects/1).

Development
-----------

[](#development)

1. Clone the plugin repository:

    ```
    git clone https://github.com/preseto/block-context.git
    cd block-context

    ```
2. Setup the development environment and tools using [Node.js](https://nodejs.org) and [Composer](https://getcomposer.org):

    ```
    npm install

    ```
3. Start a virtual testing environment using [Vagrant](https://www.vagrantup.com/) and [VirtualBox](https://www.virtualbox.org/):

    ```
    vagrant up

    ```

    which will be available at  after provisioning (username: `admin`, password: `password`).
4. Build the plugin JS and CSS assets:

    ```
    npm run build

    ```

Screenshots
-----------

[](#screenshots)

[![Block Context settings](assets/wporg/screenshot-1.png)](assets/wporg/screenshot-1.png)

Credits
-------

[](#credits)

Created by [Kaspars Dambis](https://kaspars.net).

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance5

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity51

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

Total

2

Last Release

2630d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/92bfcd3a8c3a21a033a6484d32c25a40b113ec6891f674336081513d5c98ef76?d=identicon)[kasparsd](/maintainers/kasparsd)

---

Top Contributors

[![kasparsd](https://avatars.githubusercontent.com/u/169055?v=4)](https://github.com/kasparsd "kasparsd (119 commits)")

---

Tags

gutenberggutenberg-compatiblegutenberg-pluginphpwordpresswordpress-plugin

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/preseto-block-context/health.svg)

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

###  Alternatives

[smart-crowd/simple-sms-drivers

Addition providers for simple SMS laravel package

101.0k](/packages/smart-crowd-simple-sms-drivers)

PHPackages © 2026

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