Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Directory Structure

Guilherme Nascimento edited this page Jan 16, 2026 · 8 revisions

Note: This documentation covers Inphinit 1.0. For the 2.1 documentation, visit: https://inphinit.github.io/en/docs/structure.html

The structure of the folders within the project is something like:

├───index.php
└───system
    ├───application
    │   ├───Config
    │   ├───Controller
    │   ├───Model
    │   └───View
    ├───boot
    └───vendor
  • index.php contains global constants for setup start.php

  • system folder contains all application structure

  • application folder contains:

    • Controller folder contains your Controllers, that are used by the routes and namespace \Controller
    • Config folder contains your configuration files, you can use Inphinit\Experimental\Config for load variables
    • Model folder contains your Models, you need use namespace Model;. Although the inphinit does not have its own ORM yet it is possible to use other ORMs installing via composer
    • View folder contains your Views, for use a View you can call method Inphinit\Viewing\View::render, for more details see Views
  • boot folder contains:

    • importpackages.php used for import packages from composer
    • namespaces.php store packages path after perform importpackages.php, you can edit this file if not using composer
    • server.php used by server.bat or server.sh
    • start.php used by index.php for configure and initiate the framework
  • vendor folder contains composer-autoload and packages installed using composer or manually (see namespaces.php)

Clone this wiki locally