2017 © Pedro Peláez
 

library calf

A slim router for PHP Web Applications

image

jabernardo/calf

A slim router for PHP Web Applications

  • Monday, July 9, 2018
  • by jabernardo
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Calf

Travis: Build Status License: MIT, (*1)

Yet another Micro-framework for PHP., (*2)

Installation


composer require jabernardo/calf

Hello World

<?php

require("vendor/autoload.php");

$app = new \Calf\App();

$home = new \Calf\HTTP\Route('/', function($req, $res) {
        return $res->write('Hello World!');
    });

$app->add($home);

$app->run();

Configuring Web Server

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ index.php [QSA,L]

Running...


php -S localhost:8888 index.php

Testing


phpunit

Learn more

Please see the project's wiki page here., (*3)

License

The calf is open-sourced software licensed under the MIT license., (*4)

The Versions

09/07 2018

dev-master

9999999-dev https://github.com/jabernardo/calf

A slim router for PHP Web Applications

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

library router php-router

12/02 2018

1.0-RC2

1.0.0.0-RC2 https://github.com/jabernardo/calf

A slim router for PHP Web Applications

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

library router php-router

04/02 2018

1.0-RC1

1.0.0.0-RC1 https://github.com/jabernardo/calf

A slim router for PHP Web Applications

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

library router php-router