Wednesday, June 04, 2014

PHP5+ Mail, Net_Socket and Net_SMTP

Mail is one of the most popular PEAR packages still, but a little bit aged.

In order to break the back of it being something a little more modern, I forked it and the dependencies to PHP5 compatibility.

We've now got:

  • https://github.com/pear/Mail2 - Not yet released, I figure I'll give it a few days to bake
  • https://github.com/pear/Net_SMTP2 - Released as 0.1.0
  • https://github.com/pear/Net_Socket2 - Released as 0.1.0
If you use any of these components and are doing nasty E_STRICT error notification suppression, you can pretty much drop in the new version.

The key differences include Exceptions being raised, PHP5 syntax and no more E_DEPRECATED etc notices.

No comments: