Restler
PHP framework that exposes the public methods of PHP classes as REST API endpoints.
www.luracast.com/restler/repositorydocs
Restler is a PHP framework for building REST API servers. Developers write ordinary PHP classes, and the public methods of those classes become URLs. Luracast maintains the project.
With a traditional web server, PHP-FPM starts Restler for each request, as the README’s production deployment section describes. The README also describes a second option: a persistent server process under the Swoole or OpenSwoole extension, which keeps connections open and includes its own HTTP server.
Worth knowing
The Swoole and OpenSwoole mode is a long-running process, so it needs a host that keeps a process running.
Identity
- Status
- Active
- Maintainer
- Luracast4
Rendering and deploy
- Runs as
- Per request, Always on5
- Install with
- composer require5
Releases
Adoption
Sources
- 2026-10-21: links, Categories
www.luracast.com/restler/ - 2026-10-21: links, Written in, GitHub stars
api.github.com/repos/Luracast/Restler - 2026-10-21: links, Runtime, Minimum runtime
github.com/Luracast/Restler/blob/6.0.3/SETUP.md - 2026-10-21: Maintainer, License
github.com/Luracast/Restler/blob/6.0.3/composer.json - 2026-10-21: Install with, Runs as, License
github.com/Luracast/Restler/blob/6.0.3/README.md - 2026-10-21: Current major version
repo.packagist.org/p2/luracast/restler.json - 2026-10-21: Last release
api.github.com/repos/Luracast/Restler/releases/tags/6.0.3 - 2026-10-21: Contributors
api.github.com/repos/Luracast/Restler/contributors?anon=true - 2026-10-21: Packagist downloads
packagist.org/packages/luracast/restler.json - 2026-10-25: Dependent repositories, Dependent packages
packages.ecosyste.ms/api/v1/registries/packagist.org/packages/luracast%2Frestler - 2026-10-25: Packagist downloads a month
packagist.org/packages/luracast/restler/stats.json