PHPackages                             jossmp/datos-peru - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. jossmp/datos-peru

ActiveLibrary[HTTP &amp; Networking](/categories/http)

jossmp/datos-peru
=================

Clase para realizar consultas a reniec, essalud, ministrio del trabajo con el numero de DNI

v4.0.0(6y ago)291.9k19[4 issues](https://github.com/JossMP/datos-peru/issues)GPL-3.0-or-laterPHP

Since Jun 1Pushed 6y ago5 watchersCompare

[ Source](https://github.com/JossMP/datos-peru)[ Packagist](https://packagist.org/packages/jossmp/datos-peru)[ Docs](https://github.com/JossMP/datos-peru)[ RSS](/packages/jossmp-datos-peru/feed)WikiDiscussions master Synced 1mo ago

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

Datos Perú
==========

[](#datos-perú)

Busca datos de ciudadanos Peruanos a partir de su CUI o Numero de DNI.

### Instalacion mediante composer

[](#instalacion-mediante-composer)

```
	composer require -o "jossmp/datos-peru"
```

```

```

### Pre-requisitos

[](#pre-requisitos)

```
- cURL
- PHP 5.2.0 o superior
```

### Metodo de Uso

[](#metodo-de-uso)

```
consulta( $dni );
	$search2 = $essalud->consulta( $dni );
	$search3 = $servir->consulta( $dni );

    if( $search1->success == true )
	{
		echo "Hola: " . $search1->result->nombres;
	}

	if( $search2->success == true )
	{
		echo "Hola: " . $search2->result->nombre;
	}

	if( $search2->success == true )
	{
		echo "Hola: " . $search3->result->nombre;
	}
?>
```

### Estructura datos EsSalud

[](#estructura-datos-essalud)

```
{
    "success": true,
    "result": {
        "dni": "44274795",
        "verificacion": 0,
        "paterno": "MAZCO",
        "materno": "PUMA",
        "nombre": "JOSUE",
        "sexo": "Masculino",
        "nacimiento": "22/**/****",
        "gvotacion": null
    },
    "asegurado": null
}
```

### Estructura datos SERVIR y JNE(Registro de Org. Politicas)

[](#estructura-datos-servir-y-jneregistro-de-org-politicas)

```
{
    "success": true,
    "result": {
        "dni": "44274795",
        "verificacion": 0,
        "paterno": "MAZCO",
        "materno": "PUMA",
        "nombre": "JOSUE",
        "sexo": null,
        "nacimiento": null,
        "gvotacion": null
    }
}
```

### Estructura datos RENIEC - Padron electoral (No disponible)

[](#estructura-datos-reniec---padron-electoral-no-disponible)

```
{
	"success": true,
	"result": {
		"dni": "44274795",
		"digito_control": 0,
		"nombres": "JOSUE",
		"apellidos": "MAZCO PUMA",
		"gvotacion": "244954",
		"distrito": "AZANGARO",
		"provincia": "AZANGARO",
		"departamento": "PUNO"
	}
}
```

### Mostrar Resultados en JSON / XML

[](#mostrar-resultados-en-json--xml)

```
success == true )
	{
		echo $search->json( );
		echo $search->json( 'callback_js' );
	}

	if( $search->success == true )
	{
		echo PHP_EOL . $search->xml( );
		echo PHP_EOL . $search->xml( 'persona' ); // define nodo raiz
	}
?>
```

Donaciones: [PayPal](https://www.paypal.me/JossMP)

Copyright (C), 2018 Josue Mazco GNU General Public License 3 ()

###  Health Score

35

—

LowBetter than 79% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity30

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity67

Established project with proven stability

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

Recently: every ~133 days

Total

7

Last Release

2251d ago

Major Versions

v1.0.1 → v2.0.02018-09-24

v2.0.0 → v3.0.02019-12-24

v3.0.2 → v4.0.02020-03-09

### Community

Maintainers

![](https://www.gravatar.com/avatar/6d77448c516471cc5742b2bc9f2ff2d01902d794261878992b8fa0d793f92dc0?d=identicon)[JossMP](/maintainers/JossMP)

---

Top Contributors

[![JossMP](https://avatars.githubusercontent.com/u/7403434?v=4)](https://github.com/JossMP "JossMP (24 commits)")

---

Tags

phpcurlperureniecconsultaEsSaludMintra

### Embed Badge

![Health badge](/badges/jossmp-datos-peru/health.svg)

```
[![Health](https://phpackages.com/badges/jossmp-datos-peru/health.svg)](https://phpackages.com/packages/jossmp-datos-peru)
```

###  Alternatives

[jossmp/sunatphp

Clase para realizar consultas a sunat Peru mediante el numero de ruc o dni

626.4k](/packages/jossmp-sunatphp)[stefangabos/zebra_curl

A high performance solution for making multiple HTTP requests concurrently, asynchronously from your PHP projects using cURL

21971.3k2](/packages/stefangabos-zebra-curl)[ismaeltoe/osms

PHP library wrapper of the Orange SMS API.

4540.0k](/packages/ismaeltoe-osms)

PHPackages © 2026

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