Plugin framework for PHP applications