Protecting and licensing your PHP code: PADL - PHP Aplication Distribution Licensing

Even working with free software, we often need to protect our code.

There are good tools there (proprietary) for this, is that I use Ioncube.

But even if go deep in the proprietary world, you must use licenses with expiration limit per machine, domain, etc..

Herein only the proprietary tools provide that, but are expensive (Ioncube itself).

Researching the subject, I found an old class, but very well done. I updated the code, applied codding standards and some docs and PADL was "reborn": PHP Aplication Distribution Licensing.

Case and accent insensitive searchs in MongoDB and PHP

The problem

Comming from MySQL, programmers gets a little lazy about searching strings. MySQL does all the dirty job for you: search joao and find joao, joão, João, JOÃO and any other variants.

But... when you start using MongoDB, even with his powerfull features, well, you get lost. Let's find a solution.

The Solution

A PHP function using Regular Expression (REGEX) to query MongoDB.

! MongoDB has evolved since this article was written (2013). Consider using MongoDB Text Indexes as a waaaay better solution.