xsolve-pl/face-validator-bundle
A Symfony bundle from Xsolve for face validation in uploaded images. It integrates face-detection checks into your application so you can reject photos without a detectable human face, ideal for profile pictures, identity verification, and user onboarding.
Architecture fit
Bundle class, a DependencyInjection/Extension, a Configuration tree, and service definitions in YAML/XML — which the Laravel container cannot consume./detect (or /verify) endpoint, and returns a boolean/result object. That core is portable; the surrounding 30–40% is framework-specific plumbing that must be replaced, not reused.composer require.Integration feasibility
ServiceProvider, a config file (config/face-validator.php), a facade or typed binding, and a rewrite of the HTTP layer to use Illuminate\Support\Facades\Http or the shared Guzzle client.HttpFoundation/OptionsResolver. Laravel 10/11 require PHP 8.1+, so expect to fix deprecated syntax, untyped properties, and any symfony/* constraints pinned to ^3.x (which will not install alongside modern Laravel).Technical risk
Key questions
/detect (is-there-a-face), /verify (1:1 match against a stored face), or both? The privacy and compliance burdens differ by an order of magnitude between detection and verification.westus.api.cognitive.microsoft.com/face/v1.0 or the current Azure AI Vision Face resource? Is there any client-side confidence threshold, or does it accept Azure's default?Stack fit
xsolve/face-validator extracted into a framework-agnostic package, then laravel-face-validator wrapping it with a provider, config, and facade.Migration path
DependencyInjection/, Resources/config/, and the Bundle class, repackage the validator as a plain class with a PSR-18 HTTP client dependency and constructor-injected credentials.Http client binding (so it is fakeable in tests), typed result DTO, and a small enum for failure reasons.false.Compatibility
Sequencing
Maintenance
Support
Scaling
Failure modes
Ramp-up
How can I help you explore Laravel packages today?