PHPackages                             summitevergreen/summit-php - 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. summitevergreen/summit-php

ActiveLibrary

summitevergreen/summit-php
==========================

API Wrapper for payment processing with Summit Evergreen's API

1.0.3(8y ago)128MITPHP

Since Mar 13Pushed 7y ago2 watchersCompare

[ Source](https://github.com/SummitEvergreen/summit-php)[ Packagist](https://packagist.org/packages/summitevergreen/summit-php)[ RSS](/packages/summitevergreen-summit-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)DependenciesVersions (5)Used By (0)

PHP Library for Summit Evergreen
================================

[](#php-library-for-summit-evergreen)

PHP Library for working with **Summit Evergreen** accounts.

Summit Evergreen is an online courseware platform. It provides the tools that make it easy to share your value, by creating beautiful premium membership platforms — making it easy to turn your ideas into valuable online courses.

You can sign up for a Summit Evergreen account at .

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

[](#requirements)

PHP 5.3.3 and later.

Supported Functionality
-----------------------

[](#supported-functionality)

The PHP Library allows you to use the Summit Evergreen API to create and refund user purchases in your Summit Evergreen course. Easily integrate your own purchase and checkout flow, and create stronger integrations with the system that power your business.

- Register new student accounts
- Add Purchases and Payments
- Refund purchases and cancel accounts
- Track order and purchase Ids locally in your custom systems.

Composer
--------

[](#composer)

You can install the bindings via [Composer](http://getcomposer.org/). Add this to your `composer.json`:

```
{
  "require": {
    "summitevergreen/summit-php": "~1.0.0"
  }
}

```

Then install via:

```
composer.phar install

```

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

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

```

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

[](#getting-started)

Sample usage adding a purchase for a customer:

```
use SummitEvergreen\Summit;

// Add your Account ID and Account API Key
$summit = new Summit('A1B2C3D4E5','9ec05a816a63e99e218b88a69614f313c29082be');

$purchaseInfo = [
    'email' => 'luke@example.com',
    'first_name' => 'Luke',
    'last_name' => 'Skywalker',
    'price' => 199.00,
    'sku' => 'COURSE1000'
];

$purchase = $summit->setPurchaseData($purchaseInfo);

// Returns a JSON-encoded string with the purchase data (see below)
$return = $purchase->addPurchase();

```

We also support Fluent method chaining:

```
$purchase = $summit->setPurchaseData($purchaseInfo)->addPurchase();

```

To **refund** the purchase, send the same information but with a different final method.

```
$purchase = $summit->setPurchaseData($purchaseInfo)->doRefund();

```

**Note:** `email`, `first_name`, `last_name`, `price`, and `sku` are all required fields for **both** purchases and refunds.

You can include `order_id` if you have generated your own, or the API will generate one for you.

You may also include `payment_id` from your system for tracking purposes.

*If you include the `payment_id`, you **must** include the `order_id` as well.*

Returned Data
-------------

[](#returned-data)

The **Summit Evergreen** API and this SDK will return a JSON-encoded array as follows:

```
{
message: "{Operation success message}",
errors: [ ],
order_id: "54f8b72da6c94",
thankyou_url: "{Full URL to Thank You page for customer}"
}

```

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

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

###  Release Activity

Cadence

Every ~349 days

Total

4

Last Release

3028d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e8c22422103b24969e4645dcb724606682ff2cc4a3770e61cb6369e945dffbaf?d=identicon)[harisenbon](/maintainers/harisenbon)

---

Top Contributors

[![phpdreams](https://avatars.githubusercontent.com/u/808685?v=4)](https://github.com/phpdreams "phpdreams (8 commits)")[![harisenbon](https://avatars.githubusercontent.com/u/1048479?v=4)](https://github.com/harisenbon "harisenbon (6 commits)")

---

Tags

summitevergreen

### Embed Badge

![Health badge](/badges/summitevergreen-summit-php/health.svg)

```
[![Health](https://phpackages.com/badges/summitevergreen-summit-php/health.svg)](https://phpackages.com/packages/summitevergreen-summit-php)
```

PHPackages © 2026

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