4 ms·
Glad this finally made it to the open source scene. I'm really excited about small, powerful tools like this in the PHP space.
by jasonmoo 16y ago
Glad this finally made it to the open source scene. I'm really excited about small, powerful tools like this in the PHP space.
- jordanlev 16y agoYou might also be interested in limonade (a sinatra-esque php framework) -- http://www.limonade-php.net/ http://www.limonade-php.net/
- jasonmoo 16y agoInteresting. It's ~2500 lines of code and it's a micro-framework? :) I like it though. Thanks for the tip!
- Cafesolo 16y agoAnother nice, little PHP framework is GluePHP (http://gluephp.com http://gluephp.com). Hello World using GluePHP: <?php require_once('glue.php'); $urls = array( '/' => 'index' ); class index { function GET() { echo "Hello, World!"; } } glue::stick($urls); ?> Another example with parameter matching and POST method handling: <?php require_once('glue.php'); $urls = array( '/' => 'index', '/(?P<number>\d+)' => 'index' ); class index { function GET($matches) { if (array_key_exists('number', $matches)) { echo "The magic number is: " . $matches['number']; } else { echo "You did not enter a number."; } } function POST() { echo 'The value you entered was ' . $_POST['textbox1']; } } glue::stick($urls); ?>
- jamongkad 16y agoWow looks like web.py for PHP. I think I've seen a similar project whilst lurking around Github the other day.