Wall4PHP is one of the framework that I recommend to mobile web application developer for the number of useful information that you may find inside it and related to different models of mobile phones.
WALL4PHP is implementation of WALL, Wireless Abstraction Library, originally created by Luca Passani for the Java platform; for PHP. The main purpose of Wall is to generate a generalized markup language which help the web application to be compatible with most available model in the market.
Wall is used like a template engine, the sample below for example will show your user agent :
<?php include_once('../wall_prepend.php'); ?><wall:document><wall:xmlpidtd />
<wall:title enforce_title="true">My Document</wall:title>
<!--sent to all devices as it is -->
<meta name="value" content="value" />
<?php echo getenv('HTTP_USER_AGENT'); ?>
Body part 2