atbox/invi
Larablocks Analysis
atbox/invi works with Laravel 5 (latest release v2.0.0, Jan 31, 2017), which reached end of life: no more fixes, even for security.
Recommendation checks
Not advisedNot advised: no release or commit in over 2 years.
- No release or commit in over 2 years
- Supports only Laravel 5, past end of life
- No release in the last 12 months (last: Jan 31, 2017)
- 0 downloads a month (needs 10,000)
- 35 GitHub stars (needs 100)
State
Likely abandoned- No release or commit in over 2 years.
- Last stable release: Jan 31, 2017.
- No releases in the last 12 months.
- First released: Jan 31, 2017.
- 1 open issue on GitHub.
Data from Packagist and GitHub, checked by Larablocks on Nov 27, 2026.
| Install | |
|---|---|
composer require atbox/invi |
|
| Latest Version: | v2.0.0 |
| PHP: | >=5.3.0 |
| Laravel: | 5 |
| License: | MIT |
| Last Updated: | Nov 22, 2021 |
| Links: | GitHub · Packagist |
Invi Package for Laravel 5
This package helps you to create a simple invitation system for your signup or other services. [https://packagist.org/packages/atbox/invi]
Features
- Generate an invitation code for a given email
- Set an expiration date on invites
- Activate or deactivate invites
- Use, unuse or delete invites
Installation
Laravel 5.4:
composer require atbox/invi ^2.0
Laravel 5.0 up to 5.3:
composer require atbox/invi ^1.0
Execute:
composer update
Add this to config/app.php end of providers array:
Atbox\Invi\InviServiceProvider::class,
Add this to config/app.php end of aliases array:
'Invi' => Atbox\Invi\Facades\Invi::class,
Publish the migration file:
php artisan vendor:publish
Run the migration command:
php artisan migrate
Example
Invi::generate("example@domain.com", "2 day", true); // Generate Invitation
if(Invi::check("f22c597305eb1800", "example@domain.com"))
Invi::used("f22c597305eb1800", "example@domain.com");
else
echo Invi::status("f22c597305eb1800", "example@domain.com");
Functions
generate
Generate an invitation code
- Arguments:
- expiration date, accepts timespans like: 2 years | 2 months | 13 days | 1 hour | 23 min | 40 sec
- active
- Returns:
- a JSON array of all invitation information
Invi::generate("example@domain.com", "2 day", true); // Generate Invitation
- Output:
{"code":"f22c5973ebbcca99","email":"example@domain.com","expiration":"2013-05-10 15:58:41 ","active":true,"used":"0"}
check
Validate invitation code
- Arguments:
- invitation code
- Returns:
- boolean
Invi::check("f22c597305eb1800", "example@domain.com");
status
Return invitation code status
- Arguments:
- invitation code
- Returns:
- status: Active, Deactive, Used, Valid, Not Exist
echo Invi::status("f22c597305eb1800", "example@domain.com");
active
Activate an invitation
- Arguments:
- invitation code
Invi::active("f22c597305eb1800", "example@domain.com");
deactive
Deactivate an invitation
- Arguments:
- invitation code
Invi::deactive("f22c597305eb1800", "example@domain.com");
used
Make an invitation used
- Arguments:
- invitation code
Invi::used("f22c597305eb1800", "example@domain.com");
unused
Make an invitation unused
- Arguments:
- invitation code
Invi::unused("f22c597305eb1800", "example@domain.com");
delete
Delete an invitation
- Arguments:
- invitation code
Invi::delete("f22c597305eb1800", "example@domain.com");
License
The MIT License (MIT)
Copyright (c) 2016 Atbox
http://atbox.io https://github.com/atbox/invi-l5
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Related Packages
Laravel Invitation package, existing users can invite others by email
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| v2.0.0 | >=5.3.0 | ~5 | MIT | |
| v1.0.1 | >=5.3.0 | ~5 | MIT | |
| v1.0.0 | >=5.3.0 | ~5 | MIT |