Pull in the project using composer:
composer require itexzoz/fivem-php
ServerFilter [ EMPTY, GET_PLAYER, GET_RESOURCES, GET_VARS]
ServerlistFilter [EMPTY, GET_PLAYER, GET_RESOURCES, GET_SERVERS]
DirectServerFilter [PLAYERS, SERVER_INFO]
echo (new Serverslist)->Get()->Server(['149.202.65.148', 30120], ServerFilter::EMPTY);
try {
echo (new Serverslist)->Get()->Global(ServerlistFilter::EMPTY);
} catch (Exception $e) {
}
try {
echo (new DirectServer())->Get()->Server(["149.202.65.148", 30120], DirectServerFilter::SERVER_INFO);
} catch (EmptyDirectServerFilterException $e) {
}