{"id":20665177,"url":"https://github.com/martan03/php-database","last_synced_at":"2026-05-02T11:39:48.935Z","repository":{"id":160439295,"uuid":"540579906","full_name":"Martan03/PHP-Database","owner":"Martan03","description":"PHP database object","archived":false,"fork":false,"pushed_at":"2022-10-07T20:38:58.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-17T11:26:07.781Z","etag":null,"topics":["database","mysql","mysql-database","php","php-databse","phpmyadmin"],"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/Martan03.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-09-23T19:00:24.000Z","updated_at":"2022-10-20T11:39:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"de1d02a4-b5a6-4f6f-9b3d-f08b42ad709c","html_url":"https://github.com/Martan03/PHP-Database","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Martan03/PHP-Database","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Martan03%2FPHP-Database","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Martan03%2FPHP-Database/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Martan03%2FPHP-Database/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Martan03%2FPHP-Database/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Martan03","download_url":"https://codeload.github.com/Martan03/PHP-Database/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Martan03%2FPHP-Database/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32533344,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-02T11:28:32.350Z","status":"ssl_error","status_checked_at":"2026-05-02T11:27:30.140Z","response_time":132,"last_error":"SSL_read: 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":["database","mysql","mysql-database","php","php-databse","phpmyadmin"],"created_at":"2024-11-16T19:28:54.763Z","updated_at":"2026-05-02T11:39:48.906Z","avatar_url":"https://github.com/Martan03.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PHP Database class\n\n## Usage:\nFirst you need to require database class:\n```php\nrequire_once(\"Db.php\");\n```\nThen you can connect to the database. This is example on localhost:\n```php\nif (!Db::connect(\"127.0.0.1\", \"database_name\", \"root\", \"\"))\n{\n    header(\"Location: 500\");\n    exit;\n}\n```\nAnd now you can start using your database. This is example of getting all rows and columns from database:\n```php\nDb::queryAll(\"\n    SELECT *\n    FROM your_database\n    WHERE name = ?\n\", array(\"name\"));\n```\n\n## List of features\n- Connecting to database using PDO connection\n- Executing query and:\n    - Getting number of effected rows\n    - Getting all effected rows\n    - Getting first effected row\n    - Getting first effected row's first column\n- Easy to use insert and update functions\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmartan03%2Fphp-database","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmartan03%2Fphp-database","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmartan03%2Fphp-database/lists"}