dbleu/php-libary

PHP-Libary for https://discord-botlist.eu/

dev-main 2022-11-07 11:58 UTC

This package is not auto-updated.

Last update: 2022-11-22 20:43:50 UTC


README


Welcome 👋‹
This package offers you a more user friendly and easier way to interact with the discord-botlist.eu HTTP api. This package is made by KeksDev.

Install

composer require dbleu/php-libary

Getting started

<?php
use dbleu\Main;

require_once __DIR__ . '/vendor/autoload.php';

// Init Libary
$api = new Main("<API Token>");

// Get an array with all dates when the bot was voted for
$votes = $api->getVotes();
var_dump($votes);

// Get the current information about the bot
$information = $api->getBotData();
var_dump($information);

// Update the server count
$newCount = 1;
$count = $api->updateGuildCount($newCount);
var_dump($count);

getVotes()

Parameter Type
none none

Array

getBotData()

Parameter Type
none none

Object

updateGuildCount(serverCount)

Parameter Type
updateGuildCount Integer
{
  "updated": Array,
  "bot": Object
}