Skip to main content
Version: 12.x


In the Container layer of Porto, you will find a comprehensive range of predefined Components, each with its specific responsibility. It is imperative to organize all your code within these Components to ensure proper structure and organization.

Apiato offers an extensive list of these Components, accompanied by detailed guidelines for their utilization. Adhering to these guidelines is crucial to ensure a streamlined development process.

Components play a pivotal role in maintaining consistency throughout your codebase and enhancing its maintainability. They provide a clear and structured approach, making it easier to locate and manage individual code snippets.

Leveraging these Components enables you to construct a modular and reusable codebase, simplifying future maintenance and facilitating modifications when needed.

Components in Porto are categorized into two types: Main Components and Optional Components.

Main Components

Main Components are essential for the Container's functionality and must be used to achieve its core purpose.

Optional Components

Optional Components offer additional functionality that can be incorporated into the Container. Their usage is discretionary, depending on specific requirements.


To learn more about how all this fits together, read the Request Lifecycle page.