Download the PHP package shaygan/affiliate-bundle without Composer
On this page you can find all versions of the php package shaygan/affiliate-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download shaygan/affiliate-bundle
More information about shaygan/affiliate-bundle
Files in shaygan/affiliate-bundle
Package affiliate-bundle
Short Description A simple Symfony Affiliate Bundle.
License MIT
Homepage http://i-gh.ir
Informations about the package affiliate-bundle
ShayganAffiliateBundle
A simple Symfony Affiliate Bundle.
This FOSUserBundle compatible Bundle tracks referrals with query string
parameter and detect referred registrations via cookie. You can easil ask
the bundle for commission amount (if there is any referrer) and apply the amount
to referrer's user account.
Your Order Object needs to implements \Shaygan\AffiliateBundle\Model\OrderInterface.
Install
Via Composer
Edit your app/AppKernel.php to register the bundle in the registerBundles() method as above:
Configure the bundle
This bundle was designed to just work out of the box. The only thing you have to configure in order to get this bundle up and running is your commission type amount and count.
By default it look for ?ref=REFERRER_ID in URLs the ref is configurable
Usage
ShayganAffiliateBundel tracks FOSUserBundle registrations automatically and after every purchase you just need to ask the bundle for the commission payment if the referrer eligible for commission the bundle with return a commission Entity that contain the amount you have to pay to the referrer, othervise returns null.
Testing
Not implemented yet
License
The MIT License (MIT). Please see License File for more information.
All versions of affiliate-bundle with dependencies
symfony/framework-bundle Version >=4.4
symfony/twig-bundle Version *
twig/twig Version *
symfony/templating Version *
doctrine/orm Version ^2.5
knplabs/knp-paginator-bundle Version *