I'm running symfony 1.2
in my live server and php 5.2
which doesn't have composer install.
I run composer locally and uploaded all the vendor files to live server but the extension which i downloaded via composer has code difference i.e it doesn't sync with old version of php! My extension/plugin code is in php latest version and my live server php is old i.e 5.2 So how can i fix this? any idea?
Thanks
You can restrict your composer packages by php minor version using something like that on your composer.json require section
"php": "~5.2.0",
and you can define the php version with the platform setting with
"config": {
"platform": {
"php": "5.2"
}
},
You should also use the same php version on your dev environment
Composer will then download the latest versions of each package that supports the specified php version
But with such older versions you might have issues
And make sure to point out to your supervisors that this project needs to be updated to a supported php version asap. Especially if it is mission critical or has sensitive data in it