Download the PHP package speedyspec/speedyspec-wp-hook-infra-memory without Composer
On this page you can find all versions of the php package speedyspec/speedyspec-wp-hook-infra-memory. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download speedyspec/speedyspec-wp-hook-infra-memory
More information about speedyspec/speedyspec-wp-hook-infra-memory
Files in speedyspec/speedyspec-wp-hook-infra-memory
Package speedyspec-wp-hook-infra-memory
Short Description SpeedySpec Rewrite of WordPress - Hook API Infrastructure Memory Package
License BSD-3-Clause
Informations about the package speedyspec-wp-hook-infra-memory
SpeedySpec WP Hook Infrastructure - Memory
An in-memory implementation of the WordPress hook system for the SpeedySpec WP Hook Domain package. This package provides lightweight, fast hook storage suitable for testing, CLI applications, and scenarios where persistent hook storage is not required.
Note: Version 1.x is not semver-compatible and should not be considered stable. Consider the 1.0 version 0.x for usage purposes. Version 2.x will be semver-compatible.
Installation
Requirements
- PHP 8.4 or higher
speedyspec/speedyspec-wp-hook-domain^1.0
Quick Start
Basic Setup
Using the ServiceProvider
For convenience, you can use the included service provider:
Adding and Executing Hooks
When to Use This Package
Use this package when:
- Writing unit or integration tests
- Building CLI applications
- Creating lightweight scripts
- Prototyping hook-based features
- Running in environments where hook state doesn't need persistence
Consider alternatives when:
- You need hooks to persist across requests
- You're building a full WordPress-compatible application
- You need the
WP_Hookclass compatibility
Documentation
For comprehensive documentation, see the docs directory:
- Services - Detailed documentation of
MemoryHookContainerandMemoryHookSubject - Testing - How to use this package in your tests
- Examples - Common usage patterns and recipes
Testing
License
BSD-3-Clause