PHPackages                             jdelta/consultar-sunat - 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. jdelta/consultar-sunat

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

jdelta/consultar-sunat
======================

Módulo para realizar consultas a SUNAT mediante el numero de RUC o DNI

v1.1(7y ago)045PHPPHP &gt;=5.6|^7.2

Since Nov 2Pushed 7y agoCompare

[ Source](https://github.com/jxcodes/consultar-sunat)[ Packagist](https://packagist.org/packages/jdelta/consultar-sunat)[ RSS](/packages/jdelta-consultar-sunat/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

Consultar Sunat
===============

[](#consultar-sunat)

Módulo para realizar consultas a SUNAT mediante el numero de RUC o DNI

Instalación:
============

[](#instalación)

```
composer require jdelta/consultar-sunat
```

Uso:
====

[](#uso)

```
use ConsultarSunat\SearchService;

$service = new SearchService();
$ruc = "20169004359";
$dni = "44274795";

$result1 = $service->search($ruc);
$result2 = $service->search($dni);

var_dump($result1);
var_dump($result2);

if ($result1->success == true) {
    echo "Empresa: " . $result1->result->RazonSocial;
}

if ($result2->success == true) {
    echo "Persona: " . $result1->result->RazonSocial;
}

// Mostrar en formato XML/JSON
echo $result1->json();
echo $result1->xml('empresa');
```

Creditos:
=========

[](#creditos)

Josue Mazco Puma

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity57

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

Total

2

Last Release

2625d ago

### Community

Maintainers

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

---

Top Contributors

[![jaimecx](https://avatars.githubusercontent.com/u/37024829?v=4)](https://github.com/jaimecx "jaimecx (1 commits)")

---

Tags

phpcurlsunatperuconsulta

### Embed Badge

![Health badge](/badges/jdelta-consultar-sunat/health.svg)

```
[![Health](https://phpackages.com/badges/jdelta-consultar-sunat/health.svg)](https://phpackages.com/packages/jdelta-consultar-sunat)
```

###  Alternatives

[jossmp/sunatphp

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

626.4k](/packages/jossmp-sunatphp)[jossmp/datos-peru

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

291.9k](/packages/jossmp-datos-peru)[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)[unikent/curl

Laravel Curl Helper Library.

1442.4k](/packages/unikent-curl)

PHPackages © 2026

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