PHPackages                             unforgivencl/larachileanlaw - 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. unforgivencl/larachileanlaw

ActiveLaravel-package

unforgivencl/larachileanlaw
===========================

Provides an wrapper to leychile.cl with Laravel 5.3.

17PHP

Since Oct 18Pushed 9y ago1 watchersCompare

[ Source](https://github.com/UnforgivenCL/LaraChileanLaw)[ Packagist](https://packagist.org/packages/unforgivencl/larachileanlaw)[ RSS](/packages/unforgivencl-larachileanlaw/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

LaraChileanLaw - Wrapper for leychile.cl web service
====================================================

[](#larachileanlaw---wrapper-for-leychilecl-web-service)

Package to facilitate the use of leychile.cl web service using Laravel

Installation
============

[](#installation)

To add this package on your Laravel project add this on your `composer.json file

```
"unforgivencl/larachileanlaw": "dev-master"

```

To install and configure add the service provider to your `config/app.php`

```
Unforgivencl\LaraChileanLaw\LaraChileanLawServiceProvider::class,

```

If you want to use the Facade add this to your facade section on `config/app.php`

```
'LaraChileanLaw' => Unforgivencl\LaraChileanLaw\Facades\LaraChileanLaw::class,

```

Usage
=====

[](#usage)

For example if you want to get the latests 5 laws published you can use

```
$laws = LaraChileanLaw::law()->paginate(5)->getLatestPublished()->fetch();

```

If you want the law that contains an text with your input you can use

```
$laws = LaraChileanLaw::law()->paginate(5)->content('aborto')->getByContent()->fetch();

```

If you want a specific law by BCN with the latest version you can use

```
$law = LaraChileanLaw::law()->number('1')->getLatestSpecific()->fetch();

```

Response
========

[](#response)

All responses are converted to JSON from an XML Response, if you see any weird index or order, i'm sorry but the web service are very incosistent

Development
===========

[](#development)

This package are under development so if you find any bug feel free to send PR or send an issue.

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity41

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.

### Community

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/unforgivencl-larachileanlaw/health.svg)

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

PHPackages © 2026

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