Reputation: 3
I am currently dealing with something with the php composer theme. I have some github projects installed using composer and loaded with the autoload. Now I would like to find in my PHP code the current version number and packagename. How can I do that?
thanks
bjoern
Upvotes: 0
Views: 380
Reputation: 2380
After installing the dependencies, Composer writes the list of the exact versions it installed into a composer.lock
file. You can parse composer.lock
file to get version numbers and package names for all project's dependencies.
Upvotes: 1