Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

required files #1

Open
juliemoffat opened this issue Feb 3, 2016 · 2 comments
Open

required files #1

juliemoffat opened this issue Feb 3, 2016 · 2 comments

Comments

@juliemoffat
Copy link

Can you tell me what vendor/autoload.php should have in it?

My php version throws errors when trying to run index.php and include Vonage.php. Where does GuzzleHttp\Client come from? Where is it defined so that I may 'use' it.
It also doesn't like some of this syntax is kosher with my version of PHP. What version is this compatible with?
I get:
Parse error: syntax error, unexpected '[' in /...]vonage-php-api-master/Vonage/Vonage.php on line 28

so that this line
$response = $this->client->get($this->apiDomain.'/appserver/rest/user/null',
['cookies' => $this->cookie, 'query' => ['htmlLogin' => $username, 'htmlPassword' => $password]]);
fails. (Along with the 'require autoload.php' that doesn't exist, etc)
Can you provide any more description on how this could be used? I just want to make the same basic call log request it uses.

Thanks.

@shahariaazam
Copy link
Contributor

Hello @juliemoffat,
To install all the necessary dependency libraries like Guzzle and other, you have to run composer install. All the dependencies are coming via Composer. After when you will install dependencies via composer. Then in your application root, all dependencies will be saved on vendor directory with a PHP autoloader file that is called vendor/autoload.php.

You must have to install all the dependencies to run this library. Most of the answers you will get after that.

Thanks,
Shaharia

@juliemoffat
Copy link
Author

Thanks very much for your quick response. I have no idea what Composer is. Or which of your files I would use with it if I did.

I'm on a Mac, I use Dreamweaver to edit code by hand and ftp it to my server. I can ssh in to my grid server with the Terminal window if I need do something with unix.

I really like your code. Looks very clean. Exactly what I'm looking for.

On Feb 3, 2016, at 5:40 PM, Shaharia Azam notifications@github.com wrote:

Hello @juliemoffat,
To install all the necessary dependency libraries like Guzzle and other, you have to run composer install. All the dependencies are coming via Composer. After when you will install dependencies via composer. Then in your application root, all dependencies will be saved on vendor directory with a PHP autoloader file that is called vendor/autoload.php.

You must have to install all the dependencies to run this library. Most of the answers you will get after that.

Thanks,
Shaharia


Reply to this email directly or view it on GitHub.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants