Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to retrieve Debug Bar version number? #546

Open
s22-tech opened this issue Aug 17, 2023 · 6 comments
Open

How to retrieve Debug Bar version number? #546

s22-tech opened this issue Aug 17, 2023 · 6 comments

Comments

@s22-tech
Copy link

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

@parallels999
Copy link
Contributor

parallels999 commented Aug 17, 2023

Using Composer

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

@barryvdh
Copy link
Collaborator

What do you need it for?

@s22-tech
Copy link
Author

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?

@barryvdh
Copy link
Collaborator

You can run composer show

@s22-tech
Copy link
Author

s22-tech commented Aug 19, 2023 via email

@parallels999
Copy link
Contributor

@s22-tech are you deliberately ignoring my suggestion?

Can that be done from PHP?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants