Libraries
Libraries are classes that contain functionality about specific concept like Sessions
, Cookies
, etc.
The Quantum framework follows PSR-4 standard and comes with several useful libraries which helps to solve different kind of tasks. However for compatibility with legacy PHP codebase (which can't be autoloaded with PSR-4), you can still place them into base libraries directory and framework will autoload them.
Bellow is the list of the libraries which are available in current version:
Sessions
- Provides functions to work with sessionsCookies
- Provides functions to work with cookiesCSRF
- Provides functions to solve Сross Site Request Forgery related issuesConfig
- Provides functions to work with configs>Environment
- Provides functions to solve environment related tasksValidation
- Provides functions to do validationFiles
- Provides functions to work with filesDatabase
- Provides functions to work with databaseMailer
- Provides functions to send emailsJWT
- Provides functions to use JSON Web TokenscURL
- Provides functions to use cUrlAuth
- Provides Auth functionality
If you want to load libraries from other places you can use Libraries load($path = BASE_DIR)
method by passing the path of the librares directory.