Download the PHP package navneetrai/laravel-subscription without Composer

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

Subscription Billing for Laravel 5

Build Status Coverage Status Total Downloads Latest Stable Version Latest Unstable Version License

laravel-subscription is a simple laravel 5 library for creating subscription billing and handling server notifications. It is primarily meant for people outside countries like US, UK and Canada where Stripe, Paypal Payments Pro are not available.

If you want to handle non-recurring payments, you can use Omnipay for one-time payments and token billing.


Supported services

The library supports Paypal and credit card processors 2Checkout, PayFast and CCNow. More services will be implemented soon.

Included service implementations:

Installation

Add laravel-subscription to your composer.json file:

Use composer to install this package.

Registering the Package

Register the service provider within the array found in :

Add an alias within the array found in :

Configuration

There are two ways to configure laravel-subscription.

Option 1

Create configuration file for package using artisan command

Option 2

Create configuration file manually in config directory config/subscription.php and put there code from below.

Credentials

Add your credentials to config/subscription.php (depending on which option of configuration you choose)

Usage

Basic usage

Just follow the steps below and you will be able to get a processor:

Getting Processor Informationation

You can get basic Information for any processor by:

The value returned is a ProcessorInfo object. You can call getName, getLogo and getUrl methods on this processor to display Processor Name, Logo and Website Url for display purposes.

For getLogo method to work correctly you'll need to copy package assets to your project using

Completing Subscription

Once you have the processor object you can call:

Complete method redirects to source processor so that your user can complete his payment.

$id is your unique Order ID. $product and $consumer are objects implementing SubscriptionProductContract and SubscriptionConsumerContract respectively.

A basic implementation of SubscriptionProductContract and SubscriptionConsumerContract are included with source in form of Classes\SubscriptionProduct and Classes\SubscriptionConsumer respectively.

Handling Processor Notifications

You can handle Processor Notifications and Processor Cart Return Data by forwarding them to ipn and pdt functions respectively.

Both these function excpects only one input with request data as array and returns TransactionResult object.

It is important to remember that IPN notifications are generally delivered via POST. So, you should add post method and remove csrf check for any route handling ipn notifications.


All versions of laravel-subscription with dependencies

PHP Build Version
Package Version
Requires php Version >=7.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 navneetrai/laravel-subscription contains the following files

Loading the files please wait ....