This is a PHP (5.3+) microframework based on anonymous functions and anonymous classes.
<?php
$mf = require_once('crystal.php');
$mf('/', function () {
echo 'Hello World!';
});
- requested URLs matched using regular expressions
- request methods (matches using regular expressions too)
- differenced FIFO queues for each
$priority
- command line usage
- integrated Dependency Injection (based on PSR-11) and settings system
- named patterns
- an Autoloader based on the PSR-0 standard
- a Template Engine
- a Logger available from PHP 5, based on PSR-3
- a Database interaction system
- an Event Listener to listen and dispatch events
- no external dependencies, just a single PHP file!