Skip to content

LearXD/WebMaster

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

WebMaster v0.1

A small REST query library for PocketMine-MP

Types of Query:

  • GET
  • POST
  • PUT
  • PATCH
  • DELETE
  • OPTIONS
  • HEAD
METHOD EXAMPLE
GET []
POST ['field1' => 'data', 'field2' => 'data2']

🔨 Usage:

The WebMaster class receives 3 parameters as a constructor function, first the address, according to the query context (which receives the query result as a parameter), and finally the array with fields.

  • How to correctly call the class:
$query = new \your\directory\WebMaster('https://localhost', function($result) { var_dump($request); }, [/*WHAT COMES HERE IS REGARDING THE TABLE ABOVE...*/]);