Skip to content

itlessons/php-application

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

php-application, a simple web framework

php-application is a very simple micro-framework designed for the study.

<?php

require_once __DIR__.'/../vendor/autoload.php';

$app = new Application();

$app->get('/hello/(name:str)', function ($name) use ($app) {
  return 'Hello '.$app->escape($name);
});

$app->run();

php-application works with PHP 5.4 or later.

Installation

The recommended way to install php-application is through Composer:

php composer.phar require itlessons/php-application "*"

Alternatively, you can download the php-application.zip file and extract it.

More Information

Read the documentation for more information.

About

Simple PHP micro-framework

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages