Cassandra PHPCassa & Composite Types
This post is updated inorder to support phpcassa 1.0.a.1 Cassandra Composite Type using PHPCassa phpcassa 1.0.a.1 uses namespaces in PHP which is supported in PHP 5 >= 5.3.0 Make sure you have the relavant package. The script mentioned below is the copy of PHPCassa Composite Example I will explain it step by step (1) Creating Keyspace using PHPCassa Name => "Keyspace1" Replication Factor => 1 Placement Strategy => Simple Strategy (2) Creating Column Family with Composite Keys using PHPCassa Name => "Composites" Column Comparator => CompositeType of LongType, AsciiType (Ex: 1:example) Row Key Validation => CompositeType of AsciiType, LongType (Ex: example:1) ...