PHPackages                             edistribucion/edistribucion - 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. edistribucion/edistribucion

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

edistribucion/edistribucion
===========================

A PHP package for use in PHP projects to access data from e-distribucion private area

014PHP

Since Jun 20Pushed 1y ago1 watchersCompare

[ Source](https://github.com/acardielf/edis)[ Packagist](https://packagist.org/packages/edistribucion/edistribucion)[ RSS](/packages/edistribucion-edistribucion/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Edis for e-distribucion
=======================

[](#edis-for-e-distribucion)

A PHP package (based on ) for use in PHP projects to access data from e-distribucion private area.

Developed and distributed under GPL-3.0 License and exclusively for academic purposes

### Installing in your project:

[](#installing-in-your-project)

`composer require edistribucion\edistribucion`

### Installation and test in isolated environment using Docker:

[](#installation-and-test-in-isolated-environment-using-docker)

1. Run `cp .env.dist .env` and edit with your details
2. Run `docker compose up -d` for running in de-attached mode
3. Run `docker exec edis composer install` for enter in bash mode inside the container
4. You should be able to run `php test/index.php`

#### Connect to container:

[](#connect-to-container)

1. Run `docker exec -it edis sh` for enter in bash mode inside the container

### Usage

[](#usage)

```
use Edistribucion\EdisClient;

$edis = new EdisClient(,);
$edis->login();
```

After succeed login, you should be able to execute predefined actions

```
$edis->get_cups();
$edis->get_cups_info($homeCups);
$edis->get_meter($homeCups);
$edis->get_cups_detail($homeCups);
$edis->get_cups_status($homeCups);
$edis->reconnect_ICP($homeCups);
$edis->get_list_cups($homeCups);
$edis->get_list_cycles($homeCups);
$edis->get_meas($homeCups, "24/01/2022 - 20/02/2022", "*****");
$edis->get_measure($homeCups);
$edis->get_maximeter($homeCups);
```

### TO-DO

[](#to-do)

There're many things to do... maybe never will be get all of them. For have a public list:

- Documentation: It's necessary have a full list of actions that package can do
- Refactor: This code it's susceptible to refactor splitting in smaller classes or using PHP-DI
- Testing: This code hasn't been developed using DDD paradigm and have not any automatic testing.

### About this project

[](#about-this-project)

This project is part of the main bachelor's degree final project for TI Engineering for the Universitat Overta de Catalunya UOC. Therefore, this project is exclusively for academic purposes.

### Thanks

[](#thanks)

Thanks to @trocotronic, @duhow, @polhenarejos and rest for their contribution and for open me the way

### DISCLAIMER

[](#disclaimer)

Please note: this package is released for use "AS IS" **without any warranties** of any kind, including, but not limited to their installation, use, or performance. We disclaim any and all warranties, either express or implied, including but not limited to any warranty of non-infringement, merchantability, and/ or fitness for a particular purpose. We do not warrant that the technology will meet your requirements, that the operation thereof will be uninterrupted or error-free, or that any errors will be corrected.

**Any use of these scripts and tools is at your own risk**. There is no guarantee that they have been through thorough testing in a comparable environment, and we are not responsible for any damage or data loss incurred with their use.

You are responsible for reviewing and testing any scripts you run thoroughly before use in any non-testing environment.

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity11

Early-stage or recently created project

 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

Maintainers

![](https://avatars.githubusercontent.com/u/51797779?v=4)[acardiel](/maintainers/acardiel)[@acardiel](https://github.com/acardiel)

---

Top Contributors

[![acardielf](https://avatars.githubusercontent.com/u/1655777?v=4)](https://github.com/acardielf "acardielf (38 commits)")

### Embed Badge

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

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

###  Alternatives

[the42coders/workflows

This Package allows you to automate your Laravel Application from your Backend.

2672.3k](/packages/the42coders-workflows)

PHPackages © 2026

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