Download the PHP package misaf/vendra-affiliate without Composer

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

Vendra Affiliate

A full affiliate program for Vendra: referral codes and links, click tracking, signup attribution, a per-conversion commission ledger, and payout settlement into the misaf/vendra-transaction wallet — with a Filament admin cluster and stats widgets.

Features

  1. Each affiliate gets a unique referral code and a /r/{code} redirect link.
  2. Visiting the link records an AffiliateClick and drops an attribution cookie (code|clickId).
  3. When a visitor registers, the referral cookie binds them to the affiliate (AffiliateReferral) — each user is attributed at most once and self-referrals are ignored.
  4. Conversions credit AffiliateCommission ledger entries idempotently:
    • Deposit — a referred user's approved deposit credits commission_percent of the amount; leaving the approved state reverses the unpaid commission.
    • Signup — a fixed bounty per attributed registration.
    • Checkout — host applications call RecordCartConversionAction from their checkout flow (vendra-cart has no checkout event yet).
  5. ProcessAffiliatePayoutAction settles approved commissions atomically: it groups them into an AffiliatePayout, marks them paid, and credits the affiliate's default-currency wallet through an approved Commission transaction. If the transaction cannot be created or settled, everything rolls back and the commissions remain payable.

Each conversion type is toggled in config/vendra-affiliate.php, alongside the attribution cookie, payout minimum, and defaults.

Requirements

Installation

Optionally publish the configuration and translations:

Optional tags

Install misaf/vendra-tagger to assign affiliate-typed tags from the affiliate form and display them in the table. Affiliate imports neither Vendra Tagger nor Spatie Tags; the optional relationship is resolved through misaf/vendra-support.

Testing

Run the package checks from the project root:

License

MIT. See LICENSE.


All versions of vendra-affiliate with dependencies

PHP Build Version
Package Version
Requires php Version ^8.4
misaf/vendra-support Version self.version
misaf/vendra-transaction Version self.version
misaf/vendra-user Version self.version
spatie/laravel-package-tools Version ^1.93.1
spatie/laravel-queueable-action Version ^2.17
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 misaf/vendra-affiliate contains the following files

Loading the files please wait ...