Project Summary

  Analyzed 5 days ago based on code collected 5 days ago.

For php 5.2+

Because web.py is just so helpful for those quick python projects, why not share the love with PHP?

It is simple enough to grok quickly, with just enough features to get you going. The only magic is that header request methods are mapped by web.php to your classes methods. Unlike web.py, web.php includes an AJAX compatible method.

For a more complete example, please checkout current version from SVN.

'hello',
'#^named/(?P[a-zA-Z_]+)/?$#' => 'named'
);

class hello {

function GET($p)
{
echo 'Welcome to web-php';
}

function POST($p)
{
// like you just posted a form
echo 'request via POST';
}

function AJAX($p)
{
echo "requested via AJAX";
}
}

class named {
function GET($p)
{
var_dump($p);
echo "this is a captured var from the URI: ".$p['namedparam'];
}
}

Web::run($urls);

Share

In a Nutshell, webpy-php-port...

 

Activity

30 Day Summary Apr 15 2013 — May 15 2013

12 Month Summary May 15 2012 — May 15 2013

Community

Ratings

Be the first to rate this project
 
Click to add your rating
 
Review this Project!
 
 
 

Creative Commons License Copyright © 2013 Black Duck Software, Inc. and its contributors, Some Rights Reserved. Unless otherwise marked, this work is licensed under a Creative Commons Attribution 3.0 Unported License . Ohloh ® and the Ohloh logo are trademarks of Black Duck Software, Inc. in the United States and/or other jurisdictions. All other trademarks are the property of their respective holders.