PHPackages                             brianhenryie/bh-wp-order-email-reconcile - 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. brianhenryie/bh-wp-order-email-reconcile

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

brianhenryie/bh-wp-order-email-reconcile
========================================

Mark orders as paid by reconciling payment-confirmation emails. WooCommerce supported; designed to be extensible to other order sources (e.g. GiveWP).

0143[6 issues](https://github.com/BrianHenryIE/bh-wp-order-email-reconcile/issues)PHPCI failing

Since Jun 27Pushed 1mo ago2 watchersCompare

[ Source](https://github.com/BrianHenryIE/bh-wp-order-email-reconcile)[ Packagist](https://packagist.org/packages/brianhenryie/bh-wp-order-email-reconcile)[ RSS](/packages/brianhenryie-bh-wp-order-email-reconcile/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependenciesVersions (2)Used By (0)

[![PHPCS WPCS](https://camo.githubusercontent.com/504dce428567aedf1d05384c9eac46dcc8a728aa30c7e4c11b8dfc1334883549/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f50485043532d576f72645072657373253230436f64696e672532305374616e64617264732d3838393242462e737667)](https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards)

BH WP Order Email Reconcile
===========================

[](#bh-wp-order-email-reconcile)

Mark orders as paid by reconciling payment-confirmation emails against unpaid orders.

Emails are fetched and stored by [BH WP Mailboxes](https://github.com/BrianHenryIE/bh-wp-mailboxes/). When new emails arrive, this library parses them and matches them to unpaid orders by order id (from the payment note), customer payment id (e.g. Venmo/$CashTag), email address, then name.

The core is **integration-agnostic**: it deals only with `Unpaid_Order` objects supplied by an `Unpaid_Orders_Provider_Interface`. WooCommerce is supported today; GiveWP is scaffolded as a second integration. See [`ARCHITECTURE.md`](ARCHITECTURE.md) and [`PLAN.md`](PLAN.md).

Usagew
------

[](#usagew)

```
add_action( 'plugins_loaded', function () {
    $settings = new My_Reconcile_Settings(); // implements Email_Reconcile_Settings_Interface
    $logger   = Logger::instance( $settings );
    BH_WP_Order_Email_Reconcile::make( $settings, $logger );
} );
```

Email accounts (server, credentials, filters) are configured through the BH WP Mailboxes API; this library never stores credentials.

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

[](#development)

```
composer install
composer dump-autoload          # after adding/renaming classes

# Lint + static analysis
composer lint                   # phpcbf + phpcs + phpstan

# Unit + wpunit tests (needs the wp-env DB on port 33066)
npm install
npm run wp-env:start
vendor/bin/codecept run unit
vendor/bin/codecept run wpunit

# End-to-end (Playwright, against wp-env on :8888)
npm run test:e2e
```

The development plugin provides a fake WooCommerce gateway, places a fake order, configures the library with test mailbox credentials, and sends a fake payment email to verify reconciliation.

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance60

Regular maintenance activity

Popularity14

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity13

Early-stage or recently created project

 Bus Factor1

Top contributor holds 95.7% 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4720401?v=4)[Brian Henry](/maintainers/BrianHenryIE)[@BrianHenryIE](https://github.com/BrianHenryIE)

---

Top Contributors

[![BrianHenryIE](https://avatars.githubusercontent.com/u/4720401?v=4)](https://github.com/BrianHenryIE "BrianHenryIE (22 commits)")[![superman32432432](https://avatars.githubusercontent.com/u/7228420?v=4)](https://github.com/superman32432432 "superman32432432 (1 commits)")

### Embed Badge

![Health badge](/badges/brianhenryie-bh-wp-order-email-reconcile/health.svg)

```
[![Health](https://phpackages.com/badges/brianhenryie-bh-wp-order-email-reconcile/health.svg)](https://phpackages.com/packages/brianhenryie-bh-wp-order-email-reconcile)
```

###  Alternatives

[kx1000/kwota-slownie

Kwota słownie

1019.9k1](/packages/kx1000-kwota-slownie)

PHPackages © 2026

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