Skip to content
This repository has been archived by the owner on Jun 28, 2023. It is now read-only.

Commit

Permalink
Merge pull request #20 from Dhii/release/3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
XedinUnknown authored Jun 22, 2021
2 parents dd2002f + ab5dbe9 commit d492445
Show file tree
Hide file tree
Showing 54 changed files with 6,961 additions and 665 deletions.
11 changes: 11 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
test export-ignore
nbproject export-ignore
.idea export-ignore
.phan export-ignore
.codeclimate.yml export-ignore
.php_cs export-ignore
.travis.yml export-ignore
.gitattributes export-ignore
.gitignore export-ignore
composer.lock export-ignore
phpunit.xml export-ignore
8 changes: 7 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
/nbproject/private
/vendor/
/test/log/
/test/coverage/
/test/coverage/
/.idea/dictionaries/
/.idea/codeStyles/
/.idea/tasks.xml
/.idea/workspace.xml
/.idea/deployment.xml
/.idea/misc.xml
8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions .idea/php-test-framework.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

55 changes: 55 additions & 0 deletions .idea/php.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

54 changes: 54 additions & 0 deletions .idea/wp-events.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
language: php
php:
- '5.3'
- '5.4'
- '5.5'
- '5.6'
- '7.0'
- '7.1'
- '7.2'
- nightly

before_script:
Expand All @@ -15,4 +15,4 @@ script:
- vendor/bin/phpunit

after_script:
- vendor/bin/test-reporter --coverage-report="test/coverage/clover.xml"
- vendor/bin/test-reporter --coverage-report="test/coverage/clover.xml"
22 changes: 18 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,27 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased]
## [0.3.0] - 2021-06-22
Stable release.

## [0.2] 2017-01-08
## [0.3.0-alpha2] - 2018-05-29
### Fixed
- Events no longer receive only the first hook argument.

## [0.3.0-alpha1] - 2018-05-11
### Added
- `EventManager` can now optionally stop event propagation across all hook handlers.
- Added unit and functional tests.

### Changed
- Refactored codebase, separating logic into traits.
- Improved the event cache clearing mechanism for increased performance.

## [0.2.0] - 2017-01-08
### Fixed
- Reflection parameter detection in `EventManager`.

## [0.1] 2016-07-07
## [0.1.0] - 2016-07-07
Initial release.
### Added
- `EventManager` and `Event` classes.
- `EventManager` and `Event` classes.
23 changes: 10 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
# WP Events
# Dhii - WP Events

[![Build Status](https://travis-ci.org/Dhii/wp-events.svg?branch=master)](https://travis-ci.org/Dhii/wp-events)
[![Build Status](https://travis-ci.org/Dhii/wp-events.svg?branch=develop)](https://travis-ci.org/Dhii/wp-events)
[![Code Climate](https://codeclimate.com/github/Dhii/wp-events/badges/gpa.svg)](https://codeclimate.com/github/Dhii/wp-events)
[![Test Coverage](https://codeclimate.com/github/Dhii/wp-events/badges/coverage.svg)](https://codeclimate.com/github/Dhii/wp-events/coverage)
[![Latest Stable Version](https://poser.pugx.org/dhii/wp-events/version)](https://packagist.org/packages/dhii/wp-events)
[![This package complies with Dhii standards](https://img.shields.io/badge/Dhii-Compliant-green.svg?style=flat-square)][Dhii]

A PSR-14 compliant event wrapper for WordPress.
## Details
A [PSR-14][] compliant event manager and wrapper for WordPress. It uses the WordPress hook system, while providing
a standards-compliant OOP interface, allowing for complete de-coupling from WordPress hooks.

## Requirements
[Dhii]: https://github.com/Dhii/dhii

* PHP >= 5.3.9

## Installation

Install via Composer:

```
composer require dhii/wp-events
```
[PSR-14]: https://github.com/php-fig/fig-standards/blob/master/proposed/event-dispatcher.md
35 changes: 23 additions & 12 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,26 +9,37 @@
"email": "[email protected]"
}
],
"prefer-stable": true,
"minimum-stability": "dev",
"require": {
"php": "^5.3.9 | ^7.0",
"dhii/psr-14": "~0.1"
"php": "^5.4 | ^7.0",
"dhii/psr-14": "^0.1",
"dhii/normalization-helper-base": "^0.1-alpha2",
"dhii/exception": "^0.1-alpha4",
"dhii/i18n-helper-base": "^0.1"
},
"require-dev": {
"dhii/php-cs-fixer-config": "dev-php-5.3",
"phpunit/phpunit": "4.*",
"10up/wp_mock": "dev-dev",
"ptrofimov/xpmock": "^1.1"
"10up/wp_mock": "^0.1.1",
"doctrine/instantiator": ">=1.0.5 <1.1.0",
"dhii/php-cs-fixer-config": "^0.1",
"phpunit/phpunit": "^4.8",
"ptrofimov/xpmock": "^1.1",
"dhii/stringable-interface": "^0.1"
},
"autoload": {
"psr-4": {
"Dhii\\WpEvents\\" : "src/"
"Dhii\\EventManager\\" : "src/"
}
},
"repositories": [
{
"type": "vcs",
"url": "https://github.com/Dhii/psr-14"
"autoload-dev": {
"psr-4": {
"Dhii\\EventManager\\UnitTest\\" : "test/unit",
"Dhii\\EventManager\\FuncTest\\" : "test/functional"
}
},
"extra": {
"branch-alias": {
"dev-develop": "0.3.x-dev"
}
]
}
}
Loading

0 comments on commit d492445

Please sign in to comment.