Download the PHP package ikechukwukalu/requirepin without Composer
On this page you can find all versions of the php package ikechukwukalu/requirepin. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download ikechukwukalu/requirepin
More information about ikechukwukalu/requirepin
Files in ikechukwukalu/requirepin
Download ikechukwukalu/requirepin
More information about ikechukwukalu/requirepin
Files in ikechukwukalu/requirepin
Vendor ikechukwukalu
Package requirepin
Short Description A laravel package for pin confirmation and validation before processing requests to a specified route
License MIT
Package requirepin
Short Description A laravel package for pin confirmation and validation before processing requests to a specified route
License MIT
Please rate this library. Is it a good library?
Informations about the package requirepin
REQUIRE PIN
A simple Laravel package that provides a middleware which will require users to confirm routes utilizing their pin for authentication.
REQUIREMENTS
- PHP 7.3+
- Laravel 8+
STEPS TO INSTALL
php artisan vendor:publish --tag=rp-migrations
php artisan migrate
- Set
REDIS_CLIENT=predis
andQUEUE_CONNECTION=redis
within your.env
file. php artisan queue:work
ROUTES
Api routes
- POST
api/change/pin
- POST
api/pin/required/{uuid}
Web routes
- POST
change/pin
- POST
pin/required/{uuid}
- GET
change/pin
- GET
pin/required/{uuid?}
NOTE
- To receive json response add
'Accept': 'application/json'
to your headers.
HOW IT WORKS
- First, it's like eating candy.
- The
require.pin
middlware should be added to a route or route group. - This middleware will arrest all incoming requests.
- A temporary URL (
pin/required/{uuid}
) is generated for a user to authenticate with the specified inputconfig(requirepin.input)
using their pin. - It either returns a
JSON
response with the generated URL or it redirects to a page where a user is required to authenticate the request by entering their pin into a form that will send a POST request to the generated URL when submitted. - To display return payload within blade:
Reserved keys for payload
_uuid
_pin
expires
signature
return_payload
pin_validation
PUBLISH CONFIG
php artisan vendor:publish --tag=rp-config
PUBLISH LANG
php artisan vendor:publish --tag=rp-lang
PUBLISH VIEWS
php artisan vendor:publish --tag=rp-views
LICENSE
The RP package is an open-sourced software licensed under the MIT license.
All versions of requirepin with dependencies
PHP Build Version
Package Version
Requires
doctrine/dbal Version
^3.1|^4.0
illuminate/auth Version ^8.0|^9.0|^10.0|^11.0
illuminate/bus Version ^8.0|^9.0|^10.0|^11.0
illuminate/broadcasting Version ^8.0|^9.0|^10.0|^11.0
illuminate/contracts Version ^8.0|^9.0|^10.0|^11.0
illuminate/database Version ^8.0|^9.0|^10.0|^11.0
illuminate/events Version ^8.0|^9.0|^10.0|^11.0
illuminate/http Version ^8.0|^9.0|^10.0|^11.0
illuminate/notifications Version ^8.0|^9.0|^10.0|^11.0
illuminate/queue Version ^8.0|^9.0|^10.0|^11.0
illuminate/routing Version ^8.0|^9.0|^10.0|^11.0
illuminate/support Version ^8.0|^9.0|^10.0|^11.0
illuminate/validation Version ^8.0|^9.0|^10.0|^11.0
illuminate/view Version ^8.0|^9.0|^10.0|^11.0
laravel/sanctum Version ^2.8|^3.2|^4.0
laravel/ui Version ^3.1|^4.4
php Version >=7.3
predis/predis Version ^2.0
stevebauman/location Version ^6.6|^7.0
symfony/http-foundation Version ^5.4|^6.0|^7.0
illuminate/auth Version ^8.0|^9.0|^10.0|^11.0
illuminate/bus Version ^8.0|^9.0|^10.0|^11.0
illuminate/broadcasting Version ^8.0|^9.0|^10.0|^11.0
illuminate/contracts Version ^8.0|^9.0|^10.0|^11.0
illuminate/database Version ^8.0|^9.0|^10.0|^11.0
illuminate/events Version ^8.0|^9.0|^10.0|^11.0
illuminate/http Version ^8.0|^9.0|^10.0|^11.0
illuminate/notifications Version ^8.0|^9.0|^10.0|^11.0
illuminate/queue Version ^8.0|^9.0|^10.0|^11.0
illuminate/routing Version ^8.0|^9.0|^10.0|^11.0
illuminate/support Version ^8.0|^9.0|^10.0|^11.0
illuminate/validation Version ^8.0|^9.0|^10.0|^11.0
illuminate/view Version ^8.0|^9.0|^10.0|^11.0
laravel/sanctum Version ^2.8|^3.2|^4.0
laravel/ui Version ^3.1|^4.4
php Version >=7.3
predis/predis Version ^2.0
stevebauman/location Version ^6.6|^7.0
symfony/http-foundation Version ^5.4|^6.0|^7.0
The package ikechukwukalu/requirepin contains the following files
Loading the files please wait ....