-
Notifications
You must be signed in to change notification settings - Fork 8
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 -
systemfolder contains all application structure -
applicationfolder contains:-
Controllerfolder contains your Controllers, that are used by the routes and namespace\Controller -
Configfolder contains your configuration files, you can useInphinit\Experimental\Configfor load variables -
Modelfolder contains your Models, you need usenamespace Model;. Although the inphinit does not have its own ORM yet it is possible to use other ORMs installing via composer -
Viewfolder contains your Views, for use a View you can call methodInphinit\Viewing\View::render, for more details see Views
-
-
bootfolder contains:-
importpackages.phpused for import packages from composer -
namespaces.phpstore packages path after performimportpackages.php, you can edit this file if not using composer -
server.phpused byserver.batorserver.sh -
start.phpused by index.php for configure and initiate the framework
-
-
vendorfolder contains composer-autoload and packages installed using composer or manually (seenamespaces.php)
Inphinit the PHP Framework is writed using PSR-1, PSR-2 and PSR-4, you can use Controllers, Views, Routes
- Getting Started
- About
- Performance
- Directory Structure
- Constants
- Routing
- Controllers
- Views
- Events
- HTTP Response
- HTTP Request
- HTTP Redirect
- HTTP Content Negotiation
- Storage and Files
- Rest
- Maintenance
- Regular Expression
- Response Cache
- DOM, XML, HTML, JSON and Arrays
- QuerySelector (CSS-selectors) with PHP
- Configuration
- Instalação
- Sobre
- Desempenho
- Estrutura das pastas
- Constantes
- Rotas
- Usando Controllers
- Usando Views
- Eventos
- Resposta HTTP
- Requisição HTTP
- Redirecionamento HTTP
- Negociação de Conteúdo HTTP
- Armazenamento e Arquivos
- Usando Rest
- Manutenção
- Expressão Regular
- Cache Resposta
- DOM, XML, HTML, JSON e Arrays
- QuerySelector (seletores-CSS) com PHP
- Configuração