Libraries tagged by components web
webservco/view
164 Downloads
A PHP component/library. Views, PHP templates and renderers that turn a view into HTML, JSON or JSON:API.
webservco/stopwatch
222 Downloads
A PHP component/library. Lap timer for measuring how long each part of a request or script takes.
webservco/session
178 Downloads
A PHP component/library. PHP sessions with cookie settings and lifetime taken from the configuration; a session store started only when needed, a CSRF token and flash messages.
webservco/route
130 Downloads
A PHP component/library. Loads a module's routes from a PHP file that maps route names to controller classes.
webservco/reflection
95 Downloads
A PHP component/library. Small reflection helpers for inspecting a class and its constructor parameters.
webservco/paypal
88 Downloads
A PHP component/library. Takes payment for an order through the PayPal REST API (Orders v2): create the order, send the customer to PayPal, then capture the payment.
webservco/middleware
69 Downloads
A PHP component/library. PSR-15 middleware for routing, dispatching to module handlers, exception handling, request logging, choosing the response format, the session and the CSRF check.
webservco/mfa
4 Downloads
A PHP component/library. TOTP multi-factor authentication (Google Authenticator compatible): enrollment with a QR code, verification with replay protection and throttling, recovery codes and encrypted secrets.
webservco/http-request-handler
70 Downloads
A PHP component/library. PSR-15 request handlers, including a middleware stack, base handlers that pass a route to its controller, and a handler that renders error pages.
webservco/http-client
395 Downloads
A PHP component/library. PSR-18 HTTP client built on cURL, plus a client that sends several requests in parallel.
webservco/form
65 Downloads
A PHP component/library. HTML forms with filters and validators, and error messages for both the form and each field.
webservco/environment
87 Downloads
A PHP component/library. Names for the environments an application runs in: development, testing, staging and production.
webservco/encryption
6 Downloads
A PHP component/library. Encrypts secrets for storage with a key from the configuration (XChaCha20-Poly1305, libsodium), each bound to its row by associated data.
webservco/emitter
120 Downloads
A PHP component/library. Sends a PSR-7 response to the client, with its status line, headers and body.
webservco/discogs-authentication
4 Downloads
A PHP component/library. Logs a user in with Discogs (OAuth 1.0a: request token, authorize URL, access token, identity) and builds the Authorization header of every Discogs API request.