{"id":19474873,"url":"https://github.com/titikterang/php_simple_crud_helper","last_synced_at":"2026-05-07T16:38:50.670Z","repository":{"id":81847090,"uuid":"191493599","full_name":"titikterang/php_simple_crud_helper","owner":"titikterang","description":"Simple database crud helper based on php","archived":false,"fork":false,"pushed_at":"2019-06-12T09:01:24.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-11-19T16:25:11.425Z","etag":null,"topics":["crud","mysql","php","sql"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/titikterang.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2019-06-12T03:50:55.000Z","updated_at":"2022-04-02T11:18:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"124232c4-5d1a-4b16-b86f-5d08c4cbfd30","html_url":"https://github.com/titikterang/php_simple_crud_helper","commit_stats":null,"previous_names":["jokogledek/php_simple_crud_helper","titikterang/php_simple_crud_helper"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/titikterang/php_simple_crud_helper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/titikterang%2Fphp_simple_crud_helper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/titikterang%2Fphp_simple_crud_helper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/titikterang%2Fphp_simple_crud_helper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/titikterang%2Fphp_simple_crud_helper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/titikterang","download_url":"https://codeload.github.com/titikterang/php_simple_crud_helper/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/titikterang%2Fphp_simple_crud_helper/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32746230,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-07T02:14:30.463Z","status":"ssl_error","status_checked_at":"2026-05-07T02:14:29.405Z","response_time":62,"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":["crud","mysql","php","sql"],"created_at":"2024-11-10T19:27:22.556Z","updated_at":"2026-05-07T16:38:50.653Z","avatar_url":"https://github.com/titikterang.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# php simple crud helper\n___\nSimple mysql database crud helper\n\n### insert\nInsert data into table\n```\n$tool                = new dbaseTools();\n$data[\"id\"]          = \"USER01\";\n$data[\"username\"]    = \"xander\";\n$data[\"pass\"]        = \"nothing\";\n$tool-\u003einsert(\"user_table\", $data);\n```\n\n### update by PK\nUpdate table by primary key \n```\n$tool                = new dbaseTools();\n$id                  = 'USER01';\n$data[\"username\"]    = \"xander\";\n$data[\"pass\"]        = \"new_pas\";\n$tool-\u003eupdateByPK(\"user_table\", $data, $id);\n```\n\n### delete by PK\nDelete row by primary key \n```\n$tool    = new dbaseTools();\n$id      = 'user01';\n$tool-\u003edeleteByPK(\"user_table\", $id);\n```\n\n### query\nregular mysql query with where clause\n```\n$tool    = new dbaseTools();\n$query   = \"select * from user_table where id = :id and status = :status\";\n$param   = array(\"id\"=\u003e2, \"status\"=\u003e0);\n$tool-\u003equery($query, $param);\n```\n\n### generate php classes from table\ngenerate classes from all existing tables\n```\n$tools = new dbaseTools();\n$tools-\u003egenerateClassFromAllTable(\"models\");\n```\n\ngenerate classes from single table\n```\n$tools = new dbaseTools();\n$tools-\u003egenerateClassFromTableName(\"t_user_login\", \"models\");\n```\n\ngenerate classes from table in array\n```\n$tools = new dbaseTools();\n$listTables = [\"t_user_login\", \"t_user_history\"];\n$tools-\u003egenerateClassFromTables($listTables, \"models\");\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftitikterang%2Fphp_simple_crud_helper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftitikterang%2Fphp_simple_crud_helper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftitikterang%2Fphp_simple_crud_helper/lists"}