PHPackages                             erikh60/eephp - 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. erikh60/eephp

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

erikh60/eephp
=============

Google Enhanced Ecommerce PHP Lib

07PHP

Since May 21Pushed 7y agoCompare

[ Source](https://github.com/erikh60/eephp)[ Packagist](https://packagist.org/packages/erikh60/eephp)[ RSS](/packages/erikh60-eephp/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Enhanced Ecommerce Library for PHP
==================================

[](#enhanced-ecommerce-library-for-php)

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

[](#requirements)

PHP 5.3.0 and later.

Composer (Github is most always most recent. My Packagist will lag)
-------------------------------------------------------------------

[](#composer-github-is-most-always-most-recent--my-packagist-will-lag)

You can install the bindings via [Composer](http://getcomposer.org/). Run the following command:

```
composer require erikh60/eephp
```

To use the bindings, use Composer's [autoload](https://getcomposer.org/doc/01-basic-usage.md#autoloading):

```
require_once('vendor/autoload.php');
```

Manual Installation
-------------------

[](#manual-installation)

If you don't use Composer, you can download the [latest release](https://github.com/erikh60/Eephp/releases).

```
require_once('/path/to/Eephp.php');
```

Dependencies
------------

[](#dependencies)

Require the following extension in order to work properly:

- [`json`](https://secure.php.net/manual/en/book.json.php)

If you use Composer, it should get handled automatically. If you install manually, make sure on your own.

Getting Started
---------------

[](#getting-started)

```
Enhanced Ecommerce/GTM Details here:
// https://developers.google.com/tag-manager/enhanced-ecommerce

Set GA Funnels to match the steps as described here:
// https://developers.google.com/analytics/devguides/collection/analyticsjs/enhanced-ecommerce#ecommerce-data

Steps:
//step1 -- search results
//step2 -- product details page with "might also like"
//step3 (optional) -- donate/addtocart -- before amounts/designation/dedication given
//step4 -- add--add to cart (with/after price)
//step4 -- remove--remove from cart
//step5 -- checkout steps
	//step:5.1 view/review cart
	//step:5.2 choose--guest/login/new (not in express)
	//step:5.3 account page (not in express)
	//step:5.4 enter or review address (not in express)
	//step:5.5 review order
	//step:5.6 pay via paypal or stripe
//step6 -- purchase --checkout thankyou

///XXX -- not yet -- Refunds

```

Simple Usage
------------

[](#simple-usage)

For example to load the proper JS for a thank-you/confirmation at the end of checkout:

```
\Eephp\Eephp::set_cart_id('...');
$cart_id =  \Eephp\Eephp::get_cart_id();
$js =  \Eephp\Eephp::ee_load_thankyou($cart_id);

echo $js;
```

Full examples for Steps above in Test.php

JS in the Wild
--------------

[](#js-in-the-wild)

View Source at cfp-dc.org

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/2c17c761dc3e69f1ebf602926855b0ec49af9140ef0c03801dbad24eec0eac1f?d=identicon)[erikh60](/maintainers/erikh60)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/erikh60-eephp/health.svg)

```
[![Health](https://phpackages.com/badges/erikh60-eephp/health.svg)](https://phpackages.com/packages/erikh60-eephp)
```

PHPackages © 2026

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