The discussion centers around a PHP package for Discourse SSO and API integration, developed by vinothkannans, available via Composer as vinkas/discourse-php. It supports both API interactions (e.g., topic creation) and SSO authentication using GuzzleHttp and Composer, with examples provided. vinothkannans admits the code lacks thorough testing and documentation but plans to improve it in a future release. The package also serves as a dependency for a Laravel-specific package he is developing. erlend_sh notes potential overlap with michaeld’s existing PHP API client, which michaeld criticizes as unnecessary duplication, suggesting contributions to existing projects instead. vinothkannans defends his decision, citing structural differences and personal use-case needs. Later, pnoeric, writing in March 2020, notes that michaeld’s library doesn’t support SSO and finds vinothkannans’ package buggy and immature, recommending cviebrock/discourse-php as a more stable alternative for current use.
I already aware of this existing package. But I didn’t used it. I used famous GuzzleHttp (they used php native curl) and composer. Also in mine it have SSO option too.
After all I created this package because of I am also creating laravel package (which depends it) for easy implementation with laravel features like eloquent model. Yes few laravel packages also already exist for discourse. But I have something different in my mind for development
Für alle, die diesen Beitrag gerade erst finden (es ist jetzt März 2020 … hallo aus der häuslichen COVID-19-Quarantäne!) –
Die von @michaeld erwähnte Bibliothek scheint nur für die Kommunikation mit der API gedacht zu sein. Das hat nichts mit SSO zu tun.
Ich habe mit der Bibliothek von @vinothkannans experimentiert, die er auf GitHub geteilt hat, aber wie er selbst oben erwähnt, hat er nicht viel getestet, und tatsächlich finde ich sie ziemlich fehlerhaft und noch nicht einsatzbereit.
Ich habe diese hier gefunden, und sie funktioniert bei mir gut: