Composer

156 views
Skip to first unread message

caballoneg...@gmail.com

unread,
Dec 27, 2016, 10:49:27 PM12/27/16
to AdWords API Forum
Do I have to install composer in the server or on my local desktop

Thanks,

Joyce Lava

unread,
Dec 27, 2016, 11:11:20 PM12/27/16
to AdWords API Forum
Hi,

Is it for the setup of the PHP client library of AdWords API? If so, depending on which machine you would setup the client library, you need to follow these steps.

Thanks,
Joyce, AdWords API Team

caballoneg...@gmail.com

unread,
Dec 28, 2016, 7:56:38 AM12/28/16
to AdWords API Forum
Yes, it is for the setup of the PHP client library of Adwords. I use a hosting service where I run my applications. And I develop the applications in my desktop. I guess I have to install composer in the hosting server, don't I?

I guess "$ php composer.phar require googleads/googleads-php-lib" is the code I have to type in my linux server where my application is hosted, right?

Thanks,

caballoneg...@gmail.com

unread,
Dec 28, 2016, 10:23:46 AM12/28/16
to AdWords API Forum
Ok, I have understood that I have to install composer in my linux server. I have tried but I have encounter some problems:

  • The version is 15.0, not 25.0
  • It requires ext-soap thst should be in my computer but I don't know what it is
  • Installation failed finally

Could you help me?

Thanks 
Message has been deleted

Thanet Knack Praneenararat (AdWords API Team)

unread,
Jan 5, 2017, 1:57:22 AM1/5/17
to AdWords API Forum
Hello,

I've had a look at your log and it seems that your PHP version is still 5.3.3.
In the latest version (v25.0.0) of PHP client library, it requires at least 5.5.9
So, first please update your PHP version so it can fetch the version 25.0.0 instead of 15.0.0.

As for the ext-soap, it depends on your system so I can't provide the one-shot solution for you immediately.
I've found this StackOverflow post that would help you.
In addition, have you tried what the error message suggested?

To enable extensions, verify that they are enabled in your .ini files:
    - /etc/php.ini
    - /etc/php.d/curl.ini
    - /etc/php.d/dom.ini
    - /etc/php.d/fileinfo.ini
    - /etc/php.d/gd.ini
    - /etc/php.d/imap.ini
    - /etc/php.d/json.ini
    - /etc/php.d/mbstring.ini
    - /etc/php.d/mysql.ini
    - /etc/php.d/mysqli.ini
    - /etc/php.d/odbc.ini
    - /etc/php.d/pdo.ini
    - /etc/php.d/pdo_mysql.ini
    - /etc/php.d/pdo_odbc.ini
    - /etc/php.d/pdo_pgsql.ini
    - /etc/php.d/pdo_sqlite.ini
    - /etc/php.d/pgsql.ini
    - /etc/php.d/phar.ini
    - /etc/php.d/snmp.ini
    - /etc/php.d/sqlite3.ini
    - /etc/php.d/wddx.ini
    - /etc/php.d/xmlreader.ini
    - /etc/php.d/xmlrpc.ini
    - /etc/php.d/xmlwriter.ini
    - /etc/php.d/xsl.ini
    - /etc/php.d/zip.ini
  You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.

Please note that this extension is needed since the last stable version of PHP client library (v15.0.0 and below).

Cheers,
Thanet, AdWords API Team
Reply all
Reply to author
Forward
0 new messages