{"id":23718398,"url":"https://github.com/kodaloid/slim4-skeleton","last_synced_at":"2026-02-10T22:30:20.718Z","repository":{"id":270325545,"uuid":"909715699","full_name":"kodaloid/slim4-skeleton","owner":"kodaloid","description":"A bare bones skeleton for building websites with SlimPHP 4x.","archived":false,"fork":false,"pushed_at":"2024-12-30T09:29:29.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-30T10:32:42.435Z","etag":null,"topics":["jwt","php8","slimphp","template"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kodaloid.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-29T15:15:01.000Z","updated_at":"2024-12-30T09:29:32.000Z","dependencies_parsed_at":"2024-12-30T10:43:08.838Z","dependency_job_id":null,"html_url":"https://github.com/kodaloid/slim4-skeleton","commit_stats":null,"previous_names":["kodaloid/slim4-skeleton"],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kodaloid%2Fslim4-skeleton","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kodaloid%2Fslim4-skeleton/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kodaloid%2Fslim4-skeleton/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kodaloid%2Fslim4-skeleton/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kodaloid","download_url":"https://codeload.github.com/kodaloid/slim4-skeleton/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239808460,"owners_count":19700442,"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":["jwt","php8","slimphp","template"],"created_at":"2024-12-30T21:21:36.779Z","updated_at":"2026-02-10T22:30:20.660Z","avatar_url":"https://github.com/kodaloid.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Kodaloid's SlimPHP Skeleton\n\n[SlimPHP](https://github.com/slimphp/Slim) is becoming more and more useful to me, so I've spent some time building\nthis skeleton to improve my production speed. This is a bare bones SlimPHP app\nwith ENV settings file loading, twig templates, logging \u0026 JWT auth.\n\nA lot of the skeleton you see here was inspired by another Git repo by *GoThinkster* \nwhich can be found [here](https://github.com/gothinkster/slim-php-realworld-example-app/). \nTheir example was written for a much older version of SlimPHP so I put a lot of \nwork in to bring things up to date. This skeleton is designed for PHP 8.2+ and \nfor SlimPHP 4+.\n\n## How To Use\n\nBefore you get started, make sure you have at-least the bare minimum \npre-requisites, which are PHP \u0026 Composer. Using a terminal, navigate into a \nfresh directory for your project, then use the following commands:\n\n```bash\n# make a directory\nmkdir my-app\ncd my-app\n\n# clone this repo\ngit clone https://github.com/kodaloid/slim4-skeleton .\n\n# get composer to prepare dependencies\ncomposer install\n\n# setup the .env file (make sure to edit it!)\ncp .env.example .env\n\n# start the project (uses built-in php web server)\ncomposer start\n```\n\nYou can use whichever webserver you want, however if your webserver does not \npoint the root at the `/public/` folder, you will need to rename the \n`.htaccess.example` file to `.htaccess` and modify the `RewriteBase` so that \nthings work correctly.\n\n\n## Example Routes\n\nA few test routes have been setup to demo how this works, they are setup in the\nfile `/src/routes.php`. The first is the home route at `http://localhost:8080/`\nwhich should render a twig template.\n\nThe second is visit `http://localhost:8080/hello/droid`. Which should output the\ntext `Hello, droid`, demonstrating pass through arguments.\n\nThe third is a demo for JWT. \n\nUse an API client, set the endpoint to `http://localhost:8080/api/test` and pass\na JWT formatted token (encode using `JWT_SECRET` in the `.env` file) using the \nBearer method. This should output text similar to `Test Worked! Issuer is xxx`.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkodaloid%2Fslim4-skeleton","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkodaloid%2Fslim4-skeleton","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkodaloid%2Fslim4-skeleton/lists"}