Added base class for PHP