Download the PHP package flosch/stripe-bundle without Composer

On this page you can find all versions of the php package flosch/stripe-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package stripe-bundle

flosch/stripe-bundle

A symfony >= 3 integration for the Stripe PHP SDK

⚠️ IMPORTANT: Before you use this bundle... ⚠️

Some (rather big!) changes are coming quite soon affecting online payment solutions in Europe, impacting the Stripe APIs used by this bundle. Read this issue carefully before using this bundle.

Description

This bundle allow you to manipulate the stripe SDK as a Symfony service, Plus some helpers to use different Stripe API notions such as Stripe Connect or the Subscriptions API.

NOTE : The master branch, and 1.. releases target Symfony 3. If you are using Symfony 4, please use the 2.0.0 branch and the 2.. releases of this bundle.

Installation

To install this bundle, run the command below and you will get the latest version from [Packagist][3].

Load required bundles in AppKernel.php:

And set-up the required configuration

Usage

Then, it is possible to use this service from inside a controller

The StripeClient php class extends the default Stripe PHP SDK class, allowing you to do anything that this SDK can do. Plus, it will automatically be authenticated with your Stripe API Key, which you do not have to worry about at all.

Extends the client

I will always be open to PR in order to update this project, However if you wish to add your own custom helpers, you can easily extend it yourself, for instance :

Then register your extension as a service, and use it.

http://symfony.com/doc/current/service_container/3.3-di-changes.html

Helpers

The StripeClient currently offers four helper methods :

Retrieve a Coupon by its ID
Retrieve a Plan by its ID
Retrieve a Customer by its ID
Retrieve a Charge by its ID
Create a new customer
Create and subscribe a new customer to an existing plan
Subscribe an existing customer to an existing plan
Create a charge (to a platform, or a connected Stripe account)
Refund a Charge

All versions of stripe-bundle with dependencies

PHP Build Version
Package Version
Requires symfony/framework-bundle Version ~3.0 || ~4.0
stripe/stripe-php Version ~3.23
ocramius/proxy-manager Version ~1.0.2 || ^2.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package flosch/stripe-bundle contains the following files

Loading the files please wait ....