Library is a class that is normally located in the libraries directory. There are several CodeIgniter libraries which you could extend if you simply need to add some functionality. CodeIgniter also permits you to replace native libraries just by placing identically named versions in your "application/libraries" directory.
In summary:
- You can create new libraries.
- You can extend native libraries.
- You can replace native libraries with your own.
Note:
You can extend or replace all libraries except Database classes