Download the PHP package kevupton/referrals without Composer

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

Referrals

Laravel bare-bones implementation of a referral queue system. Currently the main functionality this package provides is the manipulation and creation of the referral queue.

How it works

This referral system is based of queue jumping. The idea being that when someone signs up they are placed into a queue. Then whenever someone registers, they jump X places in the queue. The idea behind the queue itself is that it is to slowly grow over a period of time, to simulate users signing up, and hence a demand. Or a queue to jump.


Config File

This file handles everything to do with the queue itself. A commend on each field is there explaining what each does.

The Jobs

This packages uses the Laravel Queue to manage the sign-up queue. It is broken into 2 key jobs. The first being AddMore and the second being MoveInQueue.

AddMore

This class handles adding more empty/fake subscribers to the queue itself. To use this class all you have to do is call it once. Once it has run the first time it will continuously keep adding itself back to the queue, with the interval time specified in referrals.addmore.interval. Every time it runs it adds referrals.addmore.amount subscribers to the queue.

Calling the job: $this->dispatch(new AddMore());

MoveInQueue

This class is responsible for moving a ReferQueue item to new position. It will move the queued_item to the new position and readjusting all the queued people in between.

Calling the job:


The Models

ReferQueue

This model represents a queued item. The refer_queue table is the pending queue for the system. So whenever someone refers someone this is the queue that they jump. The user_id in this class refers to the actual subscriber. So you just have to choose the id to use for this value, whether it is on the users table by default or a custom subscribers table; it will just refer to the primary key of whichever table you use.



All versions of referrals with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3
kevupton/ethereal Version ^2.4.8
kevupton/laravel-package-service-provider Version ^0.0.5
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 kevupton/referrals contains the following files

Loading the files please wait ....