PHPackages                             cristian/afp - 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. cristian/afp

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

cristian/afp
============

Library to connect to different Chilean AFPs and get the balance and other things

v0.1.1(6y ago)04MITPHPPHP ^7.1.3

Since Jun 19Pushed 6y ago1 watchersCompare

[ Source](https://github.com/cris-gar/Afp)[ Packagist](https://packagist.org/packages/cristian/afp)[ RSS](/packages/cristian-afp/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (4)Versions (3)Used By (0)

Afp, es una Login Scraper a las AFPs Chilenas
=============================================

[](#afp-es-una-login-scraper-a-las-afps-chilenas)

Afp es un libreria que se conecta con una Afp con las claves dadas y realiza scrapign para obtener los datos necesarios.

Esta libreria de preferencia debe ser usada solamente para monitoreo de las propias cuentas y ejecutada como segundo plano.

Requirientos
------------

[](#requirientos)

Afp depende de PHP 7.1+.

Agrega `cristian/afp` como dependencia requerida en tu archivo `composer.json`:

```
composer require cristian/afp

```

Uso
---

[](#uso)

Crea una instancia de la Afp que quieres (actualmente solo esta disponible Habitad), con tus claves

```
use Afp\Habitad;

$habitad = new Afp\Habitad([
    'rut' => 'xxxx', // sin puntos ni guion
    'password' => 'xxxx'
]);

```

### Metodos

[](#metodos)

SaldoTotal: retorna la suma total del balance de todas tus cuentas en la afp

```
$habitad->SaldoTotal();

```

SaldoObligatorio: retorna el balance de tu cuenta obligatoria

```
$habitad->SaldoObligatorio();

```

SaldoCuenta2: retorna el balance de tu cuenta volutarioa (cuenta 2)

```
$habitad->SaldoCuenta2();

```

Licencia
--------

[](#licencia)

Afp esta bajo la licencia MIT

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity42

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

Total

2

Last Release

2202d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2729014?v=4)[Cristian Garrido](/maintainers/cris-gar)[@cris-gar](https://github.com/cris-gar)

---

Top Contributors

[![cris-gar](https://avatars.githubusercontent.com/u/2729014?v=4)](https://github.com/cris-gar "cris-gar (7 commits)")

### Embed Badge

![Health badge](/badges/cristian-afp/health.svg)

```
[![Health](https://phpackages.com/badges/cristian-afp/health.svg)](https://phpackages.com/packages/cristian-afp)
```

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M3.1k](/packages/craftcms-cms)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.4M204](/packages/sulu-sulu)[blackfire/player

A powerful web crawler and web scraper with Blackfire support

49617.1k](/packages/blackfire-player)[chameleon-system/chameleon-base

The Chameleon System core.

1028.6k5](/packages/chameleon-system-chameleon-base)[sproutcms/cms

Enterprise content management and framework

242.5k4](/packages/sproutcms-cms)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M577](/packages/shopware-core)

PHPackages © 2026

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