https://github.com/sensorario/wheel-basic-app
https://github.com/sensorario/wheel-basic-app
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/sensorario/wheel-basic-app
- Owner: sensorario
- Created: 2016-10-27T15:56:56.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-10-29T06:59:10.000Z (over 9 years ago)
- Last Synced: 2025-07-27T17:04:20.557Z (11 months ago)
- Language: PHP
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Install
```bash
prompt> composer create-project sensorario/wheel-basic-app --prefer-dist
prompt> php -S localhost:8666 -t web
```
# Wheel basic application
```bash
├── app
│ └── config
│ └── config.db.php
├── src
│ └── MyApi
│ ├── Components
│ │ └── Config.php
│ └── Controllers
│ └── DefaultController.php
├── web
│ └── index.php
├── composer.json
├── composer.lock
└── readme.md
```
## Controller
```php
'welcome',
];
return $response;
}
}
```
## Create new routes
```php
array(
=> array(
'controller' => ,
=> array(
'action' =>
)
)
),
)[$key];
}
}
```
If you want to add new json endpoint to show developer information:
```php
'/devel/info' => array(
'controller' => 'Vendor\\Controllers\\DevelController',
'GET' => array(
'action' => 'show'
)
)
```
## Database
app/config/config.db.php
```php
'pdo_mysql',
'dbname' => 'my_api',
'user' => 'root',
'password' => '',
);
```