simonsator / party-and-friends-php-lib
PHP library for the PAF Friend Data
Requires
- php: ^7.4|^8.0
Requires (Dev)
- phpunit/phpunit: ^9.5
- roave/security-advisories: dev-latest
This package is auto-updated.
Last update: 2025-06-16 05:41:15 UTC
README
A PHP composer library for Party And Friends (Free for Bungeecord , Extended For Bungeecord/Velocity , Extended For Spigot ( you need to use MySQL as a data source), or Free For Velocity), which allows developers to access Party And Friends data in PHP.
Requirements
- PHP 7.4 or higher
- Composer
- A MySQL server containing the Party And Friends (Free for Bungeecord , Extended For Bungeecord/Velocity , Extended For Spigot ( you need to use MySQL as a data source), or Free For Velocity) data which should be accessed
Installation
Add the following lines to your composer file:
{ "require": { "simonsator/party-and-friends-php-lib": "dev-master" } }
Where to start
A demo project can be found here. To get started, you
should call the constructor of the class Simonsator\PartyAndFriends\PAFPlayerManager
. You need to provide the table
prefix used by Party And Friends and a PDO object with an active connection to the MySQL database which is used by Party
And Friends. Using the methods of the PAFPlayerManager
you can PAFPlayer
objects, with which you can access data of
players.