php-debugbar icon indicating copy to clipboard operation
php-debugbar copied to clipboard

How to retrieve Debug Bar version number?

Open s22-tech opened this issue 2 years ago • 6 comments

How can we programmatically get the version number of our PHP Debug Bar install?

s22-tech avatar Aug 17 '23 18:08 s22-tech

Using Composer

\Composer\InstalledVersions::getVersion('maximebf/debugbar')

parallels999 avatar Aug 17 '23 22:08 parallels999

What do you need it for?

barryvdh avatar Aug 18 '23 18:08 barryvdh

I want to poll the installed version number to test against the latest version to make sure I'm up-to-date. Why do you ask?

s22-tech avatar Aug 19 '23 04:08 s22-tech

You can run composer show

barryvdh avatar Aug 19 '23 05:08 barryvdh

Can that be done from PHP?

s22-tech avatar Aug 19 '23 14:08 s22-tech

@s22-tech are you deliberately ignoring my suggestion?

Can that be done from PHP?

parallels999 avatar Aug 21 '23 14:08 parallels999