How to create custom library in CodeIgniter
We are normally referring to the classes that are located in the libraries directory.
You can create your own libraries within your application/libraries directory.
Here
2) You can create new libraries.