PHP Classes


Recommend this page to a friend!
  Classes of Thien Tran   Phalcon Cashier   Download  
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: Phalcon Cashier
Access subscription services provided by Stripe
Author: By
Last change: Syntax highlighting added ✨
Update document
Date: 6 years ago
Size: 1,608 bytes


Class file image Download

Build Status and Join chats us:

Build Status Slack


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:


Add some parameter in config.php such as like below

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



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


* 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.


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


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