Skip to content
FiveM-PHP is a library for quick use of the server APIs available on FiveM 🐌
PHP
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.gitignore
LICENSE
README.md
composer.json

README.md

FiveM-PHP 🐌

packagist-stable packagist-license packagist-download

Installation

Pull in the project using composer: composer require itexzoz/fivem-php

  • From servers list
(new FiveM())->target(['149.202.65.148', 30130])->fromServersList()->status();
(new FiveM())->target(['149.202.65.148', 30130])->fromServersList()->get();
(new FiveM())->target(['149.202.65.148', 30130])->fromServersList()->getPlayers();
(new FiveM())->target(['149.202.65.148', 30130])->fromServersList()->getInfos();
(new FiveM())->target(['149.202.65.148', 30130])->fromServersList()->getResources();
(new FiveM())->target(['149.202.65.148', 30130])->fromServersList()->getRequest(); // GuzzleHttp
(new FiveM())->target()->fromServersList()->findPlayer(['discord', 150336961867939840]);
  • From direct connect
(new FiveM())->target(['149.202.65.148', 30130])->fromDirectConnect()->status();
(new FiveM())->target(['149.202.65.148', 30130])->fromDirectConnect()->get();
(new FiveM())->target(['149.202.65.148', 30130])->fromDirectConnect()->getPlayers();
(new FiveM())->target(['149.202.65.148', 30130])->fromDirectConnect()->getInfos();
(new FiveM())->target(['149.202.65.148', 30130])->fromDirectConnect()->getResources();
You can’t perform that action at this time.