1

I'm trying to use the Plivo PHP helper library in my project, but looks like the only way to use it is with Composer. Is there any work around for this since I cannot use composer in my project as it would change the existing code?

maddy1234
  • 13
  • 2
  • Hi, I'm not sure how it would change your code. Composer should only handle the downloading and auto loading of dependencies. The alternative option is you find the dependencies yourself, download and include them. – Michael Thompson Jan 20 '17 at 06:17

2 Answers2

0

Plivo Sales Engineer here.

Unfortunately, Plivo-PHP helper library can be used only with Composer. If installing the library with Composer is not feasible, you could download and install the dependencies individually and include the libraries in your project. Or, you could also make HTTP requests to the API directly without using the helper library. You could use cURL or Requests library to make these requests.

Ramya Raghu
  • 409
  • 3
  • 4
0

I had a similar issue.

The access to the server was very limited, I had only FTP access, I could have waited to ask for SSH access to do the install using composer I simply installed Composer on my local machine and then just had to run

composer require plivo/php-sdk

In an empty directory. It created the SDK files under /vendor and I uploaded those files through FTP to the server. Did the job for me.

Deepak Kamat
  • 1,880
  • 4
  • 23
  • 38