{"version":"1.0","type":"rich","title":"Gist b5dc8f17d66c4338872bb3b792b8b58d","description":"This example shows a minimal Cassandra database integration for a PHP application, demonstrating how to query and display transaction data. The code defines a custom Yii2 component that connects to a Cassandra cluster, executes raw CQL queries, and converts the result set into a PHP array for iteration. It displays the `user_agent` field from each row of the `transactions` table. The implementation uses the `Cassandra` PHP extension’s cluster builder and session, while the Yii2 `Component` class provides the configuration and lifecycle hooks. The example also includes the necessary `config/web.php` setup for the component’s keyspace and server addresses.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-b5dc8f17d66c4338872bb3b792b8b58d?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}