I spend a lot of time on Reddit, and have wanted to explore their public API for years. Last month that itch struck again and I finally decided to scratch it. Armed with a list of data I needed to spider and crunch (more on that another day, maybe), I set out to see what libraries are available. The most popular Reddit API client is written in Python, which I don't grok, and the PHP offerings didn't excite me much. You already know how this story ends; I decided to start writing my own.
Enter Snuze, a new PHP client for Reddit's API.
It's in a preview release state while I get the design stabilized. At the moment, Snuze can:
- Authenticate via OAuth
- Store and re-use OAuth bearer tokens until expired
- Track the API rate limit status and autopause when the bucket's empty
- Fetch subreddit data (and optionally persist to MySQL)
- Fetch link data (and optionally persist to MySQL)
- Fetch user account data
Snuze comes with entity classes to encapsulate th...