PHP Classes
elePHPant
Icontem

Phalcon Cashier: Access subscription services provided by Stripe

Recommend this page to a friend!
  Info   View files Example   View files View files (43)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2016-08-29 (2 years ago) RSS 2.0 feedNot enough user ratingsTotal: 105 All time: 9,132 This week: 366Up
Version License PHP version Categories
phalcon-cashier 1.0.0MIT/X Consortium ...5PHP 5, E-Commerce, Web services, Traits
Description Author

This package can access subscription services provided by Stripe.

It accesses the Stripe API to provide basic subscription management, handle coupons, swapping subscription, update subscription "quantities", cancellation grace periods, and generate invoice in PDF format.

Innovation Award
PHP Programming Innovation award nominee
June 2016
Number 12
Stripe is a well known Internet based payment system that can handle single or recurring payments.

This package can perform several types of operations to manage recurring payments using the Stripe API.

Manuel Lemos
  Performance   Level  
Name: Thien Tran <contact>
Classes: 1 package by
Country: Viet Nam Viet Nam
Age: 28
All time rank: 419929 in Viet Nam Viet Nam
Week rank: 650 Up6 in Viet Nam Viet Nam Up
Innovation award
Innovation award
Nominee: 1x

 

Details

Build Status and Join chats us:

Build Status Slack

Introduction

Phalcon Cashier provides an expressive, fluent interface to Stripe's subscription billing services. It handles almost all of the boilerplate subscription billing code you are dreading writing. In addition to basic subscription management, Cashier can handle coupons, swapping subscription, subscription "quantities", cancellation grace periods, and even generate invoice PDFs.

Test Setup

You will need to set the following details locally and on your Stripe account in order to test:

Local

Add some parameter in config.php such as like below

'stripe' => [
    'model'      => 'App\Models\Users',
    'secretKey'  => null,
    'publishKey' => null
]

Stripe

Plans

* monthly-10-1 ($10)
* monthly-10-2 ($10)

Coupons

* coupon-1 ($5)

Official Documentation

You can how to using it at here. Also it is inspiring by Laravel so you can take look on the Laravel website.

Contributing

Thank you for considering contributing to the Cashier. You can read the contribution guide lines here.

License

Phalcon Cashier is open-sourced software licensed under the MIT license

  Files folder image Files  
File Role Description
Files folder imagesrc (7 files)
Files folder imagetests (7 files, 7 directories)
Accessible without login Plain text file .editorconfig Data Auxiliary data
Accessible without login Plain text file .travis.yml Data Auxiliary data
Accessible without login Plain text file changes.md Data Auxiliary data
Accessible without login Plain text file codeception.yml Data Auxiliary data
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file composer.lock Data Auxiliary data
Accessible without login Plain text file contributing.md Data Auxiliary data
Accessible without login Plain text file LICENSE.txt Lic. License
Accessible without login Plain text file readme.md Doc. Documentation

  Files folder image Files  /  src  
File Role Description
  Plain text file Billable.php Class Class source
  Plain text file Cashier.php Class Class source
  Accessible without login Plain text file CashierServiceProvider.php Aux. Auxiliary script
  Plain text file Invoice.php Class Class source
  Plain text file InvoiceItem.php Class Class source
  Plain text file Subscription.php Class Class source
  Plain text file SubscriptionBuilder.php Class Class source

  Files folder image Files  /  tests  
File Role Description
Files folder imageacceptance (2 files)
Files folder imagebuild (3 files)
Files folder imagefunctional (2 files)
Files folder imagemodels (1 file)
Files folder imageunit (4 files)
Files folder image_data (1 file)
Files folder image_support (3 files, 2 directories)
  Accessible without login Plain text file acceptance.suite.yml Data Auxiliary data
  Accessible without login Plain text file bootstrap.php Example Example script
  Accessible without login Plain text file config.php Conf. Configuration script
  Accessible without login Plain text file functional.suite.yml Data Auxiliary data
  Accessible without login Plain text file service.phalcon.php Example Example script
  Accessible without login Plain text file unit.suite.yml Data Auxiliary data
  Accessible without login Plain text file _bootstrap.php Aux. Auxiliary script

  Files folder image Files  /  tests  /  acceptance  
File Role Description
  Plain text file AcceptanceTester.php Class Class source
  Accessible without login Plain text file _bootstrap.php Aux. Auxiliary script

  Files folder image Files  /  tests  /  build  
File Role Description
  Accessible without login Plain text file config.php Example Example script
  Accessible without login Plain text file install-phalcon.sh Data Auxiliary data
  Accessible without login Plain text file nginx.conf Data Auxiliary data

  Files folder image Files  /  tests  /  functional  
File Role Description
  Plain text file FunctionalTester.php Class Class source
  Accessible without login Plain text file _bootstrap.php Aux. Auxiliary script

  Files folder image Files  /  tests  /  models  
File Role Description
  Plain text file Users.php Class Class source

  Files folder image Files  /  tests  /  unit  
File Role Description
  Plain text file CashierTest.php Class Class source
  Plain text file UnitTestCase.php Class Class source
  Plain text file UnitTester.php Class Class source
  Accessible without login Plain text file _bootstrap.php Aux. Auxiliary script

  Files folder image Files  /  tests  /  _data  
File Role Description
  Accessible without login Plain text file dump.sql Data Auxiliary data

  Files folder image Files  /  tests  /  _support  
File Role Description
Files folder imageHelper (1 file)
Files folder image_generated (3 files)
  Plain text file AcceptanceTester.php Class Class source
  Plain text file FunctionalTester.php Class Class source
  Plain text file UnitTester.php Class Class source

  Files folder image Files  /  tests  /  _support  /  Helper  
File Role Description
  Plain text file Functional.php Class Class source

  Files folder image Files  /  tests  /  _support  /  _generated  
File Role Description
  Plain text file AcceptanceTesterActions.php Class Class source
  Plain text file FunctionalTesterActions.php Class Class source
  Plain text file UnitTesterActions.php Class Class source

 Version Control Unique User Downloads Download Rankings  
 100%
Total:105
This week:0
All time:9,132
This week:366Up