Amazon AWS SDK Instalační příručka Strana 28

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 151
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 27
1. Add both of the SDKs as dependencies in your project's composer.json file.
{
"require": {
"aws/aws-sdk-php": "*",
"amazonwebservices/aws-sdk-for-php": "*"
}
}
Note: Consider tightening your dependencies to a known version when deploying mission critical applications
(e.g., 2.0.*).
2. Download and install Composer.
curl -s "http://getcomposer.org/installer" | php
3. Install your dependencies.
php composer.phar install
4. Require Composer's autoloader.
Composer also prepares an autoload file that's capable of autoloading all of the classes in any of the libraries
that it downloads. To use it, just add the following line to your code's bootstrap process.
require '/path/to/sdk/vendor/autoload.php';
You can find out more on how to install Composer, configure autoloading, and other best-practices for defining
dependencies at getcomposer.org.
Without Composer
Without Composer, you must manage your own project dependencies.
1. Download both of the SDKs (via PEAR, GitHub, or the AWS website) into a location accessible by your project.
Make certain to use the pre-packaged aws.phar file, which includes all of the dependencies for the AWS
SDK for PHP.
2. In your code's bootstrap process, you need to explicitly require the bootstrap file from Version 1 of the SDK and
the aws.phar file containing Version 2 of the SDK:
// Include each of the SDK's bootstrap files to setup autoloading
require '/path/to/sdk.class.php'; // Load the Version 1 bootstrap file
require '/path/to/aws.phar'; // Load the Version 2 pre-packaged phar file
Configuring and Instantiating the SDKs
How you configure and instantiate the SDKs is determined by whether or not you are using the service builder
(Aws\Common\Aws class).
Instantiating Clients via the Service Builder
The service builder (Aws\Common\Aws class) in the AWS SDK for PHP enables configuring all service clients
with the same credentials. It also accepts additional settings for some or all of the clients. The service builder
functionality is inherited from the Guzzle project.
You can pass the service builder a configuration file containing your credentials and other settings. It will then inject
these into all of the service clients your code instantiates. For more information about the configuration file, please
read the Configuring the SDK section of the guide. When using both SDKs side-by-side, your configuration file must
include the following line:
'includes' => array('_sdk1'),
Side-by-side Guide
16
Zobrazit stránku 27
1 2 ... 23 24 25 26 27 28 29 30 31 32 33 ... 150 151

Komentáře k této Příručce

Žádné komentáře

Electrolux UFFLEXA podręczniki

Instrukcje obsługi i podręczniki użytkownika dla Odkurzacze Electrolux UFFLEXA.
Dostarczamy 2 pdf podręczników Electrolux UFFLEXA do pobrania za darmo według typów dokumentów: Instrukcja Użytkownika






Więcej produktów i instrukcji dla Odkurzacze Electrolux

Modele Rodzaj dokumentu
Z 2305 Instrukcja Użytkownika   Electrolux Z 2305 User Manual, 10 strony
Z4520T Instrukcja Użytkownika   Electrolux Z4520T User Manual, 5 strony
ZSPCSILENT Instrukcja Użytkownika       Electrolux ZSPCPARKET دليل الاستخدام [en] , 16 strony
UFORIGIN Instrukcja Użytkownika      Electrolux UFORIGIN دليل الاستخدام [en] , 92 strony
ZUSG4062 Instrukcja Użytkownika    Electrolux ZUSG4062 用户手册 [nl] , 36 strony
ZB3105 Instrukcja Użytkownika   Electrolux ZB3214G دليل الاستخدام, 28 strony
ZUS3960 Instrukcja Użytkownika     Electrolux ZUS3940P 用户手册, 56 strony
UMORIGIN Instrukcja Użytkownika        Electrolux UMORIGIN Korisnički priručnik [sv] , 76 strony
ZE340B Instrukcja Użytkownika       Electrolux ZE311G Ръководство за употреба, 6 strony
EL3000A Instrukcja Użytkownika     Electrolux EL3000A User Manual, 24 strony
ZUP3815 Instrukcja Użytkownika     Electrolux ZUP3815 Brugermanual, 92 strony
ZUA3840 Instrukcja Użytkownika     Electrolux ZUA3840 Brugermanual [en] , 92 strony
ZB5012 Instrukcja Użytkownika    Electrolux ZB5012 Ръководство за употреба [sv] , 108 strony
ZUSG3901 Instrukcja Użytkownika     Electrolux ZUSG3901 用户手册, 60 strony
ZUP3860CA Instrukcja Użytkownika     Electrolux ZUP3820RT Brugermanual, 92 strony
APORIGIN Instrukcja Użytkownika       Electrolux APORIGIN Ръководство за употреба, 72 strony
ZUSG3901 Instrukcja Użytkownika       Electrolux ZUSG3901 Brugermanual, 96 strony
ZAPORIGINE Instrukcja Użytkownika       Electrolux ZAPORIGINW دليل الاستخدام [es] [pt] , 72 strony
EUS8X2DB Instrukcja Użytkownika      Electrolux EUS8X3CB دليل الاستخدام, 96 strony
ZB3005 Instrukcja Użytkownika       Electrolux ZB3005 Ръководство за употреба, 84 strony