Download the PHP package linkrobins/referral without Composer

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

Link Robins Referral

An invite code referral system for Flarum 2.0. Each member gets a unique personal invite code they can share with others. New users enter the code during registration to be credited to the referrer. Admins can optionally require a code to register at all.


Features

Screenshots

Referrals profile tab: shows the member's invite code and total referral count.

image

Sign-up modal: includes an optional (or required) Invite Code field.

image

Admin settings: toggle to require an invite code to register.

image

Requirements


Installation

Install via Composer:

Then run migrations and clear the cache:

Enable the extension in the Flarum admin panel under Extensions.


Usage

For Members

  1. Go to your profile and click the Referrals tab
  2. Your personal invite code is displayed, with buttons to copy it, copy a referral link, or show a QR code (with a PNG download for print)
  3. When someone registers using your code, you receive a notification and your referral count increases

For New Users

  1. Click Sign Up
  2. Fill in your username, email, and password as normal
  3. Enter the invite code you received in the Invite Code field
  4. Complete registration

For Admins

  1. Go to Admin → Extensions → Link Robins Referral
  2. Toggle Require invite code to register to enforce invite-only registration
  3. When enabled, no one can register without a valid invite code

Translations

The extension ships with English (locale/en.yml). To add a translation:

  1. Create a new file in the locale/ directory named after the ISO 639-1 language code, e.g.:

    • ko.yml: Korean
    • zh.yml: Simplified Chinese
    • es.yml: Spanish
  2. Copy the contents of en.yml and translate the values

  3. No code changes needed; Flarum picks up locale files automatically

Example (es.yml)


Database

The extension creates two tables:

These are created automatically when the extension is enabled. They are safely removed when the extension is uninstalled.


Links


License

MIT License. See LICENSE for details.


All versions of referral with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
flarum/core Version ^2.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 linkrobins/referral contains the following files

Loading the files please wait ...