Libraries tagged by component library
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/mail
209 Downloads
A PHP component/library. Saves outgoing emails in a database table and sends them later from a scheduled job using PHPMailer.
webservco/i18n
6 Downloads
A PHP component/library. Translates and formats texts with ICU in the language of a request: languages, message catalogs and their checks, dates and numbers, the language switch, localized views.
webservco/http-response-service
458 Downloads
A PHP component/library. List of HTTP status codes, with a validator for them.
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
67 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.