PHP is a web scripting language. For OpenStreetMap applications/scripts/examples written in PHP (mostly open source) see Category:PHP
PHP Class to communicate with the API0.6
Sourcecode NOT available here (broken link):
API 0.6 compatible, allows access to user information (including the new User API). XAPI support is planned. Went through the rigorous PEAR PEPr process.