Command:
$ cat composer.json
Result:
{
"require" : {
"facebook/php-sdk" : "*"
}
}
Command:
$ php composer.phar install
Result:
Loading composer repositories with package information
Updating dependencies (including require-dev)
- Installing facebook/php-sdk (5.3.1)
Downloading: 100%
facebook/php-sdk suggests installing guzzlehttp/guzzle (Allows for implementation of the Guzzle HTTP client)
Package facebook/php-sdk is abandoned, you should avoid using it. Use facebook/graph-sdk instead.
Writing lock file
Generating autoload files
Command:
$ tree vendor/
Result:
vendor/
├── autoload.php
├── composer
│ ├── ClassLoader.php
│ ├── LICENSE
│ ├── autoload_classmap.php
│ ├── autoload_files.php
│ ├── autoload_namespaces.php
│ ├── autoload_psr4.php
│ ├── autoload_real.php
│ ├── autoload_static.php
│ └── installed.json
└── facebook
└── php-sdk
├── LICENSE
├── composer.json
├── phpcs.xml.dist
└── src
└── Facebook
├── Authentication
│ ├── AccessToken.php
│ ├── AccessTokenMetadata.php
│ └── OAuth2Client.php
├── Exceptions
│ ├── FacebookAuthenticationException.php
│ ├── FacebookAuthorizationException.php
│ ├── FacebookClientException.php
│ ├── FacebookOtherException.php
│ ├── FacebookResponseException.php
│ ├── FacebookResumableUploadException.php
│ ├── FacebookSDKException.php
│ ├── FacebookServerException.php
│ └── FacebookThrottleException.php
├── Facebook.php
├── FacebookApp.php
├── FacebookBatchRequest.php
├── FacebookBatchResponse.php
├── FacebookClient.php
├── FacebookRequest.php
├── FacebookResponse.php
├── FileUpload
│ ├── FacebookFile.php
│ ├── FacebookResumableUploader.php
│ ├── FacebookTransferChunk.php
│ ├── FacebookVideo.php
│ └── Mimetypes.php
├── GraphNodes
│ ├── Birthday.php
│ ├── Collection.php
│ ├── GraphAchievement.php
│ ├── GraphAlbum.php
│ ├── GraphApplication.php
│ ├── GraphCoverPhoto.php
│ ├── GraphEdge.php
│ ├── GraphEvent.php
│ ├── GraphGroup.php
│ ├── GraphList.php
│ ├── GraphLocation.php
│ ├── GraphNode.php
│ ├── GraphNodeFactory.php
│ ├── GraphObject.php
│ ├── GraphObjectFactory.php
│ ├── GraphPage.php
│ ├── GraphPicture.php
│ ├── GraphSessionInfo.php
│ └── GraphUser.php
├── Helpers
│ ├── FacebookCanvasHelper.php
│ ├── FacebookJavaScriptHelper.php
│ ├── FacebookPageTabHelper.php
│ ├── FacebookRedirectLoginHelper.php
│ └── FacebookSignedRequestFromInputHelper.php
├── Http
│ ├── GraphRawResponse.php
│ ├── RequestBodyInterface.php
│ ├── RequestBodyMultipart.php
│ └── RequestBodyUrlEncoded.php
├── HttpClients
│ ├── FacebookCurl.php
│ ├── FacebookCurlHttpClient.php
│ ├── FacebookGuzzleHttpClient.php
│ ├── FacebookHttpClientInterface.php
│ ├── FacebookStream.php
│ ├── FacebookStreamHttpClient.php
│ ├── HttpClientsFactory.php
│ └── certs
│ └── DigiCertHighAssuranceEVRootCA.pem
├── PersistentData
│ ├── FacebookMemoryPersistentDataHandler.php
│ ├── FacebookSessionPersistentDataHandler.php
│ ├── PersistentDataFactory.php
│ └── PersistentDataInterface.php
├── PseudoRandomString
│ ├── McryptPseudoRandomStringGenerator.php
│ ├── OpenSslPseudoRandomStringGenerator.php
│ ├── PseudoRandomStringGeneratorFactory.php
│ ├── PseudoRandomStringGeneratorInterface.php
│ ├── PseudoRandomStringGeneratorTrait.php
│ └── UrandomPseudoRandomStringGenerator.php
├── SignedRequest.php
├── Url
│ ├── FacebookUrlDetectionHandler.php
│ ├── FacebookUrlManipulator.php
│ └── UrlDetectionInterface.php
├── autoload.php
└── polyfills.php
16 directories, 89 files
Showing posts with label Composer (software). Show all posts
Showing posts with label Composer (software). Show all posts
Monday, October 3, 2016
PHP: Composer: Downloading and Installing Composer
Command:
$ wget -O composer-setup.php https://getcomposer.org/installer
Result:
--2016-10-03 17:22:22-- https://getcomposer.org/installer
Resolving getcomposer.org... 2001:41d0:a:7b19::2, 87.98.253.108
Connecting to getcomposer.org|2001:41d0:a:7b19::2|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 293630 (287K) [application/octet-stream]
Saving to: ‘composer-setup.php’
composer-setup.php 100%[=======================================>] 286.75K 185KB/s in 1.5s
2016-10-03 17:22:26 (185 KB/s) - ‘composer-setup.php’ saved [293630/293630]
Command:
$ php -r "if (hash_file('SHA384', 'composer-setup.php') === 'e115a8dc7871f15d853148a7fbac7da27d6c0030b848d9b3dc09e2a0388afed865e6a3d6b3c0fad45c48e2b5fc1196ae') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
Result:
Installer verified
Command:
$ php composer-setup.php
Result:
All settings correct for using Composer
Downloading 1.2.1...
Composer successfully installed to: /Users/USERNAME/composer.phar
Use it: php composer.phar
$ wget -O composer-setup.php https://getcomposer.org/installer
Result:
--2016-10-03 17:22:22-- https://getcomposer.org/installer
Resolving getcomposer.org... 2001:41d0:a:7b19::2, 87.98.253.108
Connecting to getcomposer.org|2001:41d0:a:7b19::2|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 293630 (287K) [application/octet-stream]
Saving to: ‘composer-setup.php’
composer-setup.php 100%[=======================================>] 286.75K 185KB/s in 1.5s
2016-10-03 17:22:26 (185 KB/s) - ‘composer-setup.php’ saved [293630/293630]
Command:
$ php -r "if (hash_file('SHA384', 'composer-setup.php') === 'e115a8dc7871f15d853148a7fbac7da27d6c0030b848d9b3dc09e2a0388afed865e6a3d6b3c0fad45c48e2b5fc1196ae') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
Result:
Installer verified
Command:
$ php composer-setup.php
Result:
All settings correct for using Composer
Downloading 1.2.1...
Composer successfully installed to: /Users/USERNAME/composer.phar
Use it: php composer.phar
Subscribe to:
Posts (Atom)