davidepastore/codice-fiscale
PHP library to calculate and validate the Italian tax code (Codice Fiscale). Build a Subject (name, surname, birth date, gender, Belfiore code), generate the code, support omocodia levels, and list all possible variants (128 levels).
DateTime constructor deprecation fix (PR #81) resolves potential runtime warnings in newer PHP versions, simplifying integration for teams upgrading from PHP 8.0..gitattributes, CI additions, Docker). Existing integrations (e.g., service providers, validation rules) remain unaffected.DateTime constructor changes, reducing the risk of runtime warnings in Laravel applications using PHP 8.1–8.4.ValidCodiceFiscale). The package’s core logic remains stable.DateTime fix and avoid deprecation warnings.composer.json to require PHP 8.1+:
"require": {
"php": "^8.1",
"davidepastore/codice-fiscale": "^0.10.0"
}
composer update davidepastore/codice-fiscale --with-dependencies and test for warnings.docker-compose.yml to include the package’s environment (if beneficial).DateTime usage adjustments).DateTime usage.config/app.php (no changes required for v0.10.0).^0.10.0 to avoid unintended major version bumps. Monitor for PHP 8.5+ support in future releases.DateTime usage).DateTime usages in the codebase (e.g., legacy code).| Failure Scenario | Impact | Mitigation |
|---|---|---|
| PHP 8.5+ Incompatibility | Runtime errors or warnings | Pin to PHP 8.4 or implement a compatibility layer. |
| Docker Build Failures | Development slowdowns | Skip Docker adoption or debug build steps. |
| Regulatory Rule Changes | Compliance violations | Monitor Italian tax authority updates. |
| CI Pipeline Failures (PHP 8.4) | Blocked deployments | Isolate package testing in CI. |
DateTime Deprecation Warnings |
Log noise or future errors | Update all DateTime usages in the codebase. |
How can I help you explore Laravel packages today?