fastwebmedia / laravel-vouchering by fastwebmedia

A simple vouchering system for Laravel
263
6
12
Package Data
Maintainer Username: fastwebmedia
Maintainer Contact: packages@fastwebmedia.com (Fast Web Media Ltd)
Package Create Date: 2015-03-13
Package Last Update: 2015-04-24
Language: PHP
License: MIT
Last Refreshed: 2024-11-11 15:16:40
Package Statistics
Total Downloads: 263
Monthly Downloads: 1
Daily Downloads: 1
Total Stars: 6
Total Watchers: 12
Total Forks: 0
Total Open Issues: 1

Laravel Voucher Package

Build Status

A simple voucher package to allow for the generation of unique vouchers across multiple campaigns, packaged up with create, load, redeem, expire, and delete methods.

Installation (Laravel 5)

Here are the steps you need to take to install the package on Laravel 5. Click here for Laravel 4.

Add the package (v2.*) to your composer.json require.

composer require fastwebmedia/laravel-vouchering:2.*

Run composer update.

composer update

Add the service provider to providers array in app.php config.

'Fastwebmedia\LaravelVouchering\LaravelVoucheringServiceProvider'

Now run the publish command to copy up the package migrations for the voucher and campaign tables and then migrate to your hearts content.

vendor:publish
php artisan migrate

All done! You are now ready to set up your first voucher campaign!

Setting up a new Campaign

Setting up a new voucher campaign is made easy using the package's campaign:create artisan command. Simply run in the terminal and follow the prompts.

php artisan campaign:create

Check your database, you should now have a new campaign.

Installation (Laravel 4)

Here are the steps you need to take to install the package on Laravel 4. Click here for Laravel 5.

Add the package (v1.*) to your composer.json require.

composer require fastwebmedia/laravel-vouchering:1.*

Run composer update.

composer update

Add the service provider to providers array in app.php config.

'Fastwebmedia\LaravelVouchering\LaravelVoucheringServiceProvider'

From the terminal run the package migrations.

php artisan migrate --package="fastwebmedia/laravel-vouchering"

All done! You are now ready to set up your first voucher campaign!

Coming Soon...

More documentation to follow, covering all package methods for voucher creation, loading and more...