How to Create Custom Library in CodeIgniter

In this tutorial i will show you how to create custom library in codeIgniter. There are many readymade classes available for the payment gateway, pdf generation, some third party API. So let’s see how to integrate these classes to codeigniter and use it like a library. We can create our own class and use it as library. In this tutorial use custom dompdf librarie. You may also like How to convert HTML to PDF in PHP and How to Create PDF using DOMPDF in Codeigniter.

Steps For How to Create Custom Library in CodeIgniter

Step 1. Connect To Library File

In this step we have go to folder application/libraries and create libraries.