Siler
GitHub
main
main
  • Siler
  • Routing
  • PSRs & Middleware Pipeline
  • Twig Templating
  • GraphQL
    • @Annotations
  • Web Servers
  • Siler ❤️ Swoole
  • λ Functional
  • Concepts & Philosophy
Powered by GitBook
On this page

Was this helpful?

Siler

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 any framework or standalone, as a micro-framework:

composer require leocavalcante/siler

A Hello World example

use Siler\Functional as λ; // Just to be cool, don't use non-ASCII identifiers ;)
use Siler\Route;

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

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

NextRouting

Last updated 3 years ago

Was this helpful?