How in Composer.phar to install some package with latest version? -
for example if not know version exists in package, , author not specify versions in readme, how install latest version? composer.phar install vendor/package ?
i believe impossible. have know @ least software use.
information in regard be:
- any existing tags in source repository
- alternatively existing branches in repository
- if not know repository location, have use downloading of package (zip, tgz), needs dedicated version number.
you use packagist.org downloading software - you'll find recognized versions of software on site.
installing tagged software version mean want add "*" version requirement, work if there @ least 1 tagged version. remember declaration upgrade library mercilessly 0.1 3.0 incompatible changes happened in 1.x , 2.x versions if ever fetch upgrade. not want if software supposed work after update.
if there isn't tagged version, or if find version old, may switch use head of branch in repository, branch choose depends on layout of source repository, i.e. have know branch used development of choice - , not being mentioned in readme. additionally, you'll have allow development versions stating stability requirement using minimum-stability (doc) or adding in required version (doc)
Comments
Post a Comment