https://github.com/devawal/silica
Silica Framework is a fast and lightweight for restful API development
https://github.com/devawal/silica
htaccess php
Last synced: over 1 year ago
JSON representation
Silica Framework is a fast and lightweight for restful API development
- Host: GitHub
- URL: https://github.com/devawal/silica
- Owner: devawal
- License: mit
- Created: 2017-07-17T09:31:31.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2021-01-20T09:26:46.000Z (over 5 years ago)
- Last Synced: 2025-02-02T08:29:39.293Z (over 1 year ago)
- Topics: htaccess, php
- Language: PHP
- Homepage: https://abdulawal.me
- Size: 8.79 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Silica Framework
Silica Framework is a fast and lightweight for restful API development
## Installation
It's not required to install via composer, just download the latest source
## Routing
Create new route in index.php
```php
// Routes
$router->get('', ['controller' => 'HomeController', 'action' => 'index']);
$router->post('api', ['controller' => 'HomeController', 'action' => 'api']);
```
## Controller
Create controller inside Controllers/ directory
```php