Siler is a set of general purpose high-level abstractions aiming an API for declarative programming in PHP.

Simplicity is the ultimate sophistication. – Leonardo Da Vinci

You can use it within your current framework or standalone, as some kind of micro-framework:

$ composer require leocavalcante/siler

Hello World

use Siler\Functional as λ;
use Siler\Route;

Route\get('/', λ\puts('Hello World'));

This outputs Hello World when the file is reached via HTTP using the GET method and the URI path matches /. Got the idea, right?

See here on the left a section to read more about.

Feel free to submit any issues or pull requests.

results matching ""

    No results matching ""