如何在实时服务器cpanel上安装composer,以使本地安装的库在实时工作

I uploaded my yii1 project to live server,there was a library (which I have installed it on local machine using composer) give an error (class not found), what I did was:

  1. Ensure that in my file access to autoload file in library correctly.
  2. Contacting with support team of hosting company to install composer on the server, they replied "you have to use dedicated server or vps to complete this action".

(The library is a client library for LinkedIn).

Should I install composer using ssh protocol on the server? Or is there another solution?

I uploaded my yii1 project to live server

But not including all dependencies...

The unresolved or missing dependency just indicates that you didn't resolve the dependencies correctly before deployment or that the packaging wasn't including the dependency.

Should I install composer using ssh protocol on the server? Or is there another solution?

You don't need Composer on the production machine at all.

Solution: Package your application completely including all dependencies.

Please resolve all Composer dependencies, so that the app runs in the development/packaging stage. Package correctly, then deploy.