phpfox / framework
A simple PHP micro-framework
Fund package maintenance!
JustSteveKing
Requires
- php: ^8.0
- juststeveking/config: ^2.0
- minicli/minicli: ^2.2
- phpfox/container: ^0.1.0
Requires (Dev)
- pestphp/pest: ^1.4
- spatie/ray: ^1.26
- vimeo/psalm: ^4.7
README
This is the repository for the PHP-Fox framework, a simple and lightweight PHP micro-framework designed for APIs.
Installation
You should use one of the framework templates instead of installing this package, however if you want to create your own template - please follow these instructions:
Desired API
The code below depicts how we would like our framework API to work, providing a simple and clean developer experience
<?php declare(strict_types=1); use PHPFox\Application; require __DIR__ . '/../vendor/autoload.php'; $app = Application::boot( basePath: __DIR__ . '/../', // root directory of project ); // Routes are preloaded // Config is preloaded // Container definitions are preloaded $app->run();