Overview
Magento uses the following types of libraries:
- Magento PHP libraries, which are discussed in the next section
-
Magento UI libraries, which are located in the lib/web directory
For more information, see library documentation on GitHub and View Library.
-
Third-party libraries. These libraries include JavaScript libraries as well as PHP-based ones (including the Zend libraries).
Third-party libraries are organized by vendor to be PSR-0 compliant.
Magento PHP libraries
Magento PHP libraries include independent libraries of code useful to a Magento application. Each library has minimal dependencies on other library.
For example:
-
Magento\Framework\Filesystem has PHP libraries for file system operations such as read, write, and directory listing. We provide drivers for file, HTTP, HTTPS, and Zlib.
-
Magento\Framework\App is a special PHP library that is aware of Magento as an application. It represents a greater level of abstraction and provides the following:
- Application areas
- Routing requests
- Application state
Other Magento libraries do not reference Magento\Framework\App
.
Find us on