Download the PHP package matthew-jensen/laravel-discourse without Composer
On this page you can find all versions of the php package matthew-jensen/laravel-discourse. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download matthew-jensen/laravel-discourse
More information about matthew-jensen/laravel-discourse
Files in matthew-jensen/laravel-discourse
Package laravel-discourse
Short Description PHP Discourse Forum API for the Laravel Framework
License GPL-3.0
Informations about the package laravel-discourse
PHP Discourse Client for the Laravel Framework
Version Compatibility
Laravel | Discourse Client |
---|---|
> 5.8.x | Untested |
5.8.x | 0.0.2 |
Getting Started
Before going through the rest of this documentation, please take some time to read the Discourse API Documentation. Not all of the API calls are documented, but it's a good place to start. Additional help with SSO: https://meta.discourse.org
Installation
To install through composer, simply put the following in your composer.json
file:
And then run composer install
from the terminal.
Add the following to config/app.php:
You can optionally publish the config file with:
This is the contents of the published config file:
Configure Laravel Discourse
Laravel Env
Set the API Token, Forum url and SSO Token in your .env:
Discourse Env
Enable SSO Via UI: see: "{DISCOURSE_URL}/admin/site_settings/category/required?filter="
Via console:
TODO
- [ ] Artisan command to set sso secret, route and enable sso to install out of the box (could be done via API calls in Facade).
Credits
SSO Helper Methods: cviebrock/discourse-php.
SSO Controller Methods: spinen/laravel-discourse-sso.
API Methods: discoursehosting/discourse-api-php.