Amazon Web Services and the AWS SDK for PHP continue to put more power into the hands of PHP developers to build robust and scalable web applications. With version 2 of the SDK, developers now have an even more powerful library for interacting with AWS built on top of existing open source software like the Guzzle HTTP framework and the Symfony 2 Event Dispatcher. In this session you will learn about Amazon Web Services, how to use the AWS SDK for PHP, and how you can easily deploy and scale your applications to the cloud with AWS services, including AWS Elastic Beanstalk.
2. Oh Hai! I'm Jeremy Lindblom!
• I work on the AWS SDK for PHP at
• Co-organizer of the Seattle PHP Meetup Group
• B.S. in Computer Science from
• @jeremeamia on
• I like to make funny faces
8. Amazon Web Services offers a
complete set of infrastructure and
application services that enable
you to run virtually everything in
the cloud: from enterprise
applications and big data projects
to social games and mobile apps.
( http://aws.amazon.com )
18. General SDK Features
• Suite of HTTP clients
• Input and output serialization
• Protocol normalization
• Authentication
• Error handling
• Language-specific conveniences
• Open source
19. The AWS SDK for PHP
http://github.com/aws/aws-sdk-php
20. Quick History
• Tarzan (Started by @skyzyx)
• CloudFusion
• AWS SDK for PHP [2010]
• AWS SDK for PHP 2 [Late 2012]
21. AWS SDK for PHP Features
• PHP 5.3+, PSR compliant
• Persistent connections, parallel requests
• Event hooks, plugins, and wire logging
• Simple array-style inputs and outputs
• Iterators, waiters, and batching helpers
• Higher-level abstractions
39. Events & Event Listeners
• Event slots in various parts of SDK
• Inject logic without extending classes
• Symfony2 Event Dispatcher
$s3-‐>getEventDispatcher()
-‐>addListener('<event>',
<fn>);
40. Plugins
• Implemented as event listeners
• Many built-in plugins from Guzzle
including easy wire logging
use
GuzzlePluginLogLogPlugin;
$s3-‐>addSubscriber(
LogPlugin::getDebugPlugin()
);