{"id":25063032,"url":"https://github.com/naftali100/async-orm","last_synced_at":"2025-03-31T11:42:53.583Z","repository":{"id":62363718,"uuid":"559945400","full_name":"naftali100/async-orm","owner":"naftali100","description":null,"archived":false,"fork":false,"pushed_at":"2023-02-05T00:25:12.000Z","size":61,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-06T17:43:27.757Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/naftali100.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":"2022-10-31T12:35:48.000Z","updated_at":"2022-10-31T12:52:53.000Z","dependencies_parsed_at":"2023-02-18T20:20:26.939Z","dependency_job_id":null,"html_url":"https://github.com/naftali100/async-orm","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naftali100%2Fasync-orm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naftali100%2Fasync-orm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naftali100%2Fasync-orm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naftali100%2Fasync-orm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/naftali100","download_url":"https://codeload.github.com/naftali100/async-orm/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246465213,"owners_count":20781914,"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":"2025-02-06T17:35:26.478Z","updated_at":"2025-03-31T11:42:53.562Z","avatar_url":"https://github.com/naftali100.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# async-orm\n\nasync orm lib inspired by [redbean](https://redbeanphp.com)\n\nimplements only the basic CURD functionality (no relations atm)\n# usage\n\nalmost the same as redbean. notice the `yield` every time you do db call\n\n```php\nAmp\\Loop::run(function(){\n    yield ORM::connect('127.0.0.1', 'user', 'pass', 'db');\n\n    $user = ORM::create('user');\n    $user-\u003ename = 'john';\n    $userid = yield ROM::store($user);\n\n    $same_user = yield ORM::load('user', $userid);\n    print $same_user-\u003eid; // id\n    print $same_user-\u003ename; // john\n});\n```\n\n## todo\n\n- [x] tests\n- [ ] relations\n- [ ] fix structure\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnaftali100%2Fasync-orm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnaftali100%2Fasync-orm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnaftali100%2Fasync-orm/lists"}