reducktion/socrates
Socrates is a Laravel package for building dynamic questionnaires, surveys, and forms. It offers an Eloquent-friendly way to define questions, capture responses, and manage submissions, making structured Q&A flows easy to add to your app.
Validator rule are gone, Laravel teams must now own a thin adapter (service provider binding, custom validation rule, exception mapping). That's a small, explicit engineering task to schedule — not a blocker, but a real line item in any Laravel adoption plan.Adopt when:
Look elsewhere (or fork/vendor) when:
Gender::MALE-style string usage) in existing code — those are removed, so a migration pass is mandatory.For executives (one paragraph): We evaluated Socrates v2.0.0, a PHP library that validates and extracts data from national ID numbers. The new release modernizes the codebase (PHP 8.1, enum-based typing, fewer third-party dependencies, better performance) which lowers our maintenance and security risk. The trade-off is that the built-in Laravel integration was removed and Luxembourg support was dropped — so adoption now requires a small in-house adapter and a coverage check against our target markets. Net: a low-cost, privacy-friendly foundation for ID validation we can adopt in days, provided we are on PHP 8.1+ and do not need Luxembourg.
For engineering leads:
ValidationRule, and exception-to-message mapping. Estimate ~1–2 days including tests.How can I help you explore Laravel packages today?