{"id":15295819,"url":"https://github.com/oussemakh1/orm-package","last_synced_at":"2026-05-19T09:10:41.143Z","repository":{"id":57034065,"uuid":"396175607","full_name":"oussemakh1/orm-package","owner":"oussemakh1","description":"This a native php orm package that works with mysql it's main objectif is to facilitate the crud process in your application, contains all crud opreations like (insert, edit, update, delete, soft_delete) as well search operation","archived":false,"fork":false,"pushed_at":"2021-08-15T15:52:09.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-22T21:46:28.090Z","etag":null,"topics":["mysql-database","orm-library","php","php-library"],"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/oussemakh1.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}},"created_at":"2021-08-15T01:01:20.000Z","updated_at":"2021-08-15T15:52:12.000Z","dependencies_parsed_at":"2022-08-24T06:50:21.140Z","dependency_job_id":null,"html_url":"https://github.com/oussemakh1/orm-package","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/oussemakh1/orm-package","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oussemakh1%2Form-package","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oussemakh1%2Form-package/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oussemakh1%2Form-package/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oussemakh1%2Form-package/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oussemakh1","download_url":"https://codeload.github.com/oussemakh1/orm-package/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oussemakh1%2Form-package/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33209633,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-19T07:54:09.561Z","status":"ssl_error","status_checked_at":"2026-05-19T07:54:08.508Z","response_time":58,"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":["mysql-database","orm-library","php","php-library"],"created_at":"2024-09-30T18:08:17.836Z","updated_at":"2026-05-19T09:10:41.124Z","avatar_url":"https://github.com/oussemakh1.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# orm-package\nThis a native php orm package that works with mysql it's main objectif is to facilitate the crud process in your application, contains all crud opreations like (insert, edit, update, delete, soft_delete) as well search operation\n\n# setup\n1- composer require oussemakhlifi/orm-package \u003cbr\u003e\n2- setup your .env file with following varibales\u003cbr\u003e\n- \u003cb\u003edb_host\u003c/b\u003e = \"host\" \u003cbr\u003e\n- \u003cb\u003edb_username\u003c/b\u003e = \"database username\" \u003cbr\u003e\n- \u003cb\u003edb_password\u003c/b\u003e = \"database password\" \u003cbr\u003e\n- \u003cb\u003edb_name\u003c/b\u003e = \"database name\"  \u003cbr\u003e\n\n# usage \n\u003cb\u003einsert example\u003c/b\u003e: \u003cbr\u003e\n      \n     $db = new \\MysqlDB\\MysqlDB(); \n     \n     $table_name = \"products\"; \n     \n     $columns = [\"name\", \"category\", \"price\"];\n     \n     $values = [\"samsung a21\", \"phone\", \"1500\"];\n     \n     $insert = $db-\u003einsert($table_name, $columns, $values);\n\n\n\u003cb\u003eselect example\u003c/b\u003e: \u003cbr\u003e\n      \n     $db = new \\MysqlDB\\MysqlDB(); \n     \n     $table_name = \"products\"; \n     \n     $where = \"id\";\n     \n     $value = 1;\n     \n     $orderby = \"id\";\n     \n     $option = \"desc\";\n     \n     $select = $db-\u003eselect($table_name, $where, $value, $orderby, $option);    \n\n\n\u003cb\u003eselect by operator example\u003c/b\u003e: \u003cbr\u003e\n      \n     $db = new \\MysqlDB\\MysqlDB(); \n     \n     $table_name = \"products\"; \n     \n     $column = \"price\";\n     \n     $operation = \"=\";\n     \n     $value = 1500;\n     \n     $orderby = \"id\";\n     \n     $option = \"desc\";\n     \n     $select = $db-\u003eselectByOperator($table_name, $column, $operation, $value, $orderby, $option);\n     \n\n\n\u003cb\u003eupdate example\u003c/b\u003e: \u003cbr\u003e\n      \n     $db = new \\MysqlDB\\MysqlDB(); \n     \n     $table_name = \"products\"; \n     \n     $where = \"id\";\n     \n     $where_value = \"1\";\n     \n     $columns = [\"name\", \"category\", \"price\"];\n     \n     $values = [\"samsung a22\", \"phone\", \"1000\"];\n     \n     $update = $db-\u003eupdate($table_name, $columns,$where, $where_value, $values);\n     \n     \n\u003cb\u003edelete example\u003c/b\u003e: \u003cbr\u003e\n      \n     $db = new \\MysqlDB\\MysqlDB(); \n     \n     $table_name = \"products\"; \n     \n     $column = \"id\";\n     \n     $value = \"1\";\n     \n     $delete = $db-\u003edelete($table_name, $colum, $value);\n     \n\n\n\u003cb\u003esoft delete example\u003c/b\u003e: \u003cbr\u003e\n      \n     $db = new \\MysqlDB\\MysqlDB(); \n     \n     $table_name = \"products\"; \n     \n     $column = \"id\";\n     \n     $value = \"1\";\n     \n     $soft_delete = $db-\u003esoft_delete($table_name, $colum, $value);\n     \n     \n\u003cb\u003esearch example\u003c/b\u003e: \u003cbr\u003e\n      \n     $db = new \\MysqlDB\\MysqlDB(); \n     \n     $table_name = \"products\"; \n     \n     $column = \"category\";\n     \n     $value = \"phone\";\n     \n     $search = $db-\u003esearch($table_name, $column, $value); \n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foussemakh1%2Form-package","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foussemakh1%2Form-package","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foussemakh1%2Form-package/lists"}