PHPackages                             oo-money/oo-stripe-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. [Payment Processing](/categories/payments)
4. /
5. oo-money/oo-stripe-php

ActiveLibrary[Payment Processing](/categories/payments)

oo-money/oo-stripe-php
======================

An enhanced, object-oriented wrapper for Stripe's PHP SDK, providing custom typed objects and convenient helper methods.

00PHP

Since Jan 8Pushed 1y ago1 watchersCompare

[ Source](https://github.com/mazzcris/oo-stripe-php)[ Packagist](https://packagist.org/packages/oo-money/oo-stripe-php)[ RSS](/packages/oo-money-oo-stripe-php/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

OO-Stripe-PHP
=============

[](#oo-stripe-php)

[![Latest Version](https://camo.githubusercontent.com/d7e46340abfdb00e03bb0872a08a3201a1fe87e0d5b6df3afe49bfd208a33c8b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6f6f2d6d6f6e65792f6f6f2d7374726970652d7068702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/oo-money/oo-stripe-php)[![License](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](LICENSE.md)

A lightweight PHP wrapper for Stripe's PHP SDK, providing an object-oriented interface for more readable and structured access to Stripe objects. `oo-stripe-php` allows you to work with Stripe data in a more streamlined way by transforming raw data fields into useful objects, such as `DateTime`.

Features
--------

[](#features)

- Provides dynamic getters for Stripe properties, transforming specific fields into objects (e.g., timestamps to `DateTime`).
- Uses traits for flexible and reusable getter transformations.
- Lightweight and focused on improving developer experience without altering underlying [Stripe API](https://docs.stripe.com/api) behavior.

Usage
-----

[](#usage)

### Dynamic Getters

[](#dynamic-getters)

The DynamicGetterTrait allows you to access properties dynamically, with the option to transform specific types (e.g., converting timestamps to DateTime).

```
// Assuming `created` is a timestamp, `getCreated` will return a DateTime object.
$creationDate = $invoice->getCreated();
echo $creationDate->format('Y-m-d H:i:s');
```

### API Documentation

[](#api-documentation)

For details on all available fields and methods, refer to the [Stripe API documentation](https://docs.stripe.com/api) for each object type. oo-stripe-php aims to enhance the standard Stripe objects with a more object-oriented interface but otherwise mirrors the structure of Stripe’s SDK.

Contributing
------------

[](#contributing)

Feel free to submit issues, fork the repository, and send pull requests. Please ensure that your contributions adhere to the existing code style and include relevant tests.

### Running Tests

[](#running-tests)

1. Install dependencies, including PHPUnit:

```
composer install
```

2. Run tests:

```
/vendor/bin/phpunit (or: make unit)
```

License
-------

[](#license)

This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details.

---

Note: This project is not affiliated with Stripe, Inc. It’s a community-driven enhancement for developers using the Stripe PHP SDK.

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance32

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity16

Early-stage or recently created project

 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/cedbda0f4c711264ae380110e3841a98986e9b24e0f1aa9dccd20782f7bf9edf?d=identicon)[mazzcris](/maintainers/mazzcris)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/oo-money-oo-stripe-php/health.svg)

```
[![Health](https://phpackages.com/badges/oo-money-oo-stripe-php/health.svg)](https://phpackages.com/packages/oo-money-oo-stripe-php)
```

###  Alternatives

[omnipay/paypal

PayPal gateway for Omnipay payment processing library

3156.8M53](/packages/omnipay-paypal)[eduardokum/laravel-boleto

Biblioteca com boletos para o laravel

626351.9k2](/packages/eduardokum-laravel-boleto)[tbbc/money-bundle

This is a Symfony bundle that integrates moneyphp/money library (Fowler pattern): https://github.com/moneyphp/money.

1961.9M](/packages/tbbc-money-bundle)[2checkout/2checkout-php

2Checkout PHP Library

83740.3k2](/packages/2checkout-2checkout-php)[smhg/sepa-qr-data

Generate QR code data for SEPA payments

61717.2k5](/packages/smhg-sepa-qr-data)[omnipay/dummy

Dummy driver for the Omnipay payment processing library

271.2M33](/packages/omnipay-dummy)

PHPackages © 2026

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