PHPackages                             daan/edd-non-required-state-field - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Validation &amp; Sanitization](/categories/validation)
4. /
5. daan/edd-non-required-state-field

ActiveWordpress-plugin[Validation &amp; Sanitization](/categories/validation)

daan/edd-non-required-state-field
=================================

Dynamically detect if State should be a required field, based on the selected Country.

v1.0.1(1y ago)011MITPHP

Since Mar 20Pushed 1y ago1 watchersCompare

[ Source](https://github.com/Dan0sz/edd-non-required-state-field)[ Packagist](https://packagist.org/packages/daan/edd-non-required-state-field)[ RSS](/packages/daan-edd-non-required-state-field/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)DependenciesVersions (3)Used By (0)

Non-required Card State Field for Easy Digital Downloads
========================================================

[](#non-required-card-state-field-for-easy-digital-downloads)

Dynamically detect if State should be a required field, based on the selected Country.

For any country with a predefined list of states, e.g. US and CA, the State field is a required field. For any other country, where the State field is a text box, it becomes a non-required entry.

Inspired by and an enhanced version of:

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance47

Moderate activity, may be stable

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~23 days

Total

2

Last Release

394d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c2e019fb42c3ba635ae169ba79c36f1da6823ee5d8c7910bb0b500502e3bc258?d=identicon)[Dan0sz](/maintainers/Dan0sz)

---

Top Contributors

[![Dan0sz](https://avatars.githubusercontent.com/u/18595395?v=4)](https://github.com/Dan0sz "Dan0sz (6 commits)")

### Embed Badge

![Health badge](/badges/daan-edd-non-required-state-field/health.svg)

```
[![Health](https://phpackages.com/badges/daan-edd-non-required-state-field/health.svg)](https://phpackages.com/packages/daan-edd-non-required-state-field)
```

###  Alternatives

[webmozart/assert

Assertions to validate method input/output with nice error messages.

7.6k894.0M1.2k](/packages/webmozart-assert)[bensampo/laravel-enum

Simple, extensible and powerful enumeration implementation for Laravel.

2.0k15.9M104](/packages/bensampo-laravel-enum)[swaggest/json-schema

High definition PHP structures with JSON-schema based validation

48612.5M73](/packages/swaggest-json-schema)[stevebauman/purify

An HTML Purifier / Sanitizer for Laravel

5325.6M19](/packages/stevebauman-purify)[ashallendesign/laravel-config-validator

A package for validating your Laravel app's config.

217905.3k5](/packages/ashallendesign-laravel-config-validator)[crazybooot/base64-validation

Laravel validators for base64 encoded files

1341.9M8](/packages/crazybooot-base64-validation)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
