First draft of PHP Library