2017 © Pedro Peláez
 

library spiget4php

PHP-wrapper for the spiget.org-api.

image

th3shadowbroker/spiget4php

PHP-wrapper for the spiget.org-api.

  • Saturday, July 7, 2018
  • by Th3Shadowbroker
  • Repository
  • 1 Watchers
  • 0 Stars
  • 10 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

Spiget4PHP

Spiget4PHP is a PHP-wrapper for the Spiget-API created by inventivetalent (GitHub | Website), (*1)

Composer

You can install the Spiget4PHP core using composer (View on packagist):, (*2)

composer require th3shadowbroker/spiget4php

If you want to work more object-oriented it's recommended to install the obj-package too. (View on packagist | Git), (*3)

composer require th3shadowbroker/spiget4php-obj

Example

require 'SpigetAPI.php';
use de\m4taiori\spiget4php\SpigetAPI as SpigetAPI;

//Yes you can use 'new' but getInstance() is a better way because you don't have to create a ton of instances.
$spiget = SpigetAPI::getInstance();

/*
 * Some functions use optional arguments/parameters. Use null if you want to use the default value
 * defined by the spiget-web-api.
 * 
 * Nearly all functions in this lib throw SpigetExceptions if something's going horribly wrong or is just invalid. However
 * if you want to receive nulls instead of exceptions you can disable exceptions by using setThrowExceptions()
 * at any time.
 */

//Let's get a list of the categories
$categories = $spiget->getCategoryList();

//All results will be returned as PHP assoc.-array
var_dump($categories); //<-- Let's see the result as it is in PHP

Suggestions and issues

If you have any suggestions or want to report an issue don't be afraid of using the issue-tracker. However most of the time I'm not able to work on my "freetime-projects" so feel free to submit pull-request even if you've only corrected a typo :octocat:, (*4)

Plans for the future

I've already planned the implementation of the webhook-support provided by spiget. I haven't implemented webhook-support yet because I don't need it for my purposes at the moment., (*5)

Documentation

If you want to learn more about Spiget4PHP visit the docs., (*6)

Contact

Follow or just message me on social-media: - Twitter - Keybase - M4taiori.de, (*7)

The Versions

07/07 2018

dev-master

9999999-dev

PHP-wrapper for the spiget.org-api.

  Sources   Download

MIT

by Avatar Th3Shadowbroker

07/07 2018

v1.0.3

1.0.3.0

PHP-wrapper for the spiget.org-api.

  Sources   Download

MIT

by Avatar Th3Shadowbroker

07/07 2018

dev-dev/th3shadowbroker

dev-dev/th3shadowbroker

PHP-wrapper for the spiget.org-api.

  Sources   Download

MIT

by Avatar Th3Shadowbroker

02/07 2018

v1.0.2

1.0.2.0

PHP-wrapper for the spiget.org-api.

  Sources   Download

MIT

by Avatar Th3Shadowbroker

01/07 2018

v1.0.1

1.0.1.0

PHP-wrapper for the spiget.org-api.

  Sources   Download

MIT

by Avatar Th3Shadowbroker