Borsch Framework
Keep it simple.
<?phpuse App\Handler\{HomeHandler, PeoplesHandler};use Borsch\Application\App;/*** @param App $app* @see https://github.com/nikic/FastRoute*/return function(App $app): void {$app->get('/', HomeHandler::class, 'home');$app->match(['GET', 'POST', 'PUT', 'PATCH', 'DELETE'],'/api/peoples[/{id:\d+}]',PeoplesHandler::class,'peoples');};
Approachable
Borsch was designed from the ground up to be easily installed and used to get your app up and running quickly.
Fast
Dead simple, Borsch makes every effort possible to simplify configuration and processes resulting in an extra fast experience.
Elegant
Builds on top of PHP standard, source code and interfaces have been meticulously written to make you feel at home.
Quick setup
The recommended way to install the Borsch Framework is with Composer.
Get started quick using borsch-skeleton as a starting point by running the command :
composer create-project borschphp/borsch-skeleton [your-app-name]
Replace [your-app-name] with the name of your application.
You can then run it with PHP's built-in webserver :
# With built-in PHP server:php -S 0.0.0.0:8080 -t ./public/ ./public/index.php# Or with docker-composer to run the app with docker:docker-compose up -d# Or you can also use lando to run the app (with docker):lando start
You can then visit http://0.0.0.0:8080.
Features
DI Container
Routing
Middlewares
Environment variables
Error Handling
Listeners
Cache
Database Abstraction
Template engine