Download the PHP package craftcms/yii2-dynamodb without Composer

On this page you can find all versions of the php package craftcms/yii2-dynamodb. 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 yii2-dynamodb

DynamoDB Cache, Session, and Queue for Yii 2

Latest Version on Packagist Total Downloads GitHub Tests Action Status

Easily use DynamoDB as a cache, session, or queue using this library in your Yii2 or Craft CMS projects.

Note: currently Craft supports Yii2 Queue version 2.3.0 so this package is based on version 2.3.0 of yii2-queue.

Installation

You can install the package via composer:

Usage

This package provides three Yii components for DynamoDB: cache, session, and queue.

Cache Component

Create DynamoDB Cache Table

Since DynamoDB is a NoSQL database, the only key you have to specify is the primary key. You can use the following AWS CLI command to generate a table for the cache.

Note: Since the ID can contain more than numbers, it needs to be specified as a string in DynamoDB.

Configure Cache Component

In your app.php, configure the cache component to use the driver.

Session Component

Create DynamoDB Session Table

Since DynamoDB is a NoSQL database, the only key you have to specify is the primary key. You can use the following AWS CLI command to generate a table for the session.

Note: Since the ID can contain more than numbers, it needs to be specified as a string in DynamoDB.

Configure Session Component

In your app.php, configure the session component to use the driver.

Queue Component

Create DynamoDB Queue Table

Since DynamoDB is a NoSQL database, the only key you have to specify is the primary key. You can use the following AWS CLI command to generate a table for the queue.

Note: Since the ID can contain more than numbers, it needs to be specified as a string in DynamoDB.

Configure Queue Component

In your app.php, configure the queue component to use the driver.

Testing

Tests run against local DynamoDB tables using Docker. To run tests, you must run the following:

  1. Ensure Docker is running
  2. Start the DynamoDB container in the docker-compose.yaml with docker-compose up -d
  3. Create the DynamoDB tables for the queue
  4. Run the test suite with vendor/bin/phpunit --testdox

To make the setup and testing easier, you can run the following Composer scripts:

  1. composer run setup
  2. composer run test

Credits

License

The MIT License (MIT). Please see License File for more information.


All versions of yii2-dynamodb with dependencies

PHP Build Version
Package Version
Requires aws/aws-sdk-php Version >=2.4
ext-json Version *
yiisoft/yii2 Version ^2.0.45
yiisoft/yii2-queue Version ^2.3.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 craftcms/yii2-dynamodb contains the following files

Loading the files please wait ....