Claim to fame : phinx LONGBLOB

My largest claim to fame in the Open Source software just got merged in – a pull request to the phinx project, adding support for MySQL’s LONGBLOB (as well as TINYBLOB and MEDIUMBLOB). Ā Phinx is the PHP tool for database migrations. Ā It’s used, among others, by the CakePHP 3 framework.

The patch itself was rather simple and I was surprised that it hasn’t been done by someone else earlier (there was an open issueĀ requesting thisĀ for more than a year). Ā Phinx already had support for BLOB, and for TINYTEXT, MEDIUMTEXT, TEXT, and LONGTEXT. Ā So practically all I had to do was a bit of copy-paste and find-replace. Ā Gladly, there were some unit tests in place already, preventing me from breaking a thing or two.

What I found interesting though, wasn’t the patch itself, but the support of the CakePHP community (thank you guys!). Ā  Every few days someone (even core CakePHP developers) would “thumbs up” the pull request to draw the attention of the maintainer to it. Ā Some people pulled the branch and tested it. Ā Some wrote comments. Ā That was awesome and quite inspiring!

 

 

The worlds collide: jsphp and php.js

I guess we can consider the overlapping between PHP and JavaScript worlds complete. Ā Just within the last couple of days I separately and independently came across two different projects:

  • jsphp, which isĀ a pseudo-implementation of the ECMA 262 standard (JavaScript 8.5.1) for PHP 5.3+
  • php.js, which is a resource that offers community-built JavaScript alternatives to PHP functions

So now you can use JavaScript-like stuff in PHP, and PHP-like stuff in JavaScript. Ā Boom!