PHPackages                             jlinn/stripe-api-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. [API Development](/categories/api)
4. /
5. jlinn/stripe-api-php

ActiveLibrary[API Development](/categories/api)

jlinn/stripe-api-php
====================

A PHP client library for Stripe's REST API

v1.4.0(10y ago)7987113[4 issues](https://github.com/jlinn/stripe-api-php/issues)MITPHPPHP &gt;=5.3.2

Since Apr 1Pushed 10y ago9 watchersCompare

[ Source](https://github.com/jlinn/stripe-api-php)[ Packagist](https://packagist.org/packages/jlinn/stripe-api-php)[ RSS](/packages/jlinn-stripe-api-php/feed)WikiDiscussions master Synced 2d ago

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

stripe-api-php
==============

[](#stripe-api-php)

[![Build Status](https://camo.githubusercontent.com/9b125e5484ddb6e568760089b7d3b651c2238f3c214690b8a684d720fad07bc6/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f6a6c696e6e2f7374726970652d6170692d7068702e706e673f6272616e63683d6d6173746572)](http://travis-ci.org/jlinn/stripe-api-php)

A PHP client library for [Stripe](https://stripe.com/docs/api)'s API.

Documentation
-------------

[](#documentation)

More comprehensive documentation for this library can be found [here](http://jlinn.github.io/stripe-api-php).

Usage
-----

[](#usage)

### Installing via [Composer](https://getcomposer.org/)

[](#installing-via-composer)

```
$ php composer.phar require jlinn/stripe-api-php
```

### Making API Calls

[](#making-api-calls)

#### Initialize the client object

[](#initialize-the-client-object)

```
use Stripe\Stripe;
$stripe = new Stripe("your_api_key");
```

#### Charges calls

[](#charges-calls)

```
// create a charge
$request = $stripe->charges->createChargeRequest(350, "usd")->setCustomer($customer->getId());
$stripe->charges->createCharge($request);

//Without a Customer
$card Request = new CreateCardRequest($number, $expMonth, $expYear, $cvc);
$request = $stripe->charges->createChargeRequest(350, "usd")->setCard($card);
$stripe->charges->createCharge($request);

// retrieve a charge
$charge = $stripe->charges->getCharge("charge_id");
```

#### Customers calls

[](#customers-calls)

```
use Stripe\Request\Cards\CreateCardRequest;

// create a customer
$request = $stripe->customers->createCustomerRequest();
$request->setEmail("foo@bar.com")->setDescription("A customer!");
$request->setCard(new CreateCardRequest("4242424242424242", 1, 2020));
$customer = $stripe->customers->createCustomer($request);
// get the newly-created customer's id
$customerId = $customer->getId();

// retrieve a customer
$customer = $stripe->customers()->getCustomer("customer_id");
```

Development Status
------------------

[](#development-status)

Currently, all Stripe API calls which do not require [Stripe Connect](https://stripe.com/docs/connect) have been implemented. Documentation and Stripe Connect calls are next on the to-do list.

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~91 days

Recently: every ~108 days

Total

8

Last Release

3835d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2254b2664ffc343c45b480067d473c9c5912b41452420efe677adc2e75db3621?d=identicon)[jlinn](/maintainers/jlinn)

---

Top Contributors

[![jlinn](https://avatars.githubusercontent.com/u/4562038?v=4)](https://github.com/jlinn "jlinn (25 commits)")[![dongilbert](https://avatars.githubusercontent.com/u/718028?v=4)](https://github.com/dongilbert "dongilbert (20 commits)")[![urakozz](https://avatars.githubusercontent.com/u/5797393?v=4)](https://github.com/urakozz "urakozz (3 commits)")[![downsider](https://avatars.githubusercontent.com/u/4508388?v=4)](https://github.com/downsider "downsider (2 commits)")[![pborreli](https://avatars.githubusercontent.com/u/77759?v=4)](https://github.com/pborreli "pborreli (1 commits)")

---

Tags

apistripepayments

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/jlinn-stripe-api-php/health.svg)

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

###  Alternatives

[mollie/mollie-api-php

Mollie API client library for PHP. Mollie is a European Payment Service provider and offers international payment methods such as Mastercard, VISA, American Express and PayPal, and local payment methods such as iDEAL, Bancontact, SOFORT Banking, SEPA direct debit, Belfius Direct Net, KBC Payment Button and various gift cards such as Podiumcadeaukaart and fashioncheque.

60315.4M74](/packages/mollie-mollie-api-php)[transbank/transbank-sdk

Transbank SDK

62658.8k14](/packages/transbank-transbank-sdk)[openbuildings/paypal

PayPal SDK for ExpressCheckout and AdaptivePayments. Supports recurring payments, simple payments, parallel payments and chained payments.

29176.3k](/packages/openbuildings-paypal)[webit/w-firma-api

wFirma.pl API

1821.5k](/packages/webit-w-firma-api)[maksekeskus/maksekeskus-php

Maksekeskus PHP SDK

13191.7k](/packages/maksekeskus-maksekeskus-php)

PHPackages © 2026

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