{"id":17033544,"url":"https://github.com/websmurf/laravel-cassandra","last_synced_at":"2025-04-12T12:51:39.006Z","repository":{"id":57079172,"uuid":"64308094","full_name":"websmurf/laravel-cassandra","owner":"websmurf","description":"Laravel/Lumen wrapper for Cassandra","archived":false,"fork":false,"pushed_at":"2016-07-29T14:34:08.000Z","size":29,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2023-12-14T20:24:08.800Z","etag":null,"topics":["cassandra","laravel","lumen"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/websmurf.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-07-27T12:52:33.000Z","updated_at":"2020-01-17T16:16:55.000Z","dependencies_parsed_at":"2022-08-24T14:56:24.158Z","dependency_job_id":null,"html_url":"https://github.com/websmurf/laravel-cassandra","commit_stats":null,"previous_names":[],"tags_count":4,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/websmurf%2Flaravel-cassandra","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/websmurf%2Flaravel-cassandra/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/websmurf%2Flaravel-cassandra/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/websmurf%2Flaravel-cassandra/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/websmurf","download_url":"https://codeload.github.com/websmurf/laravel-cassandra/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248571411,"owners_count":21126517,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cassandra","laravel","lumen"],"created_at":"2024-10-14T08:35:10.154Z","updated_at":"2025-04-12T12:51:38.977Z","avatar_url":"https://github.com/websmurf.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Laravel/Lumen wrapper for Cassandra\n=========\n\n[![Build Status](https://scrutinizer-ci.com/g/websmurf/laravel-cassandra/badges/build.png?b=master)](https://scrutinizer-ci.com/g/websmurf/laravel-cassandra/build-status/master)\n[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/websmurf/laravel-cassandra/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/websmurf/laravel-cassandra/?branch=master)\n[![Code Coverage](https://scrutinizer-ci.com/g/websmurf/laravel-cassandra/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/websmurf/laravel-cassandra/?branch=master)\n\nInstallation\n----\n\nThis packages uses the cassandra functionality provided by the Datastax php driver. \nIt needs to be installed before you will be able to use this package. See for more information: [http://datastax.github.io/php-driver/](http://datastax.github.io/php-driver/)\n\nInstall using composer: \n\n```\ncomposer require websmurf/laravel-cassandra\n```\n\nAfter that, register the service provider by adding it in your app.php:\n\n```\n$app-\u003eregister(Websmurf\\LaravelCassandra\\CassandraServiceProvider::class);\n```\n\nYou can publish the configuration using the following command:\n\n```\nphp artisan config:publish websmurf/laravel-cassandra\n```\n\nOr simply create a copy of the config/cassandra.php file in your app/config folder.\n\nAfter that, change the configuration according to your needs.\n\nUsage\n----\n\nAfter installation, you can inject Cassandra in your constructor and use it in your code:\n\n```php\n// Inject in the constructor\npublic function __construct(Cassandra $cassandra, Request $request)\n{\n\t$this-\u003ecassandra = $cassandra;\n}\n\n// Create prepared statement\n$prepared = $this-\u003ecassandra-\u003eprepare('THIS IS MY CQL STATEMENT');\n\n// Create options for execution\n$options = new \\Cassandra\\ExecutionOptions([\n\t'arguments' =\u003e $data,\n  \t'consistency' =\u003e \\Cassandra::CONSISTENCY_ONE\n]);\n\n// Execute statement\n$this-\u003ecassandra-\u003eexecute($prepared, $options);\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebsmurf%2Flaravel-cassandra","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebsmurf%2Flaravel-cassandra","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebsmurf%2Flaravel-cassandra/lists"}