Overview
The Magento software can use 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 all PHP code (including the Zend libraries).
Third-party libraries are organized by vendor to be PSR-0 compliant.
Magento PHP libraries
Magento PHP libraries include code that is designed to be independent libraries of code useful to a Magento application. Each library has minimal dependencies on any other library.
For example:
- Magento\Framework\Filesystem has PHP libraries for file system operations such as read, write, directory listing, and so on. 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