ergebnis/http-method
A small Composer package providing named constants for HTTP request methods, so you can reference GET, POST, PUT, PATCH, DELETE, and others by name instead of magic strings in your PHP code.
ergebnis/http-method is a focused PHP package that provides constants for HTTP request method names, allowing you to replace magic strings such as 'GET' or 'POST' with named, autocompletable constants anywhere in your codebase.
It is deliberately framework-agnostic and complements HTTP abstractions like Symfony HttpFoundation, Laminas HTTP, and PSR-7 implementations, which typically define their own private copies of these values.
GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS, TRACE, CONNECTHow can I help you explore Laravel packages today?