Download the PHP package pnoeric/discourse-api-php without Composer
On this page you can find all versions of the php package pnoeric/discourse-api-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download pnoeric/discourse-api-php
More information about pnoeric/discourse-api-php
Files in pnoeric/discourse-api-php
Package discourse-api-php
Short Description Discourse API library for PHP
License GPL-2.0-or-later
Homepage https://github.com/pnoeric/discourse-api-php
Informations about the package discourse-api-php
discourse-api-php
This is a composer packaged version of the PHP library for accessing the Discourse API.
More about Discourse: https://www.discourse.org/
Discourse API docs: https://docs.discourse.org/
Features
- Supports header-based authentication (required by Discourse as of April 2020)
- Includes test suite for developers
Changelog
- 2.1 - Fixing a nasty little bug
History
Originally as published by DiscourseHosting at https://github.com/discoursehosting/discourse-api-php.
With contributions from:
- https://github.com/richp10
- https://github.com/timolaine
- https://github.com/vinkashq
- https://github.com/kazad/discourse-api-php
- https://github.com/timolaine/discourse-api-php
Many methods added and major refactor by Eric Mueller March/April 2020, now lives at https://github.com/pnoeric/discourse-api-php.
How to Use
Just include it with Composer:
composer require pnoeric/discourse-api-php
And then:
For Developers
I'd love to see your changes and improvements to this library! Please feel free to submit a pull request, and please include a new test if you are adding/refactoring methods.
Testing
Setup
- Run
composer install
to install PHPUnit and other helper libraries - Copy the
.env.example
file in the tests folder, change the name to.env
and fill in the blanks
Running tests
In the terminal, from the root directory of this project, enter: ./vendor/bin/phpunit tests/DiscourseApiTest.php
All versions of discourse-api-php with dependencies
ext-json Version *