{"id":17093752,"url":"https://github.com/leeqvip/database","last_synced_at":"2025-04-12T22:44:49.108Z","repository":{"id":57066230,"uuid":"153309188","full_name":"leeqvip/database","owner":"leeqvip","description":"PDO database library for PHP.","archived":false,"fork":false,"pushed_at":"2022-10-23T10:31:23.000Z","size":9,"stargazers_count":5,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-12T22:44:45.362Z","etag":null,"topics":["database-library","orm","pdo","pdo-database-library","pdo-mysql","pdo-pgsql","pdo-php","php"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/leeqvip.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-10-16T15:28:01.000Z","updated_at":"2023-04-26T02:40:19.000Z","dependencies_parsed_at":"2022-08-24T14:54:00.649Z","dependency_job_id":null,"html_url":"https://github.com/leeqvip/database","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leeqvip%2Fdatabase","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leeqvip%2Fdatabase/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leeqvip%2Fdatabase/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leeqvip%2Fdatabase/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leeqvip","download_url":"https://codeload.github.com/leeqvip/database/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248643048,"owners_count":21138353,"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-library","orm","pdo","pdo-database-library","pdo-mysql","pdo-pgsql","pdo-php","php"],"created_at":"2024-10-14T14:08:14.132Z","updated_at":"2025-04-12T22:44:49.085Z","avatar_url":"https://github.com/leeqvip.png","language":"PHP","readme":"# Database library for PHP\n\nPDO database library for PHP.\n\nthe current supported databases are:\n\n| type | database |\n| ------ | ------ |\n| mysql | MySQL |\n| pgsql | PostgreSQL |\n| sqlite | SQLite |\n| sqlsrv | SqlServer |\n\n### Installation\n\nUse [Composer](https://getcomposer.org/)\n\n```\ncomposer require leeqvip/database\n```\n\n### Usage\n\n```php\nrequire_once './vendor/autoload.php';\n\nuse Leeqvip\\Database\\Manager;\n\n$config = [\n    'type'     =\u003e 'mysql', // mysql,pgsql,sqlite,sqlsrv\n    'hostname' =\u003e '127.0.0.1',\n    'database' =\u003e 'test',\n    'username' =\u003e 'root',\n    'password' =\u003e 'abc-123',\n    'hostport' =\u003e '3306',\n];\n\n$manager = new Manager($config);\n$connection = $manager-\u003egetConnection();\n\n$connection-\u003equery('SELECT * FROM `users` WHERE `id` = :id', ['id' =\u003e 1]);\n\n$connection-\u003eexecute('UPDATE `users` SET `name` = \"joker\" where `id` = :id', ['id' =\u003e 1]);\n```\n\n### License\n\nThis project is licensed under the [Apache 2.0 license](LICENSE).","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleeqvip%2Fdatabase","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleeqvip%2Fdatabase","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleeqvip%2Fdatabase/lists"}