{"id":15355709,"url":"https://github.com/doomspork/modelite","last_synced_at":"2025-04-09T08:41:35.378Z","repository":{"id":1314381,"uuid":"1259180","full_name":"doomspork/modelite","owner":"doomspork","description":"models + sqlite","archived":false,"fork":false,"pushed_at":"2011-02-04T20:00:05.000Z","size":104,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-15T02:44:13.074Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/doomspork.png","metadata":{"files":{"readme":"README","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":"2011-01-16T00:10:41.000Z","updated_at":"2018-03-11T21:30:48.000Z","dependencies_parsed_at":"2022-07-18T21:34:38.405Z","dependency_job_id":null,"html_url":"https://github.com/doomspork/modelite","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doomspork%2Fmodelite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doomspork%2Fmodelite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doomspork%2Fmodelite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doomspork%2Fmodelite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/doomspork","download_url":"https://codeload.github.com/doomspork/modelite/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248008032,"owners_count":21032545,"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":[],"created_at":"2024-10-01T12:25:19.091Z","updated_at":"2025-04-09T08:41:35.352Z","avatar_url":"https://github.com/doomspork.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"models + sqlite = modelite\n\nCurrently only supports PHP \u003e= 5.3, sorry.\n\n#roadmap\n+ relationships!\n+ ????\n+ PROFIT!\n\n#examples\n\nclass Posts extends Model {\n\n    $validators = array(\n        'title' =\u003e array('required', 'alphanumeric') \n        'body' =\u003e array('required')\n        'slug' =\u003e array(new CustomValidator()));\n\n}\n\n$posts = Posts::find(1) #id (sqlite's rowid)\n\n$posts = Posts::find(array('title' =\u003e 'First Post'), array('limit' =\u003e 5));\n\n$posts = Posts::find(array('or' =\u003e array('title' =\u003e 'First Post', 'slug' =\u003e 'second-post-slug')));\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoomspork%2Fmodelite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdoomspork%2Fmodelite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoomspork%2Fmodelite/lists"}