Download the PHP package vzgcoders/verifier-server without Composer
On this page you can find all versions of the php package vzgcoders/verifier-server. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download vzgcoders/verifier-server
More information about vzgcoders/verifier-server
Files in vzgcoders/verifier-server
Package verifier-server
Short Description Valithor's official webserver for BYOND user verification.
License MIT
Informations about the package verifier-server
Verifier-Server
Valithor's official webserver for BYOND user verification.
Overview
Verifier-Server is a web server designed to handle BYOND user verification.
Features
- Handles GET and POST requests for user verification.
- Supports both filesystem and SQL (SQLite/MySQL) storage.
- Configurable via
.envfile. - Logger mode for detailed request and response logging.
- Graceful shutdown support on all systems with ReactPHP.
- Graceful shutdown support on non-Windows systems with
pcntlextension when not leveraging ReactPHP.
Installation
-
Clone the repository:
-
Install dependencies (PHP 8.2 or newer):
-
Create and configure the
.envfile:Edit the
.envfile to match your configuration:
Usage
-
Start the server:
- The server will listen on the address and port specified in the
.envfile.
Endpoints
GET /verified: Retrieve the list of verified users.POST /verified: Add or delete a verified user. Requires a valid token.
Running Tests
To run the tests, execute the following command:
Using Scripts
Get Verified List
To get the list of verified users, run the following script:
Insert a New Record
To insert a new ss13 and discord record, run the following script:
License
This project is licensed under the MIT License.
Offline verification checks
Run php scripts/lint.php to parse all package source, entry points, scripts, and tests.
CI checks PHP 8.2, 8.3, 8.4, and 8.5.
Run php vendor/bin/phpunit --bootstrap vendor/autoload.php tests/isolated.
These contract tests inject storage that never writes files or opens databases;
they do not load .env, bind a listening socket, or contact verification services.
A server loading test constructs the server and routes a synthetic request without
initializing its network listener.
The older tests outside this directory use configured storage and are not run by CI.
Run php -d xdebug.mode=off scripts/benchmark_lookups.php for a synthetic
lookup comparison. It uses in-memory lists and performs no persistence or HTTP.
Lookup columns are cached until the list changes, preserving existing loose
comparison semantics and original row keys. A snapshot and columns consume
additional memory; database reads still follow the configured storage behavior.
Verification HTTP requests accept application/x-www-form-urlencoded bodies.
Body fields override corresponding legacy headers. Internal header-string calls
remain supported. Successful registrations explicitly return HTTP 200.
All versions of verifier-server with dependencies
vlucas/phpdotenv Version ^5.4
react/http Version ^1.6
monolog/monolog Version ^2.1.1 || ^3.0