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 sessions
  • Cookies - Provides functions to work with cookies
  • CSRF - Provides functions to solve Сross Site Request Forgery related issues
  • Config - Provides functions to work with configs>
  • Environment - Provides functions to solve environment related tasks
  • Validation - Provides functions to do validation
  • Files - Provides functions to work with files
  • Database - Provides functions to work with database
  • Mailer - Provides functions to send emails
  • JWT - Provides functions to use JSON Web Tokens
  • cURL - Provides functions to use cUrl
  • Auth - 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.

<< Prev Next >>