Skip to content

alchimik/fucking-small

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fucking Small Framework

What is this?

A fucking small web application framework built with zero dependencies.

What do you get?

A sample application in ./app

Run it using PHP's web server:

php -S localhost:8000 -t app/web app/bootstrap.php

A framework consisting of the following components

  • A IoC container capable of resolving attached services as well as auto resolving dependencies not attached to the container via reflection

  • A Router capable of mapping patterns within urls to controller actions and parameters

  • Automatic dependency injection of all arguments (via type hinting, the container and parameters discovered via the router / dispatcher) into controller methods

  • A tiny (not at all complete) HTTP Request/Response abstraction

How do I use?

Take a look at the code in the sample app and the tests.

Running the test suite

Prerequisites

Composer:

curl -sS https://getcomposer.org/installer | php

PHPUnit:

php ./composer.phar install

Run the suite:

./vendor/bin/phpunit

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 99.7%
  • CSS 0.3%