itlessons/php-application

Simple PHP micro-framework

Installs: 21

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/itlessons/php-application

0.0.1 2015-03-22 08:59 UTC

This package is not auto-updated.

Last update: 2025-10-11 21:53:57 UTC


README

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.