Skip to content

Instantly share code, notes, and snippets.

@ederrafo
Last active October 14, 2016 22:48
Show Gist options
  • Save ederrafo/d3b8ce86a89829d70d13 to your computer and use it in GitHub Desktop.
Save ederrafo/d3b8ce86a89829d70d13 to your computer and use it in GitHub Desktop.
Display the installed Zend Framework version on the command line?
$ php composer.phar show --installed
Zend\ServiceManager
- invokables, an array of service name/class name pairs. The class name should be class that may be
directly instantiated without any constructor arguments.
- services, an array of service name/object pairs. Clearly, this will only work with PHP configuration.
$params = $this->params()->fromRoute();
echo "FILE: ",__FILE__,"<br>LINE: ", __LINE__,"<pre>"; print_r($params); echo "</pre>";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment