phpfox/framework

A simple PHP micro-framework

Fund package maintenance!
JustSteveKing

0.0.1 2021-06-17 08:16 UTC

This package is auto-updated.

Last update: 2022-11-18 13:04:44 UTC


README

Latest Version PHP Version tests

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();