Download the PHP package reliv/aws-sdk-php-zf2-zf3fc without Composer

On this page you can find all versions of the php package reliv/aws-sdk-php-zf2-zf3fc. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package aws-sdk-php-zf2-zf3fc

AWS SDK ZF2 Module

Latest Stable Version Total Downloads Build Status

Introduction

This module provides a simple wrapper for the AWS SDK for PHP. It registers the AWS service builder as a service in the ZF2 service manager, making it easily accessible anywhere in your application.

Installation

Install the module using Composer into your application's vendor directory. Add the following line to your composer.json. This will also install the AWS SDK for PHP.

Configuration

Enable the module in your application.config.php file.

Copy and paste the aws.local.php.dist file to your config/autoload folder and customize it with your credentials and other configuration settings. Make sure to remove .dist from your file. Your aws.local.php might look something like the following:

NOTE: If you are using IAM Instance Profile credentials (also referred to as IAM Roles for instances), you can omit your key and secret parameters since they will be fetched from the Amazon EC2 instance automatically.

Usage

You can get the AWS service builder object from anywhere that the ZF2 service locator is available (e.g. controller classes). The following example instantiates an Amazon DynamoDB client and creates a table in DynamoDB.

View Helpers

Starting from version 1.0.2, the AWS SDK ZF2 Module now provides two view helpers to generate links for Amazon S3 and Amazon CloudFront resources.

Note: Both of the view helpers generate URLs with an HTTPS scheme by default. This is ideal for security, but please keep in mind that Amazon CloudFront charges more for HTTPS requests. You can use a different scheme (e.g., HTTP) by calling the setScheme method on either helper.

S3Link View Helper

To create a S3 link in your view:

The default bucket can be set globally by using the setDefaultBucket method:

You can also create signed URLs for private content by passing a third argument which is the expiration date:

CloudFrontLink View Helper

To create CloudFront link in your view:

The default domain can be set globally by using the setDefaultDomain method:

You can also create signed URLs for private content by passing a third argument which is the expiration date:

Filters

Starting from version 1.0.3, the AWS SDK ZF2 module provides a simple file filter that allow to directly upload to S3. The S3RenameUpload extends RenameUpload class, so please refer to its documentation for available options.

This filter only adds one option to set the bucket name (through the setBucket method, or by passing a bucket key to the filter's setOptions method).

Session Save Handlers

Read the [session save handler section] (http://zf2.readthedocs.org/en/latest/modules/zend.session.save-handler.html) in the ZF2 documentation for more information.

DynamoDB

To follow the [ZF2 examples] (http://zf2.readthedocs.org/en/latest/modules/zend.session.save-handler.html), the DynamoDB session save handler might be used like this:

You will probably want to further configure the save handler, which you can do in your application. You can copy the config/aws_zf2.local.php.dist file into your project's config/autoload directory (without the .dist of course).

See config/aws_zf2.local.php.dist and [the AWS session handler documentation] (http://docs.aws.amazon.com/aws-sdk-php-2/latest/class-Aws.DynamoDb.Session.SessionHandler.html#_factory) for more detailed configuration information.

Related Modules

The following are some ZF2 modules that use the AWS SDK for PHP by including this module:

Links

aws-sdk-php-zf2-zf3fc

aws-sdk-php-zf2-zf3fc


All versions of aws-sdk-php-zf2-zf3fc with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.3
aws/aws-sdk-php Version 2.*
zendframework/zend-filter Version 2.*
zendframework/zend-servicemanager Version 2.* || 3.*
zendframework/zend-session Version 2.*
zendframework/zend-version Version 2.*
zendframework/zend-view Version 2.*
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package reliv/aws-sdk-php-zf2-zf3fc contains the following files

Loading the files please wait ....