In CodeIgniter We use Libraries To Increase speed of developing an application. The library can be loaded as
Where class name is the name of the library that we want to load. If we want to load multiple libraries, then we simply pass an array as argument to library() function as shown below −
The library classes are located in system/libraries
Most Commonly Used Library classes are shown below
|S.N.||Library Class & Description|
Benchmarking class is always active, enabling the time difference between any two marked points to be calculated.
This class will cache the pages, to quickly access the page speed.
Using this class, you can dynamically create calendars.
Shopping Cart Class
Using this class, you can add or remove item from Shopping Cart. The items are saved in session and will remain active until the user is browsing the site.
Configuration preferences can be retrieved, using this class. This class is initialized automatically.
This class provides email related functionality, like send or reply to email.
This class provides two-way data encryption functionality.
File Uploading Class
This class provides functionalities related to file uploading. You can set various preferences like type of file to be uploaded, size of the files etc.
Form Validation Class
This class provides various functions to validate form.
This class provides various FTP related functions like transferring files to remove server, moving, renaming or deleting files on server.
Image Manipulation Class
Manipulation of image like resize, thumbnail creation, cropping, rotating, watermarking can be done with the help of this class.
This class pre-processes the input data for security reason.
This class is used for internationalization.
This class loads elements like View files, Drivers, Helpers, Models etc.
This class provides functionalities related to database migrations.
This class sends the output to browser and also, caches that webpage.
This class adds pagination functionalities to web page.
Template Parser Class
The Template Parser Class can perform simple text substitution for pseudo-variables contained within your view files. It can parse simple variables or variable tag pairs.
This class contains security related functions like XSS Filtering, CSRF etc.
This class provides functionalities to maintain session of your application.
This class is used to auto-generate HTML tables from array or database results.
The Trackback Class provides functions that enable you to send and receive Trackback data.
The Typography Class provides methods that help to format text.
Unit Testing Class
This class provides functionalities to unit test your application and generate the result.
The URI Class provides methods that help you retrieve information from your URI strings. If you use URI routing, you can also retrieve information about the rerouted segments.
User Agent Class
The User Agent Class provides functions that help identify information about the browser, mobile device, or robot visiting your site. In addition, you can get referrer information as well as language and supported character-set information.
XML-RPC and XML-RPC Server Classes
CodeIgniter’s XML-RPC classes permit you to send requests to another server, or set up your own XML-RPC server to receive requests.
Zip Encoding Class
This class is used to create zip archives of your data.