Connecting third-party PHP libraries in Joomla

When developing websites or extensions for Joomla, sometimes tasks arise that have already been solved by someone. In the development world, such solutions are designed as libraries - sets of files and classes that make it possible to simply plug them into your script and use code written and well-tested by other developers. These can be php libraries for image processing, working with PDF, connecting to third-party services via the REST API, and much, much more.

PHP libraries are convenient because they can be accessed from anywhere in the Application: from a plugin, component model, module, etc. This article explains how to properly connect a third-party PHP SDK to your project.

Composer

Joomla does not support working with Composer directly. In order to use the library in your work, you need to "wrap" it in a Joomla extension type library and install it. In serious projects, the approach of fixing versions of all components of the project is adopted: the code has been checked more than once, tested and allowed to work in the production.

You create a package with your library, install it wherever you need it. As new versions of the library are released, you update your wrapper and get all the advantages of working with Joomla extensions: updating extensions in the standard way, including through the CLI. View the Changelog of the extension in the admin area BEFORE updating, etc.

Article Show all records of type Article Tutorials
Last Modified: 16 Apr 2025
Hits: 280, Comments: 0, Bookmarked: 0, Followers: 1
100% of 1 votes

Related Records

Joomla 5.2.3 Security & Bugfix Release

Let’s celebrate! The Joomla! Project is pleased to announce the release of Joomla...

Joomla Component Builder

In this series we want to show some tools that can help to build components for Joomla. 

In...

Floating Labels and how to use them in your Joomla website

You may have seen them in form fields: labels that seem to float above the field as you're typing....

Floating Labels and how to use them in your Joomla website - Copy

You may have seen them in form fields: labels that seem to float above the field as you're typing....

An insight into a Joomler: JoeJoomla

Having been around the JoomlaSphere in some capacity or another for years, what keeps me around and...

The Joy of Road Trips: Adventure on the Open Road

There’s something magical about hitting the open road, leaving behind daily routines, and embracing...

Comments RSS feed Comments

Add New Comment
Access level for this content.