State Machine PHP API based on HTTP protocols: StitchAPI About StitchAPI Dictionary States: 'path' => action( $request, $response ) Maps: 'path on state' Irons: 'action on state' Workers: middlewares Crosswalks Guideliness Why State Machine API Define States HTTP on StitchAPI Define Workers Errors and exceptions Tutorials Work with .htaccess Updates RexPI include to do states matched with urls. Example (new StitchAPI()) ->get("phpinfo", function( $request, $response ) { $response->write_head( array( "content-type" => 'text/html', "access-control-allow-origin" => "*", "server" => "Stitch Server API", "x-powered-by" => "StichAPI", "some-data-from-db" => "sometvalue1234", "status" => 200 ) ); phpinfo(); }) // View http://yourserver/stitch/index.php?url=phpinfo