PHP extension framework