A free and open-source book on ZF3 for beginners


15.2. Installing Zend\Session Component

In ZF3, the session functionality is implemented inside of Zend\Session component. If you haven't yet installed this component in your web application, do this now with Composer by typing the following command:

php composer.phar require zendframework/zend-session

The command above downloads the component code from GitHub and installs it in the APP_DIR/vendor directory. It also injects the information about the installed module inside of your APP_DIR/config/modules.config.php configuration file.


Top