u/rmccue
In this archive from Nov 2009 to Jun 2026
- 13
- posts
- 302
- comments
- 3
- media
- 1.3k
- score
Top posts
Requests for PHP, a HTTP request library for humans (finally released it!)
requests.ryanmccue.infoI've just released SimplePie 1.3 (codenamed "Boysenberry")
simplepie.org/blog/2012/07/07/one-dot-threeI just released Requests 1.6, with full SSL verification, multiple requests, cookies and more!
journal.ryanmccue.info/269/requests-for-php-vers...We're throwing an event for the WP REST API in January, join us?
poststatus.com/a-day-of-rest-a-conference-devote...Not downloaded yet
Mainly it helps with diffs. When you add a new item to a list, without trailing commas, the diff looks like:
With trailing commas, it looks like:
It's a WordPress function used for translation: https://codex.wordpress.org/I18n_for_WordPress_Developers
Keep in mind, this is a third party extension on PECL, not part of PHP core. The documentation is on php.net since PECL extensions usually keep their information there.
(The big hint at this is that it uses namespaces, which none of core PHP uses.)
orhas lower precedence than=.On the other hand,
$c = $a || $b;would work.I'm the current maintainer of SimplePie. We're still working on it on GitHub, but the code's fairly stable. The
masterbranch there is 1.3-dev, which drops PHP 4 compatibility, which will get rid of anyE_DEPRECATEDerrors. Theonedottwobranch is 1.2.1-dev, which is a set of bug fixes to 1.2 that we plan to release as a bugfix release at some point.If you need any help/advice with SimplePie, please feel free to ask! :)