# Using PHP library to retrieve latest topics from a specific category

**URL:** <https://meta.discourse.org/t/using-php-library-to-retrieve-latest-topics-from-a-specific-category/206334>\
**Category:** Development\
**Created:** [October 18, 2021, 11:36am UTC](https://meta.discourse.org/t/using-php-library-to-retrieve-latest-topics-from-a-specific-category/206334 "2021-10-18T11:36:28Z")\
**Posts on this page:** 3\
**Page:** 1

## AI-generated summary

[PeterBrightt](/t/-/206334/1) seeks advice on using the [pnoeric/discourse-api-php](https://github.com/pnoeric/discourse-api-php) library to retrieve the latest 20 topics from a specific category, noting plans to implement user-based category filtering. [merefield](/t/-/206334/2) suggests the library might be a fork of the original [communiteq/discourse-api-php](https://github.com/communiteq/discourse-api-php), noting that the Communiteq team is active in the community and could provide support. Additionally, [michaeld](/t/-/206334/3) recommends an alternative, potentially better-maintained and more modern library discussed in the [Discourse SSO and API helper for PHP](https://meta.discourse.org/t/discourse-sso-and-api-helper-for-php/51172) thread.

<div class="post-metadata">

**Author:** ![PeterBrightt](https://avatars.discourse-cdn.com/v4/letter/p/b5ac83/32.png) [@PeterBrightt](https://meta.discourse.org/u/PeterBrightt)\
**Post date:** [October 18, 2021, 11:36am UTC](https://meta.discourse.org/t/using-php-library-to-retrieve-latest-topics-from-a-specific-category/206334/1 "2021-10-18T11:36:28Z")

</div>

Hello everyone!  
I just found [this](https://github.com/pnoeric/discourse-api-php) library and I’m ready to use it. My goal is to get the latest 20 topics from a specific category (actually I’ll use some kind of filtering for that from which category to get these topics based on user choice, but for now I’ll start with 1 default category). Could someone give me advice as to how I can do this in the most correct way possible using this library?

Thanks in advance,  
Peter 🕶

---

<div class="post-metadata">

**Author:** ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)\
**Post date:** [October 18, 2021, 11:44am UTC](https://meta.discourse.org/t/using-php-library-to-retrieve-latest-topics-from-a-specific-category/206334/2 "2021-10-18T11:44:16Z")

</div>

This may be the original: [GitHub - communiteq/discourse-api-php: PHP API client for Discourse · GitHub](https://github.com/communiteq/discourse-api-php)

The Communiteq guys are part of this community and may be able to talk to it.

---

<div class="post-metadata">

**Author:** ![michaeld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/michaeld/32/1594_2.png) [@michaeld](https://meta.discourse.org/u/michaeld)\
**Post date:** [October 19, 2021, 8:02am UTC](https://meta.discourse.org/t/using-php-library-to-retrieve-latest-topics-from-a-specific-category/206334/3 "2021-10-19T08:02:22Z")

</div>

This one might be better maintained and more modern [Discourse SSO and API Helper for PHP](https://meta.discourse.org/t/discourse-sso-and-api-helper-for-php/51172)
