calderawp/events

A boilerplate for new composer based PHP projects.

0.2.0 2019-01-09 22:31 UTC

This package is auto-updated.

Last update: 2024-10-23 06:37:39 UTC


README

A WordPress Plugins API (hooks)-like event dispatcher.

👀🌋 This Is A Module Of The Caldera Framework

Usage

Install

  • Add to your package:
    • composer require calderawp/http
  • Install for development:
    • git clone git@github.com:CalderaWP/http.git && composer install

Examples

Adding A Filter (Subscribe)

Applying A Filter (Dispatch)

Adding An Action (Subscribe)

Not yet implemented.

Doing An Action (Dispatch)

Not yet implemented.

Testing

  • Run unit tests
    • composer test:unit
  • Run integration tests
    • composer test:integration
  • Run acceptance tests
    • composer test:acceptance

License, Copyright, etc.

Copyright 2018+ CalderaWP LLC and licensed under the terms of the GNU GPL license. Please share with your neighbor.