Stinky PHP Framework
PHP
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
LICENSE.md
README.md
example.php
skunk.php

README.md

What's Skunk?

Skunk is the stinky PHP (micro)framework!

It's a silly little framework I put together for fun. It's targeted to PHP 5.3+, since it's meant to use lambda functions. (You can sneak by on older versions by using create_function but that is really stinky!)

Sort of insipred by Sinatra, Bottle, etc.

Usage

// Initialize
$s = new Skunk();

// Add a route
$s->get(
  '/hi(/<name>)',
  function ( &$s, $name = null ) {
    $s->body = 'Hello' . ( ( is_null( $name ) ) ? '' : " $name" ) . '!';
  }
);

// Run it!
$s->run();

Status

Ever evolving (and bug fixing) but it works.

In use?

Yes! It is in use on Number Laundry which is also open source.

Okay, but what about...

Database?

Might I recommend idiorm?

ORM?

Might I recommend paris?

Templates?

Might I recommend mustache.php?

Other Stuff?

Might I recommend writing it and sending a pull request?

License

It's BSD licensed, and it includes code from Kohana (the router)

http://opensource.org/licenses/bsd-license.php