-
Notifications
You must be signed in to change notification settings - Fork 260
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
Finding the installed version #280
Comments
That really depends on how you are installing the library. If you are using composer, your composer.lock file will show you, and your project's If you are manually downloading, you can choose one of the tagged versions here on GitHub by going to the Code tab, click the Branch: button, and select a Tagged version you would like to download. If you are downloading the master branch, then it doesn't really have a "version" as it's still in development. The composer.json file does have a |
@fpiraneo: Was @moderndeveloperllc's response sufficent? If you are not using are tagged release, the version would be inferred from @derickr did create PHPLIB-131 a while back to add a |
@jmikola I agree that a constant is a solution in need of a problem. Unlike a driver that could be variable depending on environment (like the PHP version), the library is always the version you want it to be for any deployment. Therefore no good reason I can think of to have version-checking code, so no need for a constant. |
Sorry for late answer. |
@fpiraneo isn't that a dependency management problem? If your project is managed by composer, you'll see the installed version by running |
@alcaeus I don't use composer. |
In my opinion it's up to the project developers to manage the libraries and which versions are in use. If you don't use composer you'll have to do it in whichever way suits you, and not rely on the libraries providing this information as a constant or a function. I have no idea how you manage your external libraries today, but if I were to do it without composer I'd make sure to manually note it in my "include" or "autoload" file and then make sure to update it when updating the libraries. It's unrealistic to expect all libraries to provide this information in a way that it can be generalized and accessed the same way. I do think, however, that it'd be good to have a |
Closing this due to inactivity. We ultimately decided not to introduce a version constant in PHPLIB-131. |
Where on the git repo and on the src/ folder I can argue the actual version of the library?
The text was updated successfully, but these errors were encountered: