An open API service indexing awesome lists of open source software.

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

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