Download the PHP package m6web/cassandra-bundle without Composer
On this page you can find all versions of the php package m6web/cassandra-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package cassandra-bundle
CassandraBundle
The CassandraBundle provide a Cassandra client as a Symfony service.
Installation
NOTE : You need to install the offical datastax php driver extension
Use composer:
Then make sure the bundle is registered in your application:
Usage
Add the m6web_cassandra
section in your configuration file. Here is the minimal configuration required.
Then you can ask container for your client :
Bundle provide a util class for extracting Datetime from a timeuuid string.
DataCollector
Datacollector is available when the symfony profiler is enabled. The collector allows you to see the following Cassandra data :
- keyspace
- command name
- command arguments
- execution time
- execution options override (consistency, serial consistency, page size and timeout)
NOTE : The time reported in the data collector may not be the real execution time in case you use the async calls : executeAsync
and prepareAsync
Configuration reference
Contributing
First of all, thank you for contributing !
Here are few rules to follow for a easier code review before the maintainers accept and merge your request.
- you MUST follow the Symfony2 coding standard : you can use
./bin/coke
to validate - you MUST run the test
- you MUST write or update tests
- you MUST write or update documentation
Running the test
Install the composer dev dependencies
Then run the test with atoum unit test framework
All versions of cassandra-bundle with dependencies
ext-cassandra Version ^1.3
symfony/config Version ^3.4 || ^4.0
symfony/dependency-injection Version ^3.4 || ^4.0
symfony/event-dispatcher Version ^3.4 || ^4.0
symfony/http-kernel Version ^3.4 || ^4.0