1. Go to this page and download the library: Download vormiaphp/vormiaqueryphp 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/ */
use VormiaQueryPhp\Helpers\VormiaSecurityHelper;
if (!VormiaSecurityHelper::isDomainAllowed()) {
abort(403, 'Domain not allowed');
}
use VormiaQueryPhp\Helpers\VormiaSecurityHelper;
if (!VormiaSecurityHelper::validateApiToken()) {
abort(401, 'Invalid API token');
}
use VormiaQueryPhp\Helpers\VormiaSecurityHelper;
if (!VormiaSecurityHelper::userHasRole('admin')) {
abort(403, 'Admin role
use VormiaQueryPhp\Helpers\VormiaSecurityHelper;
$key = request()->ip(); // or use Auth::id() for user-based
if (!VormiaSecurityHelper::rateLimit($key, 10, 60)) {
abort(429, 'Too many requests');
}
use VormiaQueryPhp\Helpers\VormiaSecurityHelper;
if (!VormiaSecurityHelper::isIpAllowed()) {
abort(403, 'IP not allowed');
}
bash
php artisan vormiaquery:install
bash
php artisan vormiaquery:uninstall
bash
php artisan vormiaquery:update
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.