{"id":18486180,"url":"https://github.com/mathsgod/puxt","last_synced_at":"2026-02-15T09:40:58.374Z","repository":{"id":43908308,"uuid":"323297777","full_name":"mathsgod/puxt","owner":"mathsgod","description":null,"archived":false,"fork":false,"pushed_at":"2025-02-07T04:50:25.000Z","size":830,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-13T09:03:24.996Z","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/mathsgod.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":"2020-12-21T10:07:05.000Z","updated_at":"2025-02-07T02:54:03.000Z","dependencies_parsed_at":"2023-11-20T10:36:29.253Z","dependency_job_id":"ef5a930e-3165-44d0-aa0f-422c406d84b7","html_url":"https://github.com/mathsgod/puxt","commit_stats":{"total_commits":211,"total_committers":1,"mean_commits":211.0,"dds":0.0,"last_synced_commit":"0199a66fcbde9c56fc5dfb6a358f05b4a8d2d053"},"previous_names":[],"tags_count":70,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathsgod%2Fpuxt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathsgod%2Fpuxt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathsgod%2Fpuxt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathsgod%2Fpuxt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mathsgod","download_url":"https://codeload.github.com/mathsgod/puxt/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247912789,"owners_count":21017045,"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-06T12:48:06.136Z","updated_at":"2026-02-15T09:40:58.317Z","avatar_url":"https://github.com/mathsgod.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# puxt\n\n\n## Setup\nCreate pages folder and add index.php file\n```php\nuse Laminas\\Diactoros\\Response\\HtmlResponse;\nreturn new class{\n    public function get(){\n        return new HtmlResponse(\"Hello world\");\n    }\n}\n```\n\nIt will output `Hello world` in the browser when reqeust to `/` path.\n\n## Debug\nSet the `DEBUG` environment variable to `true` to enable debug mode.\n```env\nDEBUG=true\n```\n\n## Exception format\nSet the `DEBUG_EXCEPTION_FORMAT` environment variable to `json` to enable exception format.\n```env\nDEBUG_EXCEPTION_FORMAT=json\n```\n\n## Base path of uri\nSet the `BASE_PATH` environment variable to change the base path.\nFor example, set `BASE_PATH` to `api` will change the base path to `/api`.\n```env\nBASE_PATH=api\n\n```\n\n\n## Route strategy\nSet the `ROUTE_STRATEGY` environment variable to change the route strategy.\n```env\nROUTE_STRATEGY=json\n```\n\n### HTML header\nIt will change the html title to `Custom title`.\n```php\nuse function PUXT\\useHead;\n\n//call this function in the get method of the page\nuseHead([\n    \"title\" =\u003e \"Custom title\",\n]);\n```\n\n\n### .htaccess\n```htaccess\nRewriteEngine on\n\nRewriteCond %{REQUEST_FILENAME} !-f\nRewriteCond %{REQUEST_FILENAME} !-d\n\nRewriteRule ^(.*)$ index.php [L]\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmathsgod%2Fpuxt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmathsgod%2Fpuxt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmathsgod%2Fpuxt/lists"}