PHPackages                             shapin/stripe - 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. shapin/stripe

AbandonedLibrary[Payment Processing](/categories/payments)

shapin/stripe
=============

PHP client for Stripe API

42.1kPHPCI failing

Since Dec 7Pushed 6y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Stripe PHP SDK
==============

[](#stripe-php-sdk)

[![Latest Version](https://camo.githubusercontent.com/74d0a2e9726bcdbd3f37de598fd245dcbd670021a896b90937a3216f73fa0c46/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f73686170696e74762f7374726970652e7376673f7374796c653d666c61742d737175617265)](https://github.com/shapintv/stripe/releases)[![Build Status](https://camo.githubusercontent.com/4e24caf28b47d81e2b331ecb6227fdd2729e384673776e41d8ff49b97817df05/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f73686170696e74762f7374726970652e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/shapintv/stripe)[![Code Coverage](https://camo.githubusercontent.com/f3d1f1e22104f9a5c346ab3f052d1677e57e2dbb44ff7a0cc471c4f94c0f65d4/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f73686170696e74762f7374726970652e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/shapintv/stripe)[![Quality Score](https://camo.githubusercontent.com/a2ebbd44171c30786483df820338217528f121fb0d88d559f28ab2202a34f891/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f73686170696e74762f7374726970652e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/shapintv/stripe)[![Total Downloads](https://camo.githubusercontent.com/82d2e2bd593a76b232e9c2a30a9a7b10c527965bdfa064c19e08f208c2e1c6b9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73686170696e2f7374726970652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/shapin/stripe)

Install
-------

[](#install)

Via Composer

```
$ composer require shapintv/stripe
```

Usage
-----

[](#usage)

```
use Shapin\Stripe\StripeClient;
use Symfony\Component\HttpClient\HttpClient;

$httpClient = HttpClient::create([
    'base_uri' => 'http://127.0.0.1:12111/v1/',
    'auth_bearer' => 'api_key',
    'headers' => [
        'Content-Type' => 'application/json',
    ],
]);

$stripeClient = new StripeClient($httpClient);

$subscription = $apiClient->subscriptions()->get('sub_myid');
echo $subscription->isActive(); // true
echo $subscription->getCreatedAt()->getTimestamp(); // 1234567890
```

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

[](#contributing)

In order to test locally, you need to have [stripe-mock](https://github.com/stripe/stripe-mock#usage) installed.

To install the correct version, use `make install`.

You can start the Stripe mock server with `make start` and stop it with `make stop`.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE) for more information.

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

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/6662493c184b0ed32978349f4162cac376a2e1026c7f3a06cf1a9565867ecf15?d=identicon)[odolbeau](/maintainers/odolbeau)

---

Tags

paymentstripestripe-php-sdk

### Embed Badge

![Health badge](/badges/shapin-stripe/health.svg)

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

###  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)
