fastwebmedia / laravel-vouchering
A simple vouchering system for Laravel
Requires
- php: >=5.4.0
- illuminate/support: 5.0.*
- rhumsaa/uuid: 2.8.*
Requires (Dev)
- illuminate/database: 5.0.*
- league/factory-muffin: ~3.0@dev
- league/factory-muffin-faker: ~1.0@dev
- mockery/mockery: ~0.9
- phpunit/phpunit: ~4.0
This package is not auto-updated.
Last update: 2024-12-21 17:59:04 UTC
README
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...