Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Csrf Laravel Package

slim/csrf

Slim CSRF provides CSRF protection for Slim 4 apps via PSR-15 middleware. It generates and validates tokens, supports session-based or custom storage, and can inject hidden token fields into forms and views.

View on GitHub
Deep Wiki
Context7

slim/csrf provides CSRF (Cross-Site Request Forgery) protection middleware for Slim Framework applications. It generates and validates per-request tokens, guarding state-changing requests against forged submissions while staying out of the way of typical Slim routing and middleware flows.

  • Persistent tokens stored in a configurable storage backend, with optional per-request regeneration
  • Flexible failure handling via custom callbacks for invalid or missing tokens
  • Name and storage customization to fit existing form or header conventions
  • Whitelist support for exempting specific routes or request patterns
  • PSR-7 middleware that integrates cleanly into any Slim 3/4 application
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console
pnscripts/filament-broadquill-lite
pnscripts/laravel-sentfold-lite
vleap/mx-sdk-laravel-internal
twidpay/utils
htetmyathlaing/scout-elasticsearch-driver
artisan-toolbox/front-awesome
ls/client-assistant
users-au/laravel-client
cgv/localized-resource
noith/settings
kda/laravel-package
kda/filament-dynamic-navigation
bypersoft/signbox
pairus/product-data
fayne/laravel-filament-cms-core
nodisrupt/laravel-agent
sierratecnologia/media-manager