PHPackages                             sajjadrad/invi - 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. [API Development](/categories/api)
4. /
5. sajjadrad/invi

ActiveLibrary[API Development](/categories/api)

sajjadrad/invi
==============

A simple invitation system api

85815PHP

Since Feb 10Pushed 10y ago1 watchersCompare

[ Source](https://github.com/sajjadrad/invi-l4)[ Packagist](https://packagist.org/packages/sajjadrad/invi)[ RSS](/packages/sajjadrad-invi/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Invi Package for Laravel 4
==========================

[](#invi-package-for-laravel-4)

This package help you to make a simple invitation system for your signup or other services.

You can use laravel 5 version at here \[\]

Features
--------

[](#features)

- Generate invitation code with email.
- Set expiration date
- Active or deactive invite
- Use it,unsed it or delete it

Installation
------------

[](#installation)

add this to composer.json require:

```
"sajjadrad/invi": "dev-master"
```

and add this to app/config/app.php end of providers array:

```
'Sajjadrad\Invi\InviServiceProvider',
```

execute:

```
composer update
```

if Invi class not found run this command for autoload:

```
php artisan dump-autoload
```

Examples
--------

[](#examples)

```
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
---------

[](#functions)

generate
========

[](#generate)

generate an invitation code

- Arguments:
    - email
    - expiration date : 2 year 2 month 13 day 1 hour 23 min 40 sec
    - active
- Return:
    - 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
=====

[](#check)

validate invitation code

- Argouments:
    - invitation code
    - email
- Return:
    - Boolean

```
Invi::check("f22c597305eb1800","example@domain.com");
```

status
======

[](#status)

return invitation code status

- Argouments:
    - invitation code
    - email
- Return:
    - Status : Active,Deactive,Used,Valid,Not Exist

```
echo Invi::status("f22c597305eb1800","example@domain.com");
```

active
======

[](#active)

activate an invitation

- Argouments:
    - invitation code
    - email

```
Invi::active("f22c597305eb1800","example@domain.com");
```

deactive
========

[](#deactive)

deactivate an invitation

- Argouments:
    - invitation code
    - email

```
Invi::deactive("f22c597305eb1800","example@domain.com");
```

used
====

[](#used)

make an invitation used

- Argouments:
    - invitation code
    - email

```
Invi::used("f22c597305eb1800","example@domain.com");
```

unused
======

[](#unused)

make an invitation unused

- Argouments:
    - invitation code
    - email

```
Invi::unused("f22c597305eb1800","example@domain.com");
```

delete
======

[](#delete)

delete an invitation

- Argouments:
    - invitation code
    - email

```
Invi::delete("f22c597305eb1800","example@domain.com");
```

License
-------

[](#license)

The MIT License (MIT)

Copyright (c) 2014 Sajjad Rad

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.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/f22c5973d6ed73cc19b4ce76671fc219484a9be0605f388c3d69f5d1f7e1baa9?d=identicon)[sajjadrad](/maintainers/sajjadrad)

---

Top Contributors

[![sajjadrad](https://avatars.githubusercontent.com/u/1608837?v=4)](https://github.com/sajjadrad "sajjadrad (12 commits)")

### Embed Badge

![Health badge](/badges/sajjadrad-invi/health.svg)

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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