We can run external, or you can say third party api’s or libraries in codeigniter. You just have to download your library that you wan’t to use in your codeigniter project. Just like we are using LiveChatApi in Codeigniter Move it to the application\third_party and extract it here if it is in a zip file. Then open your controller in which you wan’t to use it. And then just write the line after
add these two lines below.
require_once APPPATH.”third_party/library/vendor/autoload.php”;
use LiveChat\Api\Client as LiveChat;
After adding the above two lines in the top of the controller. Then you just have to make an object of it in any method of you current controller.
$LiveChatAPI = new LiveChat();
This is how your library will work. You can use any library or api with this procedure.