First version of PHP wrapper classes