{"id":18336609,"url":"https://github.com/iassasin/fidb","last_synced_at":"2026-02-23T21:40:22.619Z","repository":{"id":56988230,"uuid":"116735607","full_name":"iassasin/fidb","owner":"iassasin","description":"Fine Interface to Database","archived":false,"fork":false,"pushed_at":"2025-02-06T15:44:35.000Z","size":32,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-06T16:38:59.785Z","etag":null,"topics":["database","database-interface","database-wrapper","db","php"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/iassasin.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":"2018-01-08T22:28:03.000Z","updated_at":"2025-02-06T15:44:14.000Z","dependencies_parsed_at":"2022-08-21T09:40:46.895Z","dependency_job_id":null,"html_url":"https://github.com/iassasin/fidb","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iassasin%2Ffidb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iassasin%2Ffidb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iassasin%2Ffidb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iassasin%2Ffidb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iassasin","download_url":"https://codeload.github.com/iassasin/fidb/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238988168,"owners_count":19563869,"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":["database","database-interface","database-wrapper","db","php"],"created_at":"2024-11-05T20:08:23.003Z","updated_at":"2025-10-30T15:31:03.782Z","avatar_url":"https://github.com/iassasin.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fine Interface to Database\n\nVery simple and lightweight database connection wrapper making easer and safer to construct queries.\n\n# Install\nUse composer to install `fidb`:\n\n```\ncomposer require iassasin/fidb\n```\n\n# Usage\n```php\nrequire_once 'vendor/autoload.php';\n\nuse Iassasin\\Fidb\\Connection\\ConnectionMysql;\n\n$db = new ConnectionMysql($host, $database, $user, $password);\n\n$db-\u003equery('INSERT INTO table(num, str, txt) VALUES(%d, %s, %s)',\n\t123, 'string', 'and \"text\"'); // automatic string escaping\n\n// build queries of any complexity with variables\n$bs = $db-\u003eselect()\n\t-\u003ecolumn('str')\n\t-\u003etable('table')\n\t-\u003ewhere('num \u003e %d', 30);\n\nforeach ($bs-\u003eexecute()-\u003efetchAll() as $row){\n\techo $row['str'];\n}\n```\n\nMore examples see in [example](example/example.php)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiassasin%2Ffidb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiassasin%2Ffidb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiassasin%2Ffidb/lists"}