PHPackages                             bananastandio/php\_sdk - 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. bananastandio/php\_sdk

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

bananastandio/php\_sdk
======================

Banana Stand PHP SDK

0.0.1(9y ago)024MITPHP

Since Mar 19Pushed 8y agoCompare

[ Source](https://github.com/bananastandio/php_sdk)[ Packagist](https://packagist.org/packages/bananastandio/php_sdk)[ RSS](/packages/bananastandio-php-sdk/feed)WikiDiscussions master Synced yesterday

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

Banana Stand PHP SDK
====================

[](#banana-stand-php-sdk)

This repo is for the PHP SDK for Banana Stand. See  for more information.

Installation
------------

[](#installation)

Install with composer using `composer require bananastandio/php_sdk` or copy the folder to your project and include all files.

Usage
-----

[](#usage)

#### Setup

[](#setup)

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

use Banana\Client;
use Banana\Models\Event;

$client = new Client("*your public key*", "* your secret key *"); // Replace with your keys
```

#### Fetch events

[](#fetch-events)

```
$events = $client->events(); // Get the first page of events (default sorting is most recently updated first)
foreach ($events as $event) {
    echo $event->id . "|" . $event->visitor_id . "\n";
}
```

#### Delete an Event

[](#delete-an-event)

```
$event->delete();
```

#### Find event

[](#find-event)

```
$event = Event::find($client, $events[0]->id);
echo "Found: " . $event->id . "|" . $event->visitor_id . "\n";
```

#### Get HTML Content for a Product

[](#get-html-content-for-a-product)

```
$html = $client->getProductPageHtml($event->product_id);
```

#### Push view event for that product for customer 123

[](#push-view-event-for-that-product-for-customer-123)

```
$client->pushViewEvent($event->product_id, null, 123);
```

Need Help?
==========

[](#need-help)

Post issues in this github and a developer will respond. Email the support team if you prefer to contact us that way.

TODO
====

[](#todo)

- Add automated tests and hook into travis

Contributing
============

[](#contributing)

### How to contribute

[](#how-to-contribute)

To contribute to the repository:

1. Fork the repository.
2. Clone the forked repository locally.
3. Create a branch descriptive of your work. For example "my\_new\_feature\_xyz".
4. When you're done work, push up that branch to **your own forked repository** (not the main one).
5. Visit [https://github.com/bananastandio/php\_sdk](https://github.com/bananastandio/php_sdk) and you'll see an option to create a pull request from your forked branch to the master. Create a pull request.
6. Fill out the pull request template with everything it asks for and assign the pull request to someone to review.
7. Set the reviewee as yourself and the requested reviewer as whomever you want to review your PR.
8. Once the PR merges into master then it is ready for production and should be treated as such. It will be deployed to staging within minutes.

### Getting your PR approved

[](#getting-your-pr-approved)

A few key things to note:

- PRs must be approved by all requested reviewers before you can merge.
- After you implement changes requested from a reviewer then post back with a ♻️ to say something like `:recyle: Ready for you to look again at it please.`. **Note:** If you do not do this then you PR may not ever get re-reviewed after comments are taken into acocunt.
- If a PR comment starts with a 🍺 then it is just a suggestion and preference of the reviewer and the comment is NON-blocking. That is, your PR may still be approved with these comments.
- If a PR comment starts with a 💁‍♂️ then it is just informative and requires no action. It's like a "FYI"
- All other PR comments probably need to be addressed unless otherwise agreed by the reviewer.
- After a PR has been approved then you are free to merge.
- PR reviews will happen ASAP but generally within 24 hours.

### Design and Code Standards

[](#design-and-code-standards)

#### General Standards

[](#general-standards)

Configure your IDE or code editor with the following:

- Use 4 spaces - NOT tabs.
- Add new line at the end of every file.

#### PHP Styles

[](#php-styles)

Follow the [PSR-2 Coding Standard](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md).

##### Other Considerations

[](#other-considerations)

1. Keep methods and classes small and sweet. [Follow SRP](https://en.wikipedia.org/wiki/Single_responsibility_principle).
2. If you're adding a lot of comments in your code you pobably should consider whether or not that code should be broken up into multiple methods. This is 95% the case.

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity54

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.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

3390d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/314966?v=4)[Jay El-Kaake](/maintainers/jayelkaake)[@jayelkaake](https://github.com/jayelkaake)

---

Top Contributors

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

---

Tags

banana-standcomposerecommercephpsocial-validationurgency

### Embed Badge

![Health badge](/badges/bananastandio-php-sdk/health.svg)

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

###  Alternatives

[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k496.1k34](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3661.2M46](/packages/tencentcloud-tencentcloud-sdk-php)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

751284.3k37](/packages/civicrm-civicrm-core)[roundcube/roundcubemail

The Roundcube Webmail suite

7.0k1.4k3](/packages/roundcube-roundcubemail)[spatie/laravel-export

Create a static site bundle from a Laravel app

672139.5k6](/packages/spatie-laravel-export)[nfse-nacional/nfse-php

This is my package nfse

1533.1k](/packages/nfse-nacional-nfse-php)

PHPackages © 2026

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