We are in need of contributors to update our framework. Send an email to jqmphp@googlegroups.com.

What is it?

jqmPhp is a package of PHP classes that facilitates the creation HTML files for use with jQuery Mobile Framework. All classes in the jqmPhp package can be converted to string and printed with an echo function.

1
echo(new jqmPhp());

Minimal Example

Make your first application with jqmPhp:

1
2
3
4
5
6
<?php 
    include 'lib/jqmPhp.php';
    $j = new jqmPhp();
    $j->addBasicPage('', 'Hello World', 'It\'s works!');
    echo $j;
?>

Generated Code:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<!DOCTYPE html>
<html>
    <head xmlns="http://www.w3.org/1999/xhtml">
        <meta charset="UTF-8"></meta>
        <link type="text/css" rel="stylesheet"
href="http://code.jquery.com/mobile/1.0a3/jquery.mobile-1.0a3.min.css">
</link>
        <script type="text/javascript"
        src="http://code.jquery.com/jquery-1.5.min.js"></script>
        <script type="text/javascript"
src="http://code.jquery.com/mobile/1.0a3/jquery.mobile-1.0a3.min.js">
        </script>
        <title></title>
    </head>
    <body>
        <div data-role="page">
            <div data-role="header" data-position="inline">
                <h1>Hello World</h1>
            </div>
            <div data-role="content">It's works!</div>
        </div>
    </body>
</html>

Licensing

This project is open source (GNU GPL License v3) and is hosted Google Code Project Hosting (http://code.google.com/p/jqmphp/).

 

Source

Use this subversion command to anonymously check out the latest project source code:

svn checkout http://jqmphp.googlecode.com/svn/trunk/ jqmphp-read-only

 

 

Questions, Bugs and Suggestions

Please, report bugs, suggestions and questions to jqmphp@googlegroups.com or use the contact form.