first commit - php api rev 7