andreas-glaser/php-helpers
PHP 8.2+ helper toolkit offering ArrayHelper and other utilities for everyday tasks. Includes dot-notation get/set/unset, key/value lookups, insert/prepend/append, random/first/last helpers, filtering empty values, implode/explode helpers, key casing conversion, and more.
RequestHelper::isAjax(), UrlHelper::normalize()), reducing boilerplate in Laravel APIs and microservices.isBot(), getAcceptedLanguages()), reducing vulnerabilities in input handling and improving compliance with security best practices.NetworkHelper::isLocalhost(), getSubdomain()), critical for SaaS platforms, multi-tenant apps, or legacy system integrations.AttributesHelper, FormHelper) with XSS protection, ideal for admin panels, CMS backends, or legacy system refactoring.RequestHelper for deprecated Request::old() patterns).Adopt if:
Look elsewhere if:
Request::old() to RequestHelper::isForm()) and lack time for refactoring.For Executives: *"This 2.0 update transforms PHP Helpers into a security and reliability powerhouse for Laravel APIs and network-bound systems. For example:
RequestHelper (47 tests, 107 assertions) detects bots, validates content types, and sanitizes headers—reducing XSS/SQLi risks in our public endpoints.For Engineers: *"This is now your Swiss Army knife for HTTP, URLs, and HTML in Laravel. Key upgrades:
Request::old() spaghetti with isAjax(), getUserAgent(), or isMobile()—all tested and secure./path?query=1#frag or extract domains? Done. 64 tests cover edge cases.filter_var($ip, FILTER_VALIDATE_IP).AttributesHelper with XSS protection instead of manual htmlspecialchars().
Action: Let’s use this for:
isJson()).For Architects: *"This 2.0 release bridges gaps in Laravel’s ecosystem by adding:
isBot()) and header management, filling gaps vs. Symfony’s RequestStack.HttpClient.HttpFoundation.
Recommendation: Adopt for internal tooling, APIs, and legacy modernization where HTTP/URL logic is repetitive. Avoid for domain-specific or highly regulated systems needing custom audits."*How can I help you explore Laravel packages today?