{"id":22695649,"url":"https://github.com/tina4stack/tina4php-pdo","last_synced_at":"2026-03-14T22:19:19.552Z","repository":{"id":65483378,"uuid":"592657765","full_name":"tina4stack/tina4php-pdo","owner":"tina4stack","description":"PDO Database drivers for Tina4","archived":false,"fork":false,"pushed_at":"2023-01-25T16:17:17.000Z","size":44,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-10-24T14:59:07.623Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/tina4stack.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}},"created_at":"2023-01-24T08:32:42.000Z","updated_at":"2023-06-10T04:40:08.000Z","dependencies_parsed_at":"2023-02-14T06:40:17.140Z","dependency_job_id":null,"html_url":"https://github.com/tina4stack/tina4php-pdo","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/tina4stack/tina4php-pdo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tina4stack%2Ftina4php-pdo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tina4stack%2Ftina4php-pdo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tina4stack%2Ftina4php-pdo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tina4stack%2Ftina4php-pdo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tina4stack","download_url":"https://codeload.github.com/tina4stack/tina4php-pdo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tina4stack%2Ftina4php-pdo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30519652,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-14T19:51:21.629Z","status":"ssl_error","status_checked_at":"2026-03-14T19:51:12.959Z","response_time":57,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-12-10T04:11:22.218Z","updated_at":"2026-03-14T22:19:19.547Z","avatar_url":"https://github.com/tina4stack.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tina4php-pdo\n\nPDO database driver for the Tina4 PHP framework.\n\n## Installation\n\n```bash\ncomposer require tina4stack/tina4php-pdo\n```\n\n## Requirements\n\n- PHP \u003e= 8.1\n- ext-pdo\n- tina4stack/tina4php-database ^2.0\n\n## Usage\n\n```php\n// Connection format: host/port:database (PDO DSN style)\n$DBA = new \\Tina4\\DataPDO(\"host/port:database\", \"username\", \"password\");\n\n// SQLite example (no credentials needed)\n$DBA = new \\Tina4\\DataPDO(\"sqlite:test.db\");\n\n// MSSQL via dblib example\n$DBA = new \\Tina4\\DataPDO(\"dblib:host=localhost:1433;dbname=mydb\", \"sa\", \"password\");\n\n// Execute queries\n$DBA-\u003eexec(\"create table users (id integer primary key, name varchar(200))\");\n$DBA-\u003ecommit();\n\n// Insert with parameters\n$DBA-\u003eexec(\"insert into users (id, name) values (?, ?)\", 1, \"Alice\");\n\n// Fetch records\n$result = $DBA-\u003efetch(\"select * from users\");\n$records = $result-\u003easArray();\n\n// Fetch with limit and offset\n$result = $DBA-\u003efetch(\"select * from users\", 10, 0);\n\n// Fetch single record\n$record = $DBA-\u003efetchOne(\"select * from users where id = 1\");\n\n// Check if table exists\n$exists = $DBA-\u003etableExists(\"users\");\n\n// Get database metadata\n$metadata = $DBA-\u003egetDatabase();\n```\n\n## Testing\n\n```bash\ndocker compose up -d\ncomposer test\n```\n\n## License\n\nMIT - see [LICENSE](LICENSE)\n\n---\n\n## Our Sponsors\n\n**Sponsored with 🩵 by Code Infinity**\n\n[\u003cimg src=\"https://codeinfinity.co.za/wp-content/uploads/2025/09/c8e-logo-github.png\" alt=\"Code Infinity\" width=\"100\"\u003e](https://codeinfinity.co.za/about-open-source-policy?utm_source=github\u0026utm_medium=website\u0026utm_campaign=opensource_campaign\u0026utm_id=opensource)\n\n*Supporting open source communities \u003cspan style=\"color: #1DC7DE;\"\u003e•\u003c/span\u003e Innovate \u003cspan style=\"color: #1DC7DE;\"\u003e•\u003c/span\u003e Code \u003cspan style=\"color: #1DC7DE;\"\u003e•\u003c/span\u003e Empower*\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftina4stack%2Ftina4php-pdo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftina4stack%2Ftina4php-pdo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftina4stack%2Ftina4php-pdo/lists"}