Skip to content
cfx-re-php is a library for quick use of the server APIs available on (FiveM, RedM) 🐌
PHP
Branch: master
Clone or download
Latest commit 05e55f0 Sep 7, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src Fix an error Sep 6, 2019
.gitignore Initial commit Feb 23, 2019
LICENSE
README.md Update README.md Apr 6, 2019
composer.json Started rewrite Feb 25, 2019

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.