Download the PHP package alfatraining/cassandra-session-handler-bundle without Composer

On this page you can find all versions of the php package alfatraining/cassandra-session-handler-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 cassandra-session-handler-bundle

Cassandra Session Handler bundle

This Symfony 4 bundle provides a session handler for saving sessions in Cassandra.

Installation

  1. Add the repository and requirement to composer.json:

  2. Install the bundle via composer update or composer update nothing if you don't want updates.

  3. Register the bundle in app/AppKernel.php:

  4. Add configuration parameters to your app/config/config.yml (the following shows the bundle defaults) and activate the session handler:

  5. Add parameters to app/config/parameters.yml.dist to configure the Cassandra cluster instance:

In Symfony 4, you can use an environnement variable which contains comma-separated values as a string :

Then run composer install again or update your parameters.yml by hand.

  1. Don't forget to actually create the keyspace and the column family. An example of the CQL that's needed can be found in Resources/doc/create_session_keyspace_and_table.sql inside this bundle.

As you can see in the Resources/config/services.yml file you need to pass a Cassandra\Cluster (it's an interface even if it doesn't like one) instance to the session handler upon instantiation. Because the DefaultCluster has a lot of configuration options (for SSL, authentication and a whole lot more – see http://datastax.github.io/php-driver/api/Cassandra/Cluster/class.Builder/ for more information) you may replace this class entirely and just instantiate your own custom cluster class instance. Here's how:

  1. Replace the class name to use in your app/config/config.yml file:

  2. Take a look at how the bundle's implementation works in Lib/Cassandra/Cluster.php.

All versions of cassandra-session-handler-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0.0
ext-cassandra Version >=1.4.0
datastax/php-driver Version ^1.4
symfony/framework-bundle Version ^4.2
psr/log Version ^1.0
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 alfatraining/cassandra-session-handler-bundle contains the following files

Loading the files please wait ....