{"id":18321784,"url":"https://github.com/chillerlan/php-database","last_synced_at":"2025-08-10T14:10:03.780Z","repository":{"id":62501708,"uuid":"95587925","full_name":"chillerlan/php-database","owner":"chillerlan","description":"A PHP7.4+ SQL client and querybuilder","archived":false,"fork":false,"pushed_at":"2024-08-27T20:08:56.000Z","size":1986,"stargazers_count":41,"open_issues_count":0,"forks_count":8,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-08T21:43:53.111Z","etag":null,"topics":["database","firebirdsql","mysql","odbc","pdo","php","php-database","php-library","php7","postgresql","sql","sqlite3","sqlserver"],"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/chillerlan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","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},"funding":{"ko_fi":"codemasher","custom":"https://www.paypal.com/donate?hosted_button_id=WLYUNAT9ZTJZ4"}},"created_at":"2017-06-27T18:19:52.000Z","updated_at":"2025-06-30T15:47:44.000Z","dependencies_parsed_at":"2024-12-24T15:15:35.578Z","dependency_job_id":"711e4097-2869-4fde-9bde-3fd5a47e84f9","html_url":"https://github.com/chillerlan/php-database","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/chillerlan/php-database","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chillerlan%2Fphp-database","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chillerlan%2Fphp-database/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chillerlan%2Fphp-database/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chillerlan%2Fphp-database/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chillerlan","download_url":"https://codeload.github.com/chillerlan/php-database/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chillerlan%2Fphp-database/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269734149,"owners_count":24466554,"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","status":"online","status_checked_at":"2025-08-10T02:00:08.965Z","response_time":71,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["database","firebirdsql","mysql","odbc","pdo","php","php-database","php-library","php7","postgresql","sql","sqlite3","sqlserver"],"created_at":"2024-11-05T18:21:31.417Z","updated_at":"2025-08-10T14:10:03.737Z","avatar_url":"https://github.com/chillerlan.png","language":"PHP","readme":"# chillerlan/php-database\n\nA PHP SQL client and querybuilder for the most common databases, namely: MySQL, PostgreSQL, SQLite3, Microsoft SQL Server (Transact) and Firebird.\n\n[![PHP Version Support][php-badge]][php]\n[![version][packagist-badge]][packagist]\n[![license][license-badge]][license]\n[![Continuous Integration][gh-action-badge]][gh-action]\n[![Coverage][coverage-badge]][coverage]\n[![Packagist downloads][downloads-badge]][downloads]\n\n[php-badge]: https://img.shields.io/packagist/php-v/chillerlan/php-database?logo=php\u0026color=8892BF\u0026logoColor=fff\n[php]: https://www.php.net/supported-versions.php\n[packagist-badge]: https://img.shields.io/packagist/v/chillerlan/php-database.svg?logo=packagist\u0026logoColor=fff\n[packagist]: https://packagist.org/packages/chillerlan/php-database\n[license-badge]: https://img.shields.io/github/license/chillerlan/php-database.svg\n[license]: https://github.com/chillerlan/php-database/blob/main/LICENSE\n[gh-action-badge]: https://img.shields.io/github/actions/workflow/status/chillerlan/php-database/ci.yml?branch=main\u0026logo=github\u0026logoColor=fff\n[gh-action]: https://github.com/chillerlan/php-database/actions/workflows/ci.yml?query=branch%3Amain\n[coverage-badge]: https://img.shields.io/codecov/c/github/chillerlan/php-database.svg?logo=codecov\u0026logoColor=fff\n[coverage]: https://codecov.io/github/chillerlan/php-database\n[downloads-badge]: https://img.shields.io/packagist/dt/chillerlan/php-database.svg?logo=packagist\u0026logoColor=fff\n[downloads]: https://packagist.org/packages/chillerlan/php-database/stats\n\n# Documentation\n\n## Requirements\n- PHP 8.2+\n- one of the supported databases, set up to work with PHP:\n  - [MySQL](https://dev.mysql.com/doc/refman/5.6/en/) (5.5+) / [MariaDB](https://mariadb.com/kb/en/library/basic-sql-statements/) via [ext-mysqli](https://www.php.net/manual/en/book.mysqli.php) or [ext-pdo_mysql](https://www.php.net/manual/en/ref.pdo-mysql.php)\n  - [PostgreSQL](https://www.postgresql.org/docs/9.5/static/index.html) (9.5+) via [ext-pgsql](https://www.php.net/manual/en/book.pgsql.php) or [ext-pdo_pgsql](https://www.php.net/manual/en/ref.pdo-pgsql.php)\n  - [SQLite3](https://www.sqlite.org/lang.html) via [ext-pdo_sqlite](https://www.php.net/manual/en/ref.pdo-sqlite.php)\n  - [Firebird](https://www.firebirdsql.org/file/documentation/reference_manuals/fblangref25-en/html/fblangref25.html) (2.5+) via [ext-pdo_firebird](https://www.php.net/manual/en/ref.pdo-firebird.php)\n  - [Microsoft SQL Server](https://www.microsoft.com/en-us/sql-server/sql-server-downloads) ([transact-sql](https://docs.microsoft.com/sql/t-sql/language-reference)) via [ext-sqlsrv or ext-pdo_sqlsrv](https://github.com/Microsoft/msphpsql)\n\n## Installation\n**requires [composer](https://getcomposer.org)**\n\n### *composer.json*\n(note: replace `dev-main` with a [version boundary](https://getcomposer.org/doc/articles/versions.md#summary))\n```json\n{\n\t\"require\": {\n\t\t\"php\": \"^8.2\",\n\t\t\"chillerlan/php-database\": \"dev-main\"\n\t}\n}\n```\n\nProfit!\n\n","funding_links":["https://ko-fi.com/codemasher","https://www.paypal.com/donate?hosted_button_id=WLYUNAT9ZTJZ4"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchillerlan%2Fphp-database","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchillerlan%2Fphp-database","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchillerlan%2Fphp-database/lists"}