Book Image

Developing Extensions for Joomla! 5

By : Carlos M. Cámara Mora
5 (2)
Book Image

Developing Extensions for Joomla! 5

5 (2)
By: Carlos M. Cámara Mora

Overview of this book

Joomla! 5 is a groundbreaking CMS that helps you take a significant leap into the world of content management systems. Joomla! 5 features a variety of impressive new features that align with current web standards and enable you to experience lightning-fast performance for optimal web page optimization, leverage the new code architecture, and tap into the WebService API, among others. This book takes you on a journey of extending Joomla's capabilities by developing your own extensions. The chapters not only explain the key concepts behind Joomla's architecture but also equip you with the latest techniques for crafting components and plugins. You’ll discover how to leverage existing features within Joomla! to empower your extensions and create tailored solutions. The book takes you from the initial stages of planning your extension development to a fully featured finished product. As you advance, you'll learn invaluable techniques for testing your extension, addressing common issues, and preparing it for publication. The concluding chapters of this comprehensive guide teach you how to test your extension for common issues, along with how to publish the extension for everyone to use. By the end of this book, you’ll have the confidence and skills to complete the cycle of extension development.
Table of Contents (21 chapters)
1
Part 1: Developing Components
8
Part 2: Developing Modules and Plugins
12
Part 3: Extending Templates
15
Part 4: Distributing Your Extensions

How to use Joomla! CLI

Joomla! CLI is based on the Symfony Console, and you can access it by calling the cli/joomla.php file of your website. As stated previously, you cannot access it from your web browser. To access Joomla! CLI, you need to use a terminal and type the commands.

In this book, we will assume that you have SSH or direct access to your Joomla! installation. So, start your terminal and set it on your Joomla! root folder.

First, we will check the PHP version in use in the terminal. It’s possible that your server uses a specific PHP version for your Joomla! website and a different one for the PHP CLI. To check our PHP version, we will type the following:

php -v

If it’s the same as the one running your website, you are good to go. If it’s not the same version, you need to check that it’s at least the lowest PHP version you can run Joomla! on.

Once we are happy with our PHP-CLI version, we can start working with Joomla! CLI. To invoke...