{"id":21178699,"url":"https://github.com/poabob/slim-simple","last_synced_at":"2025-10-25T12:38:22.068Z","repository":{"id":102352569,"uuid":"519922402","full_name":"POABOB/Slim-Simple","owner":"POABOB","description":null,"archived":false,"fork":false,"pushed_at":"2022-08-01T01:00:02.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-21T11:45:14.593Z","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/POABOB.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-08-01T00:59:02.000Z","updated_at":"2022-08-01T01:00:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"5b7cbb82-6600-43d0-a313-7c9fc8ee006f","html_url":"https://github.com/POABOB/Slim-Simple","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/POABOB%2FSlim-Simple","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/POABOB%2FSlim-Simple/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/POABOB%2FSlim-Simple/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/POABOB%2FSlim-Simple/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/POABOB","download_url":"https://codeload.github.com/POABOB/Slim-Simple/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243629222,"owners_count":20322017,"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-11-20T17:23:27.851Z","updated_at":"2025-10-25T12:38:17.026Z","avatar_url":"https://github.com/POABOB.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SLIM SIMPLE\n\n## Introduction\n\n\u003e This project is a tutorial of [使用 PHP Slim 4 建立一個 RESTful 框架 (基本配置篇)](https://poabob.github.io/2022-07-28/Build-a-PHP-RESTful-Framework-using-Slim-4-Part1/)\n\n### Minimal requirements\n\n* docker/docker-compose\n* php: \u003e=8.0\n* composer\n\n## Installation\n\n### Config\n\n\n* .env configuration\n\n\u003e Just COPY .env.exampl to .env!\n\n```\n# dev/prod/stage/test\nMODE=dev\n# MYSQL CONFIG\nDB_DRIVER=mysql\nDB_NAME=Example\nDB_HOST=mysql\nDB_USER=root\nDB_PASS=root\nDB_CHARSET=utf8mb4\n\n# SQLITE CONFIG\n# DB_DRIVER=sqlite\n# DB_NAME=./path/Example.db\n\n# SETTINGS\nDISPLAY_ERROR_DETAILS=1\nLOG_ERROR_DETAILS=1\nLOG_ERRORS=1\n\n\n# JWT SETTINGS\nJWT_ISSUER=SLIM_4\nJWT_LIFETIME=86400\nJWT_PRIVATE_KEY=\"-----BEGIN RSA PRIVATE KEY-----\nMIIBPQIBAAJBALSlDUfngNVzILQh0UDzg22Wd3NCvHrl1PMK+IxRoTQovLN3TQ8E\noBgL7GqHTYSrnnADrV0JSgf8onbDzkvZoYcCAwEAAQJBALEY5w5JPZsFRViTlsww\nb/bt/qk3EgUCcWTcqpMWLA4vBBH7/guLZvyWG1U4Q63vgO1SSA7g+bwMvmDMCj6l\nfhECIQDc6/A9mYXirCwHL0iKb5o1R/ri4NqZYrcoGUrYhpntZQIhANFT7k4SffT0\n3PSK1Pa2OcsnfuBMmqZcld3DP8+lCip7AiEAhRaZ9vIaxxBDwdxJTiSneLuxN6aP\n6mGex0hdX43PA0UCIQDNZjD41LZZjYfeQPg1WZueF5QsnZ5GTaUUpIjRxF0UTwIh\nAMa/1Gkl/FUaiZaFm6KMysKHAeWg3YZudouHoDLDcDbl\n-----END RSA PRIVATE KEY-----\"\nJWT_PUBLIC_KEY=\"-----BEGIN PUBLIC KEY-----\nMFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBALSlDUfngNVzILQh0UDzg22Wd3NCvHrl\n1PMK+IxRoTQovLN3TQ8EoBgL7GqHTYSrnnADrV0JSgf8onbDzkvZoYcCAwEAAQ==\n-----END PUBLIC KEY-----\"\n```\n\n## Run\n\n```\ncomposer install\ndocker-compose up -d\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpoabob%2Fslim-simple","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpoabob%2Fslim-simple","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpoabob%2Fslim-simple/lists"}