Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. GraphQL
  3. siler

siler

MITPHPv1.7.9

A set of high-level PHP abstractions for declarative programming using flat files and plain functions.

Visit WebsiteGitHubGitHub
1.1k stars91 forks0 contributors

What is siler?

Siler is a set of high-level abstractions for declarative programming in PHP, built around flat files and plain functions. It provides an API for routing, HTTP responses, and GraphQL integration without the overhead of a full framework, focusing on simplicity and performance.

Target Audience

PHP developers looking for a lightweight, performant alternative to traditional frameworks, especially those interested in declarative programming, Swoole-based servers, or GraphQL APIs.

Value Proposition

Developers choose Siler for its zero-dependency design, blazing-fast performance, and clean declarative API, making it ideal for projects where simplicity and speed are priorities over complex framework features.

Overview

⚡ Flat-files and plain-old PHP functions rockin'on as a set of general purpose high-level abstractions.

Use Cases

Best For

  • Building lightweight PHP APIs with minimal overhead
  • Creating high-performance HTTP servers using Swoole
  • Implementing GraphQL APIs with schema-first or code-first approaches
  • Developing declarative PHP applications without framework constraints
  • Prototyping or small projects where simplicity is key
  • Integrating plain PHP functions into a structured routing system

Not Ideal For

  • Teams requiring active maintenance and long-term support for production applications
  • Projects needing a full-stack framework with built-in components like ORM, authentication, or templating
  • Developers preferring object-oriented design patterns over functional or declarative programming styles
  • Large-scale enterprise systems where community plugins and extensive documentation are critical

Pros & Cons

Pros

Zero Dependencies

Built entirely on PHP's built-in functions, eliminating external package overhead and simplifying deployment, as emphasized in the README.

Exceptional Performance

Benchmarks linked in the README demonstrate minimal overhead, making it one of the fastest options for routing and HTTP handling in PHP.

Declarative API Simplicity

Provides clean functions for routing and responses, reducing boilerplate code and improving readability, as shown in the Hello World examples.

Swoole Integration

First-class support for Swoole enables high-concurrency HTTP servers with minimal configuration, detailed in the tutorial section.

GraphQL Flexibility

Supports both schema-first and code-first approaches for building GraphQL APIs, requiring only peer dependencies like webonyx/graphql-php.

Cons

Archived Project

The repository is archived with no updates or security patches, making it risky for new projects, as the README explicitly warns and recommends alternatives.

Limited Feature Set

Lacks built-in components for common needs like database abstraction or authentication, requiring manual integration and additional libraries.

Peer Dependency Complexity

Advanced features like GraphQL require installing external packages (e.g., doctrine/annotations), adding setup steps and potential compatibility issues.

Niche Programming Style

Heavy reliance on functional and declarative programming may be unfamiliar to developers used to object-oriented frameworks, increasing the learning curve.

Frequently Asked Questions

Quick Stats

Stars1,109
Forks91
Contributors0
Open Issues14
Last commit4 years ago
CreatedSince 2016

Tags

#declarative-programming#swoole#micro-framework#zero-dependency#library#high-performance#psr-11#graphql#http#psr-7#psr-4#psr-2#php#api-abstraction#routing

Built With

d
doctrine/annotations
S
Swoole
P
PHP
G
GraphQL-PHP

Links & Resources

Website

Included in

GraphQL15.0k
Auto-fetched 16 hours ago

Related Projects

graphql-phpgraphql-php

PHP implementation of the GraphQL specification based on the reference implementation in JavaScript

Stars4,710
Forks575
Last commit1 day ago
WPGraphQLWPGraphQL

:rocket: GraphQL API for WordPress

Stars3,778
Forks470
Last commit4 days ago
lighthouselighthouse

A framework for serving GraphQL from Laravel

Stars3,492
Forks468
Last commit20 days ago
graphql-laravelgraphql-laravel

Laravel wrapper for Facebook's GraphQL

Stars2,213
Forks271
Last commit11 days ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub