PHPackages                             jameron/invitations - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Mail &amp; Notifications](/categories/mail)
4. /
5. jameron/invitations

ActiveProject[Mail &amp; Notifications](/categories/mail)

jameron/invitations
===================

Email invitations for bringing on new users to your applications.

2.5.2(8y ago)0105MITPHP

Since Nov 8Pushed 8y ago1 watchersCompare

[ Source](https://github.com/jameron/invitations)[ Packagist](https://packagist.org/packages/jameron/invitations)[ Docs](http://cjmacfarlane.com)[ RSS](/packages/jameron-invitations/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (63)Used By (0)

Invitations
===========

[](#invitations)

Send email based invites to potential new users.
------------------------------------------------

[](#send-email-based-invites-to-potential-new-users)

This package is designed to enable web applications the feature of sending tokenized email invitations to potential new users. The invitation is a record on a invitations table, and once claimed is removed and a new user is added to the users table. This package was designed to work the the [Admin Package](https://github.com/jameron/admin) and the [Regulator Package](https://github.com/jameron/regulator)

Setup instructions
------------------

[](#setup-instructions)

1. Add the package to yuor composer.json file

`"jameron/invitations" : "*"`

NOTE: Laravel 5.5 users can skip steps 2 and 3

2. Add to your providers:

```
        Jameron\Invitations\InvitationsServiceProvider::class,
```

3. Add to your Facades:

```
        'Invitations' => Jameron\Invitations\Facades\InvitationsFacade::class,
```

4. Publish the migrations and config

    `php artisan vendor:publish`
5. Run migrations

    `pph artisan migrate`
6. If you want to tie related model data to your invitations you can set that in your config/invitations.php config file.

Make sure to add the Invitable Trait to the model you are relating to your invitations:

```
use Jameron/Invitations/Models/Traits/Invitable;
```

then in the class add that Trait

```
use Invitable;
```

If for example say you are inviting an user to manage a page you created for them. You have a table called pages, with foreign\_key user\_id currently set to null. You want the page user\_id (nullable) set to the invited user once they claim their invite.

Your config would look like this:

```
    'related' => [
        'active' => false,
        'model' => \App\Page::class,
        'resource_route' => 'pages',
        'title' => 'Pages',
        'id_column' => 'id',
        'value_column' => 'title',
        'user_foreign_key' => 'user_id',
        'owner_foreign_key' => null
	],
```

When the invitation is claimed the page associated to the invitation will be updated with the users id.

7. Add to your database/seeds/DatabaseSeeder.php

```
        $this->call(\Jameron\Import\database\seeds\InvitationsSeeder::class);
```

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity77

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~1 days

Total

62

Last Release

3040d ago

Major Versions

1.0.9 → 2.0.02017-11-09

### Community

Maintainers

![](https://www.gravatar.com/avatar/1240f858b81e0d846cb4423a5ae9bea96360ae98d4e91506c9c097cfd69698e3?d=identicon)[Jameron](/maintainers/Jameron)

---

Top Contributors

[![Jameron](https://avatars.githubusercontent.com/u/2600629?v=4)](https://github.com/Jameron "Jameron (76 commits)")

---

Tags

emailinvitations

### Embed Badge

![Health badge](/badges/jameron-invitations/health.svg)

```
[![Health](https://phpackages.com/badges/jameron-invitations/health.svg)](https://phpackages.com/packages/jameron-invitations)
```

###  Alternatives

[egulias/email-validator

A library for validating emails against several RFCs

11.6k691.3M307](/packages/egulias-email-validator)[sendgrid/sendgrid

This library allows you to quickly and easily send emails through Twilio SendGrid using PHP.

1.5k47.5M164](/packages/sendgrid-sendgrid)[pelago/emogrifier

Converts CSS styles into inline style attributes in your HTML code

94944.1M110](/packages/pelago-emogrifier)[zbateson/mail-mime-parser

MIME email message parser

53949.2M79](/packages/zbateson-mail-mime-parser)[soundasleep/html2text

A PHP script to convert HTML into a plain text format

48419.5M75](/packages/soundasleep-html2text)[opcodesio/mail-parser

Parse emails without the mailparse extension

216.8M8](/packages/opcodesio-mail-parser)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
