Download the PHP package padosoft/laravel-invitations without Composer

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

# Laravel Invitations **The enterprise invite‑by‑code, referral, rewards, waitlist & anti‑abuse suite for Laravel.** Multi‑tenant · concurrency‑safe · idempotent redemption · GDPR‑ready · tri‑surface (PHP + HTTP API + MCP) [![Latest Version on Packagist](https://img.shields.io/packagist/v/padosoft/laravel-invitations.svg?style=flat-square)](https://packagist.org/packages/padosoft/laravel-invitations) [![Tests](https://img.shields.io/github/actions/workflow/status/padosoft/laravel-invitations/run-tests.yml?branch=main&label=tests&style=flat-square)](https://github.com/padosoft/laravel-invitations/actions) [![PHP](https://img.shields.io/badge/php-%5E8.3-777bb4?style=flat-square)](https://www.php.net) [![Laravel](https://img.shields.io/badge/laravel-12%20%7C%2013-ff2d20?style=flat-square)](https://laravel.com) [![License](https://img.shields.io/packagist/l/padosoft/laravel-invitations.svg?style=flat-square)](LICENSE)

⚠️ Active development toward v1.0.0. The engine is production‑proven (extracted from a shipping app) and fully tested; the public API may still shift before the v1.0.0 tag.

📖 Full documentation: doc.laravel-invitations.padosoft.com — deep, academic guides on atomic redemption, multi‑tenancy, anti‑abuse, K‑factor analytics, the tri‑surface API, GDPR, and the architecture decision records.


🚀 AI vibe‑coding pack included

This repo ships a complete AI pair‑programming kit: CLAUDE.md (engineering invariants


Why this package

Every Laravel invite/referral package on the market stops at "generate a code, mark it used." None of them solve the problems that actually bite in production:

padosoft/laravel-invitations is built the other way around: correctness, multi‑tenancy, privacy and observability first.

✨ Highlights

How it compares

Capability laravel‑invitations doorman mateusjunges/invite‑codes pdazcom/referrals taldres/waitlist
Invite codes (max‑uses)
Concurrency‑safe redemption
Idempotent replay ⚠️ ⚠️
Multi‑tenant scoping
Vanity / signed codes ⚠️ ⚠️
Email invitations ⚠️ ⚠️
Referral graph + double‑sided rewards ⚠️ referrer‑only
Anti‑abuse / fraud ⚠️ self‑ref only
Per‑invite role/entitlement grant
Virality analytics (K‑factor)
GDPR erasure
Events / hooks
HTTP API + MCP surface

Requirements

Installation

Make your user model invitation‑aware:

Publish the config (optional):

Quick start

Generate codes (PHP):

Redeem a code — atomic, idempotent, fraud‑gated:

Over the REST API (routes auto‑register; attach your own auth/RBAC via config):

Over MCP — register the bundled tools on your server:

Architecture

* Provisioners are pluggable: the SpatiePermissionProvisioner (role grant) ships by default; a host adds its own under the invitations.provisioners tag.

Host integration seams

The engine never hard‑codes your app. Three small seams keep it vendor‑neutral:

Seam Default Override when…
Contracts\TenantResolver single‑tenant ('default') you're multi‑tenant — bind your own resolver
Contracts\Provisioner (tag invitations.provisioners) SpatiePermissionProvisioner (role) you grant more on redemption (e.g. team/project membership)
Contracts\InvitedAccount InteractsWithInvitations trait your user model stores email differently

Events

CodeRedeemed (fired once, on a fresh claim — never on an idempotent replay), InvitationSent, InvitationAccepted. Listen to grant perks, send a welcome, or update your own projections.

GDPR

PII (ip / fingerprint / recipient) is stored hashed or anonymizable. The scheduled sweep anonymizes rows past the retention window in placecurrent_uses, funnel counts and K‑factor are untouched:

Configuration

All knobs live in config/invitations.php and are env‑overridable — code alphabet/length, signing key, PII retention, anti‑abuse thresholds/velocity/blocklists, and the route prefix + per‑surface middleware (attach your RBAC gate to invitations.routes.admin_middleware).

Web admin panel

padosoft/laravel-invitations-admin ships a polished React + Tailwind admin SPA over this package's API — a virality dashboard plus campaigns, codes, invitations (who accepted vs. who didn't), referral graph, reward ledger, waitlist and anti‑abuse review. Default‑OFF, host‑gated, prebuilt assets (no JS toolchain to install). For apps that already run their own React SPA, the screens can be adapted natively instead of cross‑mounting.

Testing

License

MIT © Padosoft. See LICENSE.


All versions of laravel-invitations with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
illuminate/contracts Version ^12.0|^13.0
illuminate/database Version ^12.0|^13.0
illuminate/support Version ^12.0|^13.0
spatie/laravel-package-tools Version ^1.92
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 padosoft/laravel-invitations contains the following files

Loading the files please wait ...