{"id":25806711,"url":"https://github.com/sqlitecloud/sqlitecloud-php","last_synced_at":"2025-02-27T20:28:55.691Z","repository":{"id":242494474,"uuid":"808150391","full_name":"sqlitecloud/sqlitecloud-php","owner":"sqlitecloud","description":" PHP drivers for SQLiteCloud ","archived":false,"fork":false,"pushed_at":"2024-07-31T16:06:23.000Z","size":132,"stargazers_count":4,"open_issues_count":7,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-25T11:50:35.310Z","etag":null,"topics":["cloud","database","sqlite"],"latest_commit_sha":null,"homepage":"https://sqlitecloud.io","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sqlitecloud.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-30T13:37:25.000Z","updated_at":"2025-01-01T15:00:58.000Z","dependencies_parsed_at":"2024-06-14T16:01:20.632Z","dependency_job_id":null,"html_url":"https://github.com/sqlitecloud/sqlitecloud-php","commit_stats":null,"previous_names":["sqlitecloud/sqlitecloud-php"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sqlitecloud%2Fsqlitecloud-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sqlitecloud%2Fsqlitecloud-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sqlitecloud%2Fsqlitecloud-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sqlitecloud%2Fsqlitecloud-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sqlitecloud","download_url":"https://codeload.github.com/sqlitecloud/sqlitecloud-php/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241056726,"owners_count":19901841,"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":["cloud","database","sqlite"],"created_at":"2025-02-27T20:28:55.053Z","updated_at":"2025-02-27T20:28:55.681Z","avatar_url":"https://github.com/sqlitecloud.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Driver for SQLite Cloud\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://sqlitecloud.io/social/logo.png\" height=\"300\" alt=\"SQLite Cloud logo\"\u003e\n\u003c/p\u003e\n\n\n[![Test and QA](https://github.com/sqlitecloud/sqlitecloud-php/actions/workflows/deploy.yaml/badge.svg?branch=main)](https://github.com/sqlitecloud/sqlitecloud-php/actions/workflows/deploy.yaml)\n[![codecov](https://codecov.io/gh/sqlitecloud/sqlitecloud-php/graph/badge.svg?token=3FFHULGCOY)](https://codecov.io/gh/sqlitecloud/sqlitecloud-php)\n[![Packagist Version](https://img.shields.io/packagist/v/sqlitecloud/sqlitecloud)](https://packagist.org/packages/sqlitecloud/sqlitecloud)\n[![PHP](https://img.shields.io/packagist/dependency-v/sqlitecloud/sqlitecloud/php)](https://packagist.org/packages/sqlitecloud/sqlitecloud)\n\n\n- [Driver for SQLite Cloud](#driver-for-sqlite-cloud)\n- [Example](#example)\n\n---\n\n[SQLite Cloud](https://sqlitecloud.io) is a powerful PHP package that allows you to interact with the SQLite Cloud database seamlessly. It provides methods for various database operations. This package is designed to simplify database operations in PHP applications, making it easier than ever to work with SQLite Cloud.\n\n\n- Documentation: [https://docs.sqlitecloud.io/docs/sdk/php](https://docs.sqlitecloud.io/docs/sdk/php/connect)\n- Source: [https://github.com/sqlitecloud/sqlitecloud-php](https://github.com/sqlitecloud/sqlitecloud-php)\n- Site: [https://sqlitecloud.io](https://sqlitecloud.io/developers)\n\n## Example\n\n```bash\n$ composer require sqlitecloud/sqlitecloud\n```\n\n```php\n\u003c?php\n\nrequire_once 'vendor/autoload.php';\n\nuse SQLiteCloud\\SQLiteCloudClient;\nuse SQLiteCloud\\SQLiteCloudRowset;\n\n// Open the connection to SQLite Cloud\n$sqlite = new SQLiteCloudClient();\n$sqlite-\u003econnectWithString('sqlitecloud://myhost.sqlite.cloud:8860?apikey=myapikey');\n\n// You can autoselect the database during the connect call\n// by adding the database name as path of the SQLite Cloud\n// connection string, eg:\n// $sqlite-\u003econnectWithString(\"sqlitecloud://myhost.sqlite.cloud:8860/mydatabase?apikey=myapikey\");\n$db_name = 'chinook.sqlite';\n$sqlite-\u003eexecute(\"USE DATABASE {$db_name}\");\n\n /** @var SQLiteCloudRowset */\n$rowset = $sqlite-\u003eexecute('SELECT * FROM albums WHERE ArtistId = 2');\n\nprintf('%d rows' . PHP_EOL, $rowset-\u003enrows);\nprintf('%s | %s | %s' . PHP_EOL, $rowset-\u003ename(0), $rowset-\u003ename(1), $rowset-\u003ename(2));\nfor ($i = 0; $i \u003c $rowset-\u003enrows; $i++) {\n  printf('%s | %s | %s' . PHP_EOL, $rowset-\u003evalue($i, 0), $rowset-\u003evalue($i, 1), $rowset-\u003evalue($i, 2));\n}\n\n$sqlite-\u003edisconnect();\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsqlitecloud%2Fsqlitecloud-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsqlitecloud%2Fsqlitecloud-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsqlitecloud%2Fsqlitecloud-php/lists"}