Provides a zend-mvc plugin (for versions 3.0 and up) that allows retrieving the current identity as provided by zend-authentication.
Run the following to install this library:
$ composer require zendframework/zend-mvc-plugin-identity
If you are using the zend-component-installer, you're done!
If not, you will need to add the component as a module to your
application. Add the entry 'Zend\Mvc\Plugin\Identity'
to
your list of modules in your application configuration (typically
one of config/application.config.php
or config/modules.config.php
).
Browse the documentation online at https://docs.zendframework.com/zend-mvc-plugin-identity/