simonsator/party-and-friends-php-lib

PHP library for the PAF Friend Data

1.0.0 2022-11-15 14:47 UTC

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

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.