Download the PHP package rikudou/psr6-dynamo-db-bundle without Composer

On this page you can find all versions of the php package rikudou/psr6-dynamo-db-bundle. 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 psr6-dynamo-db-bundle

Tests Coverage Status

Don't use Symfony? Use the standalone library.

Since version 2 this library uses the lightweight async-aws/dynamo-db instead of the full AWS SDK.

Installation

composer require rikudou/psr6-dynamo-db-bundle

Configuration

Create the file config/packages/dynamo_db_cache.yaml and put at least the table name there:

Everything else has default values, though you probably want to also configure the dynamo db client.

Configuration options:

Autogenerated default config (via bin/console config:dump rikudou_dynamo_db_cache):

Usage

You can use one of the two available services:

If you set the replace_default_adapter to true you can also use these interfaces as services:

Example

While using the replace_default_adapter option:

Or using the PSR interfaces:

Converters

This bundle supports all instances of \Psr\Cache\CacheItemInterface with the use of converters which convert the object to \Rikudou\DynamoDbCache\DynamoCacheItem. Note that some information may be lost in the conversion, notably expiration date.

This bundle has a handler for the default Symfony \Symfony\Component\Cache\CacheItem where it retains also the information about expiration date.

If you use any other CacheItemInterface implementation, you may need to write your custom handler:

Your converter is now automatically registered in the converter system and will be used whenever you try to save an instance of MyCacheItem.

If you don't use autoconfiguration, tag your service with rikudou.dynamo_cache.converter

The default converter which will be used as last option can convert all CacheItemInterface objects but has no way to get the expiration date since the interface doesn't provide such information.

Session

This bundle contains a session handler to store your session data in DynamoDB.

To use it you either need to specify the handler_id in framework.yaml to rikudou.dynamo_cache.session or set replace_default_adapter to true and remove handler_id from framework.yaml (the default configuration created by flex specifies null explicitly as the handler_id, if you want to use the replace_default_adapter, remove it from the config).


All versions of psr6-dynamo-db-bundle with dependencies

PHP Build Version
Package Version
Requires symfony/framework-bundle Version ^6.0 || ^7.0
rikudou/psr6-dynamo-db Version ^3.1
php Version ^8.0
symfony/cache Version ^6.0 || ^7.0
ext-json Version *
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 rikudou/psr6-dynamo-db-bundle contains the following files

Loading the files please wait ....