Skip to content
Emanuele Minotto edited this page May 1, 2016 · 12 revisions

Welcome to the crystal wiki!

This is a PHP (5.3+) microframework based on anonymous functions.

$mf = require_once('crystal.php');

$mf('/', function () {
    echo 'Hello World!';
});

Features

  • 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 and settings system
  • named patterns
  • PSR-0 autoloader
  • PSR-3 logger (PHP 7+ only)
  • PHP 7 ready