Download the PHP package frangeris/biller without Composer

On this page you can find all versions of the php package frangeris/biller. 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 biller

Biller (for phalconphp)

Build Status Total Downloads Latest Stable Version Latest Unstable Version License

Introduction

Biller is a billing service package created for abstraction of Subscriptions, Charges and Customers using Stripe API under PhalconPHP Framework, inspired by Laravel Cashier, so let's rock and roll...

Installation

The recommended way to install Biller is through Composer.

Install Composer

Next, run the Composer command to install the latest stable version of Biller:

Getting Started

This vendor use connection to Mysql database for manage data of stripe. The first step is create those tables (Subscriptions, Customers), we'll use Phalcon database migration for this, using Phalcon Developer Tools.

Run migrations

This simply add two more tables to your current database (will be used by the vendor to keep record of the data in stripe).

Initialize the gateway

The next step is to start with the implementation directly in code, before make any kind of request, we must start \Biller\Gateway, this will allow us make continues request to Stripe API.

Before start the Gateway we need to add the configuration of Biller in the configuration array of the app, with the next structure:

Add biller configuration to config file:

The fields custom_id and custom_email are the names of properties inside User model that represent such values.

Start the gateway using Gateway::me():

The Gateway receive as parameter an object \Phalcon\Config so we spend the configuration of the application previously loaded; use method me() for indicate who we are:

Done this, our app is connected with stripe and we can begin to treat Users as Customers, let's start:

Add a trait to User model:

To give the behavior of a Customer to the User model that we're using, simply add the trait Biller\Behavior\IsCustomer to the User class that extends of \Phalcon\Mvc\Model.

Now, we can interact with our User as a Customer in stripe.

Methods:

Others methods to verify status

Development

Install dependencies:

Tests

Install dependencies as mentioned above (which will resolve PHPUnit), then you can run the test suite:

Or to run an individual test file:

License

Biller is open-sourced software licensed under the MIT license


All versions of biller with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5.0
stripe/stripe-php Version ~3.0
nesbot/carbon Version ^1.21
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 frangeris/biller contains the following files

Loading the files please wait ....