{"id":34596141,"url":"https://github.com/the-eater/glim","last_synced_at":"2026-05-24T20:03:43.619Z","repository":{"id":56974456,"uuid":"55084809","full_name":"the-eater/Glim","owner":"the-eater","description":"Glamorous Slim php","archived":false,"fork":false,"pushed_at":"2016-03-30T19:17:14.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-18T22:29:56.536Z","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/the-eater.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":"2016-03-30T17:54:29.000Z","updated_at":"2016-03-30T19:17:15.000Z","dependencies_parsed_at":"2022-08-21T11:50:31.533Z","dependency_job_id":null,"html_url":"https://github.com/the-eater/Glim","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/the-eater/Glim","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/the-eater%2FGlim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/the-eater%2FGlim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/the-eater%2FGlim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/the-eater%2FGlim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/the-eater","download_url":"https://codeload.github.com/the-eater/Glim/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/the-eater%2FGlim/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33448587,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-24T19:21:36.376Z","status":"ssl_error","status_checked_at":"2026-05-24T19:21:10.562Z","response_time":57,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":[],"created_at":"2025-12-24T11:43:20.850Z","updated_at":"2026-05-24T20:03:43.615Z","avatar_url":"https://github.com/the-eater.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Glim\n\nAdding more glamour to Slim\n\n# What is it?\n\nGlim HSVM model build around Slim, Propel and Twig.\n\n# HSVM\n\nI totally just made that up but it stands for **H**andler **S**ervice **V**iew **M**odel\n\n## Handler\n\nA handler is like a controller but only handles one request, every route has it's own handler.\n\nAn example handler would look like\n\n```php\n\u003c?php\n\nnamespace Eater\\Glim\\Handler;\n\nclass Login extends Main\n{\n    function handle()\n    {\n        $user = this-\u003eget('user');\n\n        $user = $user-\u003elogin($this-\u003epost('username'), $this-\u003epost('password'));\n\n        if ($user === false) {\n            return \"Login failed\";\n        } else {\n            return \"Welcome, {$user-\u003ename}\";\n        }\n    }\n}\n```\n\n## Service\n\nA service is an class exposing several functions around a certain subject\n\nfor example here we have the user service\n\n```php\n\u003c?php\n\nnamespace Eater\\Glim\\Service;\n\nclass User extends Main\n{\n    function login($username, $password)\n    {\n        if ($username == \"4\" \u0026\u0026 $password == \"2\") {\n            $user = new \\stdClass();\n            $user-\u003ename = \"Towel\";\n\n            return $user;\n        }\n\n        return false;\n    }\n}\n```\n\n## View\n\nThe view, written in [twig](http://twig.sensiolabs.org)\n\n## Model\n\nThe model, generated by [propel](http://propelorm.org)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthe-eater%2Fglim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthe-eater%2Fglim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthe-eater%2Fglim/lists"}