HOME
Articles

I've been cursing at this quite often. Since this is a tech-related blog with code snippets, command line arguments, ... running it on wordpress means that it always results in having characters replaced by the WordPress default formatting. In the...

Codeception allows writing tests with PHP in descriptional way. Each test is written from a user's perspective in pure PHP in a single readable style. Each test can be executed either as a functional test for frameworks Symfony2, Zend, symfony, or...

I’ve been wanting to publish an article like this since November but I waited a little bit for developers to launch other new interesting and useful WordPress plugins besides the ones that I gathered till then. There are a few types of plugins...

Symfony2 is a reusable set of standalone, decoupled, and cohesive PHP components that solve common web development problems.
Scripts
Generate a password or a random key (I use it to confirm newsletter unsubscribe)
<?php
//use $row->clau = $this->_helper->getHelper('Password')->generate(10, 20);
class Helper_Password extends...

We choose the best language between possible languages and between languages that the browser accepts
Usage:
$accepted = $this->_helper->getHelper('Language')->accepted();
$optimal =...

Extends php doctrine record for search with Zend_Lucene
Usage:
1.- Replace base model:
Ex:
replace
abstract class BaseBlacklisted extends Doctrine_Record
with
abstract class BaseBlacklisted extends...

A class to obfuscate php code:
if (!defined('T_ML_COMMENT')) {
define('T_ML_COMMENT', T_COMMENT);
} else {
define('T_DOC_COMMENT', T_ML_COMMENT);
}
class ofusca {
var $target =...