{"id":16673926,"url":"https://github.com/sensorario/wheel-basic-app","last_synced_at":"2025-08-23T19:09:10.057Z","repository":{"id":62542231,"uuid":"72124436","full_name":"sensorario/wheel-basic-app","owner":"sensorario","description":null,"archived":false,"fork":false,"pushed_at":"2016-10-29T06:59:10.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-27T17:04:20.557Z","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/sensorario.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-10-27T15:56:56.000Z","updated_at":"2016-10-27T15:57:20.000Z","dependencies_parsed_at":"2022-11-02T16:00:24.889Z","dependency_job_id":null,"html_url":"https://github.com/sensorario/wheel-basic-app","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/sensorario/wheel-basic-app","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sensorario%2Fwheel-basic-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sensorario%2Fwheel-basic-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sensorario%2Fwheel-basic-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sensorario%2Fwheel-basic-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sensorario","download_url":"https://codeload.github.com/sensorario/wheel-basic-app/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sensorario%2Fwheel-basic-app/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270191647,"owners_count":24542279,"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","status":"online","status_checked_at":"2025-08-13T02:00:09.904Z","response_time":66,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":"2024-10-12T12:28:44.948Z","updated_at":"2025-08-13T06:13:50.920Z","avatar_url":"https://github.com/sensorario.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Install \n\n```bash\nprompt\u003e composer create-project sensorario/wheel-basic-app --prefer-dist\nprompt\u003e php -S localhost:8666 -t web\n```\n\n# Wheel basic application\n\n```bash\n ├── app\n │   └── config\n │       └── config.db.php\n ├── src\n │   └── MyApi\n │       ├── Components\n │       │   └── Config.php\n │       └── Controllers\n │           └── DefaultController.php\n ├── web\n │   └── index.php\n ├── composer.json\n ├── composer.lock\n └── readme.md\n```\n\n## Controller\n\n```php\n\u003c?php\n\nnamespace MyApi\\Controllers;\n\nuse Sensorario\\WheelFramework\\Controllers\\Controller;\n\nclass DefaultController extends Controller\n{\n    public function default()\n    {\n        $response = [\n            'message' =\u003e 'welcome',\n        ];\n\n        return $response;\n    }\n}\n```\n\n## Create new routes\n\n```php\n\u003c?php\n\nnamespace MyApi\\Components; \n\nuse Sensorario\\WheelFramework\\Components\\Config as SensorarioConfig;\n\nclass Config implements SensorarioConfig\n{\n    public function getConfig($key)\n    {\n        return array(\n\n            'routes' =\u003e array(\n                \u003cpath\u003e =\u003e array(\n                    'controller' =\u003e \u003ccontroller\u003e,\n                    \u003chttp method\u003e =\u003e array(\n                        'action' =\u003e \u003cmethod\u003e\n                    )\n                )\n            ),\n\n        )[$key];\n    }\n}\n```\n\nIf you want to add new json endpoint to show developer information:\n\n```php\n'/devel/info' =\u003e array(\n    'controller' =\u003e 'Vendor\\\\Controllers\\\\DevelController',\n    'GET' =\u003e array(\n        'action' =\u003e 'show'\n    )\n)\n```\n\n## Database\n\napp/config/config.db.php\n\n```php\n\u003c?php return array(\n    'driver'   =\u003e 'pdo_mysql',\n    'dbname'   =\u003e 'my_api',\n    'user'     =\u003e 'root',\n    'password' =\u003e '',\n);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsensorario%2Fwheel-basic-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsensorario%2Fwheel-basic-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsensorario%2Fwheel-basic-app/lists"}