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

ActiveLibrary[Payment Processing](/categories/payments)

tatter/stripe
=============

Stripe SDK integration for CodeIgniter 4

v2.0.3(4y ago)115.3k5[1 PRs](https://github.com/tattersoftware/codeigniter4-stripe/pulls)MITPHPPHP ^7.4 || ^8.0

Since Dec 19Pushed 2y ago2 watchersCompare

[ Source](https://github.com/tattersoftware/codeigniter4-stripe)[ Packagist](https://packagist.org/packages/tatter/stripe)[ Docs](https://github.com/tattersoftware/codeigniter4-stripe)[ Fund](https://paypal.me/tatter)[ GitHub Sponsors](https://github.com/tattersoftware)[ RSS](/packages/tatter-stripe/feed)WikiDiscussions develop Synced 6d ago

READMEChangelog (6)Dependencies (3)Versions (9)Used By (0)

Tatter\\Stripe
==============

[](#tatterstripe)

Stripe SDK integration for CodeIgniter 4

[![](https://github.com/tattersoftware/codeigniter4-stripe/workflows/PHPUnit/badge.svg)](https://github.com/tattersoftware/codeigniter4-stripe/actions/workflows/test.yml)[![](https://github.com/tattersoftware/codeigniter4-stripe/workflows/PHPStan/badge.svg)](https://github.com/tattersoftware/codeigniter4-stripe/actions/workflows/analyze.yml)[![](https://github.com/tattersoftware/codeigniter4-stripe/workflows/Deptrac/badge.svg)](https://github.com/tattersoftware/codeigniter4-stripe/actions/workflows/inspect.yml)[![Coverage Status](https://camo.githubusercontent.com/98f3a0465e47b287de6c257a6fc26b1fd8fb1583c45caff6b34709bd60d10cad/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f746174746572736f6674776172652f636f646569676e69746572342d7374726970652f62616467652e7376673f6272616e63683d646576656c6f70)](https://coveralls.io/github/tattersoftware/codeigniter4-stripe?branch=develop)

Quick Start
-----------

[](#quick-start)

1. Install with Composer: `> composer require tatter/stripe`
2. Set the environment keys: **.env** &gt; `stripe.apiKey` and `stripe.apiSecret`
3. Load the service: `$stripe = service('stripe');`

Description
-----------

[](#description)

This is a CodeIgniter 4 integration of the Stripe PHP SDK

- [Documentation](https://stripe.com/docs)
- [API Reference](https://stripe.com/docs/api?lang=php)
- [GitHub repository](https://github.com/stripe/stripe-php)

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

[](#installation)

Install easily via Composer to take advantage of CodeIgniter 4's autoloading capabilities and always be up-to-date:

- `> composer require tatter/stripe`

Or, install manually by downloading the source files and adding the directory to `app/Config/Autoload.php`.

Configuration
-------------

[](#configuration)

The library's default behavior can be altered by extending its config file. Copy **examples/Stripe.php** to **app/Config/** and follow the instructions in the comments. If no config file is found in **app/Config** then the library will use its own.

In addition to the configuration you *must* set your `apiSecret` in your **.env** file in your project root. API keys and secrets are available from the [Stripe Dashboard](https://dashboard.stripe.com/account/apikeys). E.g.:

```
#--------------------------------------------------------------------
# STRIPE
#--------------------------------------------------------------------

stripe.apiKey = pk_test_6pRNASCoBOKtIshFeQd4XMUh
stripe.apiSecret = sk_test_BQokikJOvBiI2HlWgH4olfQ2

```

> *WARNING* Make sure you never include credentials in your repository!

Usage
-----

[](#usage)

Load the Stripe service:

```
$stripe = service('stripe');

```

At this point you have a working `StripeClient` and can use any of the methods described in the [Stripe API Docs](https://stripe.com/docs/api?lang=php). Note that API endpoints are version-specific. See **Configuration** above on how to use the example config file to override the module default if you want to set a specific version.

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 88.9% 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 ~174 days

Recently: every ~210 days

Total

6

Last Release

1468d ago

Major Versions

v1.0.1 → v2.0.02020-08-02

PHP version history (4 changes)v1.0.0PHP ^7.2

v2.0.0PHP &gt;=7.2

v2.0.2PHP ^7.3 || ^8.0

v2.0.3PHP ^7.4 || ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/5ebe908b4fe73807ecdd9f88733342199c9991b7de800329f5b2b787c8210d62?d=identicon)[MGatner](/maintainers/MGatner)

---

Top Contributors

[![MGatner](https://avatars.githubusercontent.com/u/17572847?v=4)](https://github.com/MGatner "MGatner (32 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (4 commits)")

---

Tags

sdkstripecodeigniterpaymentsstripe.jscodeigniter4online

### Embed Badge

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

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

###  Alternatives

[payum/payum-bundle

One million downloads of Payum already! Payum offers everything you need to work with payments. Check more visiting site.

59510.3M40](/packages/payum-payum-bundle)[payum/stripe

The Payum extension. It provides Stripe payment integration.

22573.1k3](/packages/payum-stripe)[chronon/stripe

A CakePHP 2.x Stripe Payment Processing Component.

4246.6k](/packages/chronon-stripe)[enupal/stripe

Allows customers sign up for recurring and one-time payments with Stripe, perfect for orders, donations, subscriptions, and events. Create simple payment forms in seconds easily without coding. For Craft CMS 3.x

3416.5k1](/packages/enupal-stripe)[tomatophp/filament-payments

Manage your payments inside FilamentPHP app with multi payment gateway integration

542.3k](/packages/tomatophp-filament-payments)

PHPackages © 2026

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