psr-0 compatible ExtDirect implementation