Download the PHP package folk/laravel without Composer
On this page you can find all versions of the php package folk/laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package laravel
folk-laravel
Laravel adapter for Folk. Provides seamless integration -- all your routes, middleware, and controllers work without changes.
Installation
Auto-discovery registers FolkServiceProvider, which auto-registers LaravelHttpHandler for HTTP dispatch.
Requirements
- PHP 8.2+ — a standard non-thread-safe (NTS) build; Folk forks worker processes, so no thread-safe PHP is needed
- Laravel 11+
- folk/sdk
- the
folk.soextension (pie install folk-project/ext-folk)
Setup
-
Install the package:
-
Create
folk.tomlin your project root: - Run:
The entry point ships with this package (bin/folk-server) -- there is no worker
script to write. Composer's bin-proxy (vendor/bin/folk-server) works as well.
How it works
FolkServiceProviderregistersLaravelHttpHandlerin the containerLaravelHttpHandlerconverts Folk's request arrays (received as native PHP arrays via zval) into LaravelRequestobjects- After the Laravel kernel processes the request, the response is converted back to a Folk response array
- No JSON encode/decode -- direct zval arrays between Rust and PHP
State resetters
Between every request, built-in resetters clean up shared state:
| Resetter | What it does |
|---|---|
AuthResetter |
Forgets the authenticated user and all resolved guards |
SessionResetter |
Drops the request's session instance |
DatabaseResetter |
Rolls back open transactions |
EventResetter |
Clears request-scoped listeners |
QueueResetter |
Reconnects queue connections |
ScopedResetter |
Forgets the container's scoped instances |
InertiaResetter |
Clears Inertia's shared props |
Register your own via config/folk.php:
License
MIT — see LICENSE.
All versions of laravel with dependencies
folk/sdk Version ^0.4.6
laravel/framework Version ^11.0 || ^12.0 || ^13.0