dev-services-and-typehints
dev-services-and-typehintsA Small Application Framework
Unlicense
A Small Application Framework
Tagline: "Because PHP IS my framework", (*1)
P is a PHP framework of very limited scope. It contains more architecture than lines of code. This is on purpose, this likely won't change., (*2)
New features need to be extremely vetted for inclusion in this framework. Why? Because here, NIH means "not in here". Whatever feature you think would be nice to have probably already has a better place where it could live., (*3)
Out of the box, P delivers just enough features to allow PHP developers to build structurally sound applications without a lot of boilerplate code. P's learning curve is shallow enough so that developers can be immediately productive with just a well rounded understanding of PHP itself., (*4)
Things you'll like or won't miss in P:, (*5)
That said P promotes an appliation architecture with just a handful of concepts and features:, (*6)
1) Use the skeleton project:, (*7)
composer create-project p/p-micro-skeleton ./project
2) Create a composer.json and install:, (*8)
"require": { "pframework/p": "dev-master" }
The painfully simple and useless hello world:, (*9)
<?php require __DIR__ '/../vendor/autoload.php'; (new P\Application())->addRoute(['GET /', function () { echo 'Hello World'; }])->run();
Todo., (*10)
Todo., (*11)
A Small Application Framework
Unlicense