Download the PHP package keithbrink/affiliates-spark without Composer

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

AffiliatesSpark

An affiliates package for Laravel Spark that allows you to track referrals from affiliates and pay commission.

Installation

Cashier 10+ / Laravel 6+ is supported in the 1. releases. To use older versions, use one of the 0. releases.

To get the latest version, simply require the project using Composer:

Configuration

  1. In your User model, add the Affiliate trait:

  2. In your SparkServiceProvider, add the following functions to handle adding affiliate IDs to the database:

or, if you want to add extra data to your user registration, use the interaction directly:

  1. Add a link for affiliates in the menu dropdown. Edit \resources\views\vendor\spark\nav\user.blade.php, and under the Developer menu item (line 65), add the following code:

  2. Add a link for managing affiliates in the Kiosk menu. Edit your \resources\views\vendor\spark\kiosk.blade.php, and under the Metrics Link item (line 30), add the following code:

and in the same file under Tab Cards, add the following code:

  1. Publish the package javascript with the command: php artisan vendor:publish --provider="KeithBrink\AffiliatesSpark\AffiliatesSparkServiceProvider" --tag=javascript. Then, in your /resources/js/app.js, require the package javascript:

Remember to compile the assets with npm run dev.

  1. Publish the package views with the command: php artisan vendor:publish --provider="KeithBrink\AffiliatesSpark\AffiliatesSparkServiceProvider" --tag=views. You should enter instructions for your affiliates in /resources/views/vendor/affiliates-spark/affiliates/instructions.blade.php.

  2. Run the package migrations with the command: php artisan migrate --package "keithbrink/affiliates-spark.

Optional Configuration

  1. If you would like your customers to see the discount they are receiving from an affiliate on the subcription page, in your resources/views/vendor/spark/settings/subscription/subscription-notice.blade.php file, after the @else statement (line 9), add:

Usage

  1. On any page that you would like to credit affiliates for sending people to, add the script: <script async="" src="/a-s/aff.js"></script>. You can also add the script to a different subdomain of the same top-level domain by making the src URL absolute rather than relative.

License

SegmentSpark is licensed under The MIT License (MIT).


All versions of affiliates-spark with dependencies

PHP Build Version
Package Version
Requires laravel/cashier Version >=10.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 keithbrink/affiliates-spark contains the following files

Loading the files please wait ....