{"id":42716769,"url":"https://github.com/daydiff/simple_db","last_synced_at":"2026-01-29T15:40:21.658Z","repository":{"id":56963743,"uuid":"48792876","full_name":"daydiff/simple_db","owner":"daydiff","description":"A simple Db class - a high level wrapper on PDO","archived":false,"fork":false,"pushed_at":"2016-07-28T07:47:25.000Z","size":45,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-05-20T17:58:27.215Z","etag":null,"topics":[],"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/daydiff.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-12-30T09:19:29.000Z","updated_at":"2016-07-10T16:43:40.000Z","dependencies_parsed_at":"2022-08-21T09:51:01.149Z","dependency_job_id":null,"html_url":"https://github.com/daydiff/simple_db","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/daydiff/simple_db","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daydiff%2Fsimple_db","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daydiff%2Fsimple_db/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daydiff%2Fsimple_db/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daydiff%2Fsimple_db/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/daydiff","download_url":"https://codeload.github.com/daydiff/simple_db/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daydiff%2Fsimple_db/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28880342,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-29T10:31:27.438Z","status":"ssl_error","status_checked_at":"2026-01-29T10:31:01.017Z","response_time":59,"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-29T15:40:20.979Z","updated_at":"2026-01-29T15:40:21.646Z","avatar_url":"https://github.com/daydiff.png","language":"PHP","readme":"# A simple Db class - a high level wrapper on PDO\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/daydiff/simple-db.svg?style=flat-square)](https://packagist.org/packages/daydiff/simple-db)\n[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE.md)\n[![Build Status](https://img.shields.io/travis/daydiff/simple_db/master.svg?style=flat-square)](https://travis-ci.org/daydiff/simple_db)\n\nIt's a very simple but handy and high level database wrapper on PDO. Usefull for small scripts and for systems without \"normal\" database abstraction.\n\n## Install\n\nRecommended way\n\n``` bash\n$ composer require daydiff/simple-db\n```\n\nAlternate way\n\n``` bash\n$ git clone https://github.com/daydiff/simple_db\n```\n\n## Usage\n\nIt's very simple like a class itself\n\n``` php\nuse Daydiff\\SimpleDb\\Db;\n\n$dsn = 'mysql:dbname=great_company;host=localhost';\n$user = 'database_user';\n$password = 'database_password';\n\n$db = new Db($dsn, $user, $password);\n$name = $db-\u003escalar('SELECT name FROM user WHERE id = :id', [':id' =\u003e 1]);\n```\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaydiff%2Fsimple_db","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdaydiff%2Fsimple_db","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaydiff%2Fsimple_db/lists"}