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

ActiveSymfony-bundle[Payment Processing](/categories/payments)

w3sami/stripe-bundle
====================

A simple Symfony 5 bundle to wrap Stripe API.

1.0.10(5y ago)022[1 PRs](https://github.com/w3sami/StripeBundle/pulls)MITPHPPHP ^7.2.5

Since Mar 18Pushed 3y ago1 watchersCompare

[ Source](https://github.com/w3sami/StripeBundle)[ Packagist](https://packagist.org/packages/w3sami/stripe-bundle)[ Docs](https://github.com/W3sami/StripeBundle)[ RSS](/packages/w3sami-stripe-bundle/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (4)Versions (12)Used By (0)

W3samiStripeBundle
==================

[](#w3samistripebundle)

A simple wrapper for Stripe Api to use with Symfony 5.

This bundle wraps the stripe-php library, so you can inject it in your own symfony code with ease. It provides a few shortcuts too, for getting and creating a client, creating and canceling a subscription and making a single charge.

To see all available methods of stripe's php library, see

Setup
-----

[](#setup)

### Step 1: Install W3samiStripeBundle using composer

[](#step-1-install-w3samistripebundle-using-composer)

Install with composer by running the command:

```
$ composer require "w3sami/stripe-bundle:1.*"
```

### Step 2: Add configuration

[](#step-2-add-configuration)

```
# config/packages/w3sami.yml
w3sami:
  stripe:
    stripe_private_key: %stripe_private_key%
```

Usage
-----

[](#usage)

**Using service**

```

```

or

```
