PHPackages                             unreal4u/rutverifier-js - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. unreal4u/rutverifier-js

AbandonedLibrary[Utility &amp; Helpers](/categories/utility)

unreal4u/rutverifier-js
=======================

Javascript version of unreal4u/rutverifier

v1.0.1(12y ago)09001MITJavaScriptPHP &gt;=5.3.0

Since Mar 22Pushed 12y agoCompare

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

READMEChangelog (1)DependenciesVersions (2)Used By (1)

[![Build Status](https://camo.githubusercontent.com/f9f2c519341bf366392645c653525409b294eb8167dc9062f82a75614a13e25b/68747470733a2f2f7472617669732d63692e6f72672f756e7265616c34752f72757476657269666965722d6a732e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/unreal4u/rutverifier-js)

rutverifier-js
==============

[](#rutverifier-js)

Credits
-------

[](#credits)

This class is made by unreal4u (Camilo Sperberg). [unreal4u.com](http://unreal4u.com/).

About this class
----------------

[](#about-this-class)

- Can be used to verify chilean RUT (Rol único tributario) or RUN (Rol único nacional). ([Difference](http://www.registrocivil.cl/PortalOI/html/faq/Cod_Area_4/Cod_Tema_30/pregunta_155.html) \[spanish\])
- Is a pure JavaScript implementation. Will return true or false depending on whether the given RUT is valid or not.
- @TODO Will also format the RUT/RUN into the correct format.

Basic usage
-----------

[](#basic-usage)

```

if (rutVerification('30.686.957-4')) {
    console.log('RUT is valid');
} else {
    console.log('RUT is not valid');
}

```

- Congratulations! That's all you've had to do.

Developing
----------

[](#developing)

In order to develop, you'll better off installing [Node.js](http://nodejs.org) in order to run the automated tests and other stuff as well.

Then execute the following at the root of the project:

```
npm install
```

In order to do the JavaScript testing and validation, execute the following at the project's root dir:

```
grunt
```

Recommended is to install grunt as a global dependency:

```
npm install -g grunt-cli
```

Pending
-------

[](#pending)

- Improvements on formatting RUT
- PHP class that can read out the minified version of this class
- Submit to packagist in order to add it as an dependency of unreal4u/rutverifier

Version History
---------------

[](#version-history)

- 1.0.0 :
    - Initial version

Contact the author
------------------

[](#contact-the-author)

- Twitter: [@unreal4u](http://twitter.com/unreal4u)
- Website:
- Github:

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity58

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

Unknown

Total

1

Last Release

4434d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/43792f8b224d7de339a848cd799635fa8e062eea3fb669e3ca7a1d1e2cff756d?d=identicon)[unreal4u](/maintainers/unreal4u)

---

Top Contributors

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

---

Tags

runrutchilerutverifiercarnet de identidadcedula de identidad

### Embed Badge

![Health badge](/badges/unreal4u-rutverifier-js/health.svg)

```
[![Health](https://phpackages.com/badges/unreal4u-rutverifier-js/health.svg)](https://phpackages.com/packages/unreal4u-rutverifier-js)
```

###  Alternatives

[veewee/composer-run-parallel

Run composer tasks in parallel

91748.2k13](/packages/veewee-composer-run-parallel)[cpx/cpx

Run any command from any composer package, even if it's not installed in your project.

40410.9k1](/packages/cpx-cpx)[freshwork/chilean-bundle

A PHP composer package with Chilean validations, common variables, etc. (RUT, IVA, ETC). Ready for Laravel 5. Grande chile ctm :)

97195.6k3](/packages/freshwork-chilean-bundle)

PHPackages © 2026

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