PHPackages                             backfron/cedula-ecuador - 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. backfron/cedula-ecuador

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

backfron/cedula-ecuador
=======================

Package to validate and obtain information on ecuadorian CI.

0.2(5y ago)19.6k↓36.4%1MITPHP

Since Dec 22Pushed 5y ago1 watchersCompare

[ Source](https://github.com/backfron/cedula-ecuador)[ Packagist](https://packagist.org/packages/backfron/cedula-ecuador)[ RSS](/packages/backfron-cedula-ecuador/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (6)Used By (0)

Cédulas Ecuador
===============

[](#cédulas-ecuador)

Validator for ecuadorian CI.

Instalation
-----------

[](#instalation)

```
composer require backfron/cedula-ecuador

```

Usage
-----

[](#usage)

You may initialize a new Cedula object providing the CI number as a `string`. Is important that you provide a `string` because some CI numbers start with a 0.

```
use  \Backfron\CedulaEcuador\Cedula;

$cedula = new Cedula('1234567890');

/**
 * The isValid() method will return true if the CI
 * number is valid or false otherwise.
 */

if($cedula->isValid()) {
    echo "The number is valid";
} else {
    echo "The number is invalid";
}
```

### Obtaining info

[](#obtaining-info)

You can also get the province where the CI was issued.

```
use  \Backfron\CedulaEcuador\Cedula;

$cedula = new Cedula('1003495585');
$cedula->getProvince(); // Imbabura
```

Tests
-----

[](#tests)

You can run the test running `vendor/bin/phpunit`.

Contributions
-------------

[](#contributions)

If you have a contribution or a bug fix, please open a PR including a tests for your code.

Credits
-------

[](#credits)

- [Jairo Ushiña](https://github.com/jago86)

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 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 ~0 days

Total

5

Last Release

1972d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4fe0ea7207e8118e6e8984b665a5164df0414ceaa0513dacd0555719eec98bf4?d=identicon)[jago86](/maintainers/jago86)

---

Top Contributors

[![jago86](https://avatars.githubusercontent.com/u/1690276?v=4)](https://github.com/jago86 "jago86 (10 commits)")

---

Tags

cedulacedula-ecuadorvalidarvalidationcedulaecuadorvalidarDNI

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/backfron-cedula-ecuador/health.svg)

```
[![Health](https://phpackages.com/badges/backfron-cedula-ecuador/health.svg)](https://phpackages.com/packages/backfron-cedula-ecuador)
```

###  Alternatives

[composer/semver

Version comparison library that offers utilities, version constraint parsing and validation.

3.3k489.6M672](/packages/composer-semver)[giggsey/libphonenumber-for-php

A library for parsing, formatting, storing and validating international phone numbers, a PHP Port of Google's libphonenumber.

5.0k148.7M416](/packages/giggsey-libphonenumber-for-php)[respect/validation

The most awesome validation engine ever created for PHP

5.9k37.4M383](/packages/respect-validation)[propaganistas/laravel-phone

Adds phone number functionality to Laravel based on Google's libphonenumber API.

3.0k35.7M107](/packages/propaganistas-laravel-phone)[opis/json-schema

Json Schema Validator for PHP

64736.9M186](/packages/opis-json-schema)[giggsey/libphonenumber-for-php-lite

A lite version of giggsey/libphonenumber-for-php, which is a PHP Port of Google's libphonenumber

8912.9M47](/packages/giggsey-libphonenumber-for-php-lite)

PHPackages © 2026

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