PHP code example of atbox / invi
1. Go to this page and download the library: Download atbox/invi library . Choose the download type require .
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
atbox / invi example snippets
Atbox\Invi\InviServiceProvider::class,
'Invi' => Atbox\Invi\Facades\Invi::class,
php artisan vendor:publish
php artisan migrate
Invi::generate("[email protected] ", "2 day", true); // Generate Invitation
if(Invi::check("f22c597305eb1800", "[email protected] "))
Invi::used("f22c597305eb1800", "[email protected] ");
else
echo Invi::status("f22c597305eb1800", "[email protected] ");
Invi::generate("[email protected] ", "2 day", true); // Generate Invitation
{"code":"f22c5973ebbcca99","email":"[email protected] ","expiration":"2013-05-10 15:58:41 ","active":true,"used":"0"}
Invi::check("f22c597305eb1800", "[email protected] ");
echo Invi::status("f22c597305eb1800", "[email protected] ");
Invi::active("f22c597305eb1800", "[email protected] ");
Invi::deactive("f22c597305eb1800", "[email protected] ");
Invi::used("f22c597305eb1800", "[email protected] ");
Invi::unused("f22c597305eb1800", "[email protected] ");
Invi::delete("f22c597305eb1800", "[email protected] ");