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

ActiveLibrary[Payment Processing](/categories/payments)

provider/stripe
===============

Stripe data provider for Porter.

4.0.0(6y ago)216.4k2[1 issues](https://github.com/Provider/Stripe/issues)PHPPHP ^7.1CI failing

Since Aug 15Pushed 6y ago1 watchersCompare

[ Source](https://github.com/Provider/Stripe)[ Packagist](https://packagist.org/packages/provider/stripe)[ RSS](/packages/provider-stripe/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (5)Versions (15)Used By (0)

Stripe
======

[](#stripe)

[![Latest version](https://camo.githubusercontent.com/583009c026e28881068e92a2f11c61779df76491e1973c8e2a1c98378ad8c6c6/68747470733a2f2f706f7365722e707567782e6f72672f70726f76696465722f7374726970652f76657273696f6e "Latest version")](https://github.com/Provider/Stripe/releases)[![Total downloads](https://camo.githubusercontent.com/a3433624d4509bb9525da957c16096c29bed4d14f6ebf6eb4b2771f1c3d7cc17/68747470733a2f2f706f7365722e707567782e6f72672f70726f76696465722f7374726970652f646f776e6c6f616473 "Total downloads")](https://packagist.org/packages/provider/stripe)[![Build status](https://camo.githubusercontent.com/0872b3d2b1c051a8ca0cfe15a1427ca17d0a13751bb9cf37d70c053afdc1f1c5/68747470733a2f2f7472617669732d63692e6f72672f50726f76696465722f5374726970652e7376673f6272616e63683d6d6173746572 "Build status")](http://travis-ci.org/Provider/Stripe)[![Test coverage](https://camo.githubusercontent.com/576368ab47558eed2af45ab11c99bc4e54afe15429b8c8c335ddb2721dae85e6/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f50726f76696465722f5374726970652f62616467652e737667 "Test coverage")](https://coveralls.io/github/Provider/Stripe)[![Code style](https://camo.githubusercontent.com/ea840525f1d9d448fdb0a24b9017cb4cf3af23094953eaeb5f83a4d12c20c5e4/68747470733a2f2f7374796c6563692e696f2f7265706f732f36353331303633362f736869656c643f7374796c653d666c6174 "Code style")](https://styleci.io/repos/65310636)

A [Porter](https://github.com/ScriptFUSION/Porter) provider for [Stripe](https://stripe.com), an online payment processor. Unlike the [official library](https://github.com/stripe/stripe-php), this implementation supports multiple instances and testing with mocks because it [does not rely on global state](https://github.com/stripe/stripe-php/issues/124).

This implementation currently is incomplete, however the API design currently serves as one of the better reference implementations for those wishing to write similar providers for other services. [Pull requests](https://github.com/Provider/Stripe/pulls) for missing Stripe API features are more than welcome.

Usage
-----

[](#usage)

Add the dependency to your Composer files `require` section.

```
"provider/stripe": "^3"

```

Once the provider is registered simply import any of its resources to invoke Stripe functionality. For example, to create a charge we could import `CreateCharge`.

```
$card = new Card('4242424242424242', 12, 2020, '123');
$response = $porter->importOne(new ImportSpecification(new CreateCharge($card)));
```

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

[](#requirements)

- [PHP 5.5](http://php.net)
- [Composer](http://getcomposer.org)
- [Porter](https://github.com/ScriptFUSION/Porter)

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 91.7% 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 ~93 days

Recently: every ~225 days

Total

14

Last Release

2344d ago

Major Versions

1.2.0 → 2.0.02016-10-17

2.2.1 → 3.0.02018-04-09

3.0.0 → 4.0.x-dev2018-04-09

4.0.x-dev → 5.0.x-dev2019-11-24

PHP version history (2 changes)3.0.0PHP ^5.5|^7

5.0.x-devPHP ^7.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/470626?v=4)[Bilge](/maintainers/Bilge)[@Bilge](https://github.com/Bilge)

---

Top Contributors

[![Bilge](https://avatars.githubusercontent.com/u/470626?v=4)](https://github.com/Bilge "Bilge (11 commits)")[![a-barzanti](https://avatars.githubusercontent.com/u/695441?v=4)](https://github.com/a-barzanti "a-barzanti (1 commits)")

---

Tags

data-provideronline-paymentspayment-gatewayphp-developmentporterstripe

###  Code Quality

TestsPHPUnit

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/provider-stripe/health.svg)](https://phpackages.com/packages/provider-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)[zaporylie/vipps

PHP SDK for Vipps

28389.1k](/packages/zaporylie-vipps)

PHPackages © 2026

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