I have a GoDaddy hosting site.
The root folder html
html
I use it as a test server, so htmlhas the number of subdirectories, such as /site1, /site2, /site3.
/site1
/site2
/site3
I want to install and use the parse.com PHP SDK and follow this guide to configure it
I installed composer on the server:
-bash-4.2$ curl -sS https://getcomposer.org/installer | php #!/usr/bin/env php All settings correct for using Composer Downloading... Composer successfully installed to: /home/content/08/555555/html/composer.phar Use it: php composer.phar
I created composer.jsonwith the content below:
composer.json
{ "require" : { "parse/php-sdk" : "~1.1.*" } }
As I understand it, I have to put this file in my own project folder, which seems to mean the root folder of the site, for example site1in my example, and then cdin this directory and “Run composer with setting parameter”.
project folder
site1
cd
, SDK , /site1, /site2, /site3.
composer.json , html "../parse/php-sdk" : "~1.1.*", ?
"../parse/php-sdk" : "~1.1.*"
, . , , .
Composer COULD : composer global require vendor/package , . , , , , .
composer global require vendor/package
: . ( , , , , ), , . , central, . , , .
: , , , , Composer . , , - , , .
, , , : , , . .
PEAR . , , PEAR PHP 4.0. PEAR, , Composer . , .