mizmoz/app

Mizmoz App

0.1.1 2018-05-06 13:34 UTC

This package is not auto-updated.

Last update: 2024-04-21 05:44:53 UTC


README

Aims

  • Be lightweight, we'll only be serving API requests
  • Use PHP-FIG where possible
  • Be very opinionated (I hate boilerplate)
  • Handle both HTTP and CLI
// Use an index file for all configs
$config = new Config('./configs/index.php');

// At it's most basic
App::run($config);

Project Structure

/App
    /Http
        /App.php - HTTP Application
        /routes.php - contains all HTTP route definitions
    /Cli
        /App.php - CLI Application
        /commands.php - contains all console commands
    /Command
/config
/public
/tests