Package Data | |
---|---|
Maintainer Username: | sajjadrad |
Maintainer Contact: | sajjad.273@gmail.com (Sajjad Rad) |
Package Create Date: | 2014-02-28 |
Package Last Update: | 2016-02-10 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-19 03:03:30 |
Package Statistics | |
---|---|
Total Downloads: | 581 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 8 |
Total Watchers: | 2 |
Total Forks: | 5 |
Total Open Issues: | 0 |
This package help you to make a simple invitation system for your signup or other services.
You can use laravel 5 version at here [https://github.com/Atbox/invi-l5]
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
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");
generate an invitation code
Invi::generate("example@domain.com","2 day",True); // Generate Invitation
{"code":"f22c5973ebbcca99","email":"example@domain.com","expiration":"2013-05-10 15:58:41 ","active":true,"used":"0"}
validate invitation code
Invi::check("f22c597305eb1800","example@domain.com");
return invitation code status
echo Invi::status("f22c597305eb1800","example@domain.com");
activate an invitation
Invi::active("f22c597305eb1800","example@domain.com");
deactivate an invitation
Invi::deactive("f22c597305eb1800","example@domain.com");
make an invitation used
Invi::used("f22c597305eb1800","example@domain.com");
make an invitation unused
Invi::unused("f22c597305eb1800","example@domain.com");
delete an invitation
Invi::delete("f22c597305eb1800","example@domain.com");
The MIT License (MIT)
Copyright (c) 2014 Sajjad Rad
http://sajjadrad.com https://github.com/sajjadrad/invi-l4
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.
http://opensource.org/licenses/MIT