Sergey Sergey - 1 year ago 94
PHP Question

Composer - include from path that varies

I have two applications, and I need one app to load the other app. I could just go

"files": [

but the problem is that
varies from server to server. The question is how can I load a file using composer if the file's path varies, but can be available in an env var or some config?

Answer Source

Composer doesn't support environment variables -

You could use a symlink that gets changed each time though

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download