{"id":37232355,"url":"https://github.com/arabcoders/db","last_synced_at":"2026-01-15T03:48:44.322Z","repository":{"id":62486526,"uuid":"61956248","full_name":"arabcoders/db","owner":"arabcoders","description":"Extends PDO to add extra methods.","archived":false,"fork":false,"pushed_at":"2019-02-25T12:40:39.000Z","size":30,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-03T21:03:52.047Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/arabcoders.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-06-25T18:27:58.000Z","updated_at":"2019-02-25T12:40:18.000Z","dependencies_parsed_at":"2022-11-02T09:46:49.428Z","dependency_job_id":null,"html_url":"https://github.com/arabcoders/db","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/arabcoders/db","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arabcoders%2Fdb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arabcoders%2Fdb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arabcoders%2Fdb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arabcoders%2Fdb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arabcoders","download_url":"https://codeload.github.com/arabcoders/db/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arabcoders%2Fdb/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28419240,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T10:47:48.104Z","status":"ssl_error","status_checked_at":"2026-01-14T10:46:19.031Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":"2026-01-15T03:48:43.783Z","updated_at":"2026-01-15T03:48:44.296Z","avatar_url":"https://github.com/arabcoders.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PDO Extender\n\nThis package extends PDO to implement extra method to ease the use of prepared statements,\nand add shortcut methods for update/delete/insert/select.\n\n## Install\n\nVia Composer\n\n```bash\n$ composer require arabcoders/db\n```\n\n## Usage Example.\n\n```php\n\u003c?php\n\nrequire __DIR__ . '/../../autoload.php';\n\n$pdo = new PDO( 'mysql:host=localhost;dbname=dbName', 'dbUser', 'dbPassword' );\n$db  = new \\arabcoders\\db\\Db( $pdo );\n\n$insert = $db-\u003einsert( 'tableName',[\n    'id'    =\u003e 1,\n    'name'  =\u003e 'foo'\n]);\n\n//-- get last insert id.\n$id = $db-\u003eid();\n\n// -- update row.\n$update = $db-\u003eupdate( 'tableName',\n    [\n        'name'  =\u003e 'bar'\n    ],[\n        'id'    =\u003e $id\n    ]\n);\n\n$delete = $db-\u003edelete( 'tableName', [\n    'id' =\u003e $id\n]);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farabcoders%2Fdb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farabcoders%2Fdb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farabcoders%2Fdb/lists"}