{"id":17673309,"url":"https://github.com/onecthree/zpheur","last_synced_at":"2026-01-23T13:46:45.011Z","repository":{"id":258546719,"uuid":"874864326","full_name":"onecthree/zpheur","owner":"onecthree","description":"Zpheur skeleton-application or project template","archived":false,"fork":false,"pushed_at":"2024-11-16T20:34:06.000Z","size":38,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-11-27T16:19:13.505Z","etag":null,"topics":["framework","php","php8","skeleton-application","web"],"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/onecthree.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-10-18T15:46:18.000Z","updated_at":"2024-11-16T20:34:10.000Z","dependencies_parsed_at":"2024-11-08T19:23:32.787Z","dependency_job_id":"cde41a22-1dfc-4d8a-a0cd-8f55ced9f0b8","html_url":"https://github.com/onecthree/zpheur","commit_stats":{"total_commits":26,"total_committers":1,"mean_commits":26.0,"dds":0.0,"last_synced_commit":"885b87b08d7fb3f4c72be9f6b8cddf68a13c1b43"},"previous_names":["onecthree/zpheur"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/onecthree/zpheur","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onecthree%2Fzpheur","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onecthree%2Fzpheur/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onecthree%2Fzpheur/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onecthree%2Fzpheur/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/onecthree","download_url":"https://codeload.github.com/onecthree/zpheur/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onecthree%2Fzpheur/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28693331,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-23T11:01:27.039Z","status":"ssl_error","status_checked_at":"2026-01-23T11:00:26.909Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["framework","php","php8","skeleton-application","web"],"created_at":"2024-10-24T05:13:56.931Z","updated_at":"2026-01-23T13:46:44.985Z","avatar_url":"https://github.com/onecthree.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Zpheur Skeleton Application\n\u003e ⚠️ Used only for non-production (untested and non-stable release)\n \nZpheur skeleton application for a new project.\n\n## Installation\n\u003e Remember, you must install the [czpheur](https://github.com/onecthree/czpheur) extension before using this template.\n\nTo create new project via Composer:\n```bash\n$ composer create-project onecthree/zpheur new-project\n```\n## Basic Usage\nAs a personal project, the framework itself doesn't have many features yet. But for the first try, you can see the sample code on the controller ```app/Http/Action/IndexAction.php```:\n```php\nclass IndexAction extends BaseAction\n{\n    public function __construct( Request $request, Response $response )\n    {\n        parent::__construct($request, $response);\n    }\n\n    #[Route\\GET(dest: '/')]\n    public function getIndex( Response $response ): Response\n    {   \n        return $response-\u003esend('Hello World');\n    }\n}\n```\n### Class autoloader\nZpheur using ```spl_autoloader``` for the class/function autoloader in the framework, for the example how namespacing model work, see bottom example:\n```php\n// In your project, all application things are located under \"app\" directory.\n// Namespacing in path always begin with lower alphabet, like \"app\" and \"system\"\n// but namespacing in PHP code always begin with upper alphabet, see \"app/Http/Action/IndexAction.php\":\n\n\u003c?php declare( strict_types = 1 );\nnamespace App\\Http\\Action;\n\nclass IndexAction ... {\n}\n// App\\Http\\Action will translate to directory path: \"app/Http/Action\"\n// and the name of class controller will be the target class file: \"IndexAction.php\".\n// So, it will require/call script name from \"app/Http/Action/IndexAction.php\".\n```\n\n### Router\nFor routing stuff, as above example code; Zpheur use attribute per-method in the class controller for route declaration. It support many HTTP verb, as next example:\n```php\nclass ...\n{\n    #[Route\\GET(dest: '/')]\n    public function getIndex( Response $response ): Response\n    {   \n        return $response-\u003esend('Hello World');\n    }\n\n    #[Route\\POST(dest: '/')]\n    public function postIndex( Response $response ): Response\n    {   \n        return $response-\u003esend('Hello World');\n    }\n\n    // #[Route\\PUT(dest: '/')]\n    // #[Route\\PATCH(dest: '/')]\n    // #[Route\\DELETE(dest: '/')]\n    // #[Route\\OPTIONS(dest: '/')]\n}\n```\n### Compile controllers route\nZpheur router currently only supports precompiled routers, it's actually a cached array in ```system/var/cache/route/source.php``` file. After you create a new controller with route or new route in controllers, run the command under the root project directory to compile the routers:\n```bash\n$ php bin/console make:route\n```\n\n### Dotenv loader\nBy default, a first installation with Composer will include ```.env.example``` file; you must rename or copy the file to \".env\". The Dotenv loader will check if file exists and will do a parsing ```.env``` and load the values use ```putenv()```. But before actually use the value from ```getenv()```, you must cache the ```.env``` file first:\n```bash\n$ php bin/console make:env\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonecthree%2Fzpheur","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fonecthree%2Fzpheur","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonecthree%2Fzpheur/lists"}