How to Create Joomla! 5 Component
This is step-by-step guide on how to create a Joomla! 5 Model-View-Controller (MVC) component from scratch. Joomla! components are split into three parts: Administrator, Site and API.
The administrator part provides an interface to manage the component from the backend. The site part provides the pages requested by users visiting the website at the frontend. The API part allows to access component through Joomla web services.
In this tutorial, we will be creating a Joomla! component - com_stars. This component will store the information about various Planets. First, we will develop the Admin part and then the Site part.
The main directory of the component will be com_stars. The "com" prefix means "component" and the "stars" is the name of the component. Inside this directory, there are three subfolders for the admin part, site part and API part. You also need a manifest file - stars.xml. Keep changing this manifest file as you develop your extension and add more files and features.