{"id":16337554,"url":"https://github.com/aidsoul/pdo","last_synced_at":"2025-11-02T17:30:25.738Z","repository":{"id":51799654,"uuid":"520182216","full_name":"aidsoul/pdo","owner":"aidsoul","description":"Lightweight, fast PDO query builder.","archived":false,"fork":false,"pushed_at":"2023-08-21T11:47:59.000Z","size":14,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-28T04:33:35.923Z","etag":null,"topics":["mysql-query-builder","pdo","pdo-php","php"],"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/aidsoul.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-08-01T16:22:32.000Z","updated_at":"2023-02-09T12:01:10.000Z","dependencies_parsed_at":"2024-11-07T02:37:29.801Z","dependency_job_id":"75e4db42-dd6b-4beb-88ee-80fcd74dd6be","html_url":"https://github.com/aidsoul/pdo","commit_stats":{"total_commits":2,"total_committers":1,"mean_commits":2.0,"dds":0.0,"last_synced_commit":"84ab406cae4f1d2f41648a700779b1b4672dd832"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aidsoul%2Fpdo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aidsoul%2Fpdo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aidsoul%2Fpdo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aidsoul%2Fpdo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aidsoul","download_url":"https://codeload.github.com/aidsoul/pdo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239399824,"owners_count":19632022,"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":["mysql-query-builder","pdo","pdo-php","php"],"created_at":"2024-10-10T23:47:22.439Z","updated_at":"2025-11-02T17:30:23.587Z","avatar_url":"https://github.com/aidsoul.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\u003ca  href=\"https://github.com/aidsoul/pdo/releases/latest\"  title=\"GitHub release\"\u003e\n\u003cimg  src=\"https://img.shields.io/github/v/release/aidsoul/pdo\"\u003e\n\u003c/a\u003e\n\n## PDO query builder\n\n## Installation\n\nInstallation with the command:\n```\ncomposer require aidsoul/pdo\n```\n## Example Usage\n```php\nrequire_once  __DIR__  .  '/vendor/autoload.php';\nuse Aidsoul\\Pdo\\Db;\n\n$host  =  'localhost';\n$dbName  =  'test';\n$user  =  'root';\n$pass  =  '';\n\n$db  =  new  Db(\"mysql:host={$host};dbname={$dbName}\",  $user,  $pass);\n\n// SELECT\n$db-\u003eselect()\n-\u003efrom('post')\n-\u003ejoin('vkgroup')-\u003eon('group_id','id_group')\n-\u003eorderBy(['id_post'  =\u003e'ASC'])\n-\u003elimit(50)\n-\u003eexecute()\n-\u003efetchAll();\n\n// INSERT\n$db-\u003einsert(['id_post','group_id'])\n-\u003einto('post')\n-\u003evalues([66,28])\n-\u003eexecute();\n\n// DELETE\n$db-\u003edelete()\n-\u003efrom('post')\n-\u003ewhere('group_id','=',113)-\u003eand('id_post','=',147)\n-\u003eexecute();\n\n// UPDATE\n$db-\u003eupdate('vkgroup')\n-\u003eset(['name'=\u003e'test'])\n-\u003ewhere('id_group','=',111)\n-\u003eand('name','=','before the test')\n-\u003eexecute();\n\n```\n \n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faidsoul%2Fpdo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faidsoul%2Fpdo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faidsoul%2Fpdo/lists"}