PHPackages                             dispositif/evapotrans - 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. dispositif/evapotrans

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

dispositif/evapotrans
=====================

evapo-transpiration calculation from weather, climatological, physical and agronomic datas

4301[1 issues](https://github.com/Dispositif/evapotrans/issues)PHP

Since Oct 25Pushed 6y ago1 watchersCompare

[ Source](https://github.com/Dispositif/evapotrans)[ Packagist](https://packagist.org/packages/dispositif/evapotrans)[ RSS](/packages/dispositif-evapotrans/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Evapotrans
----------

[](#evapotrans)

[![Build Status](https://camo.githubusercontent.com/5fb2dafaaebf55bb88100e58a641bdfede0bd7eaa951095605afa548041d0846/68747470733a2f2f7472617669732d63692e6f72672f446973706f73697469662f657661706f7472616e732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Dispositif/evapotrans) ![PHP](https://camo.githubusercontent.com/5180a354acf28fb748fbeddd95219b60e0145d1e0eac9f976ca9a1bc9bc0337b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d372e322d626c75652e737667)![GPL](https://camo.githubusercontent.com/791011b6ad3f09dd7d7098f9a0c583e6c75b0330478114a432aaeeedc31b0384/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d47504c2d626c61636b2e737667)[![Maintainability](https://camo.githubusercontent.com/47bc1e034af7e101590913a7eadbe3a2da56c66df122f8a6214d3281b54ba026/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f36663061643434356262616661343164616165652f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/Dispositif/evapotrans/maintainability)![BCH compliance](https://camo.githubusercontent.com/8d6321c940a1b8c4d7ae06abac599ddd18352c34506f6c76c7e68945ce19810c/68747470733a2f2f626574746572636f64656875622e636f6d2f656467652f62616467652f446973706f73697469662f657661706f7472616e733f6272616e63683d6d6173746572)![Codecov](https://camo.githubusercontent.com/71afcbd28fa7e6c669e17984ae80fc13de25b3e307ea7ff1ad97fa4598c62a46/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f446973706f73697469662f657661706f7472616e73)[![StyleCI](https://camo.githubusercontent.com/61890d1a4a35ab84effd2eeef277332c5c35d422b29a07a744ffd0c1a46a1c76/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3137313034333133312f736869656c643f6272616e63683d6d6173746572)](https://github.styleci.io/repos/171043131)

PHP 7.2 implementation of evapotranspiration prediction. Various calculation procedures for estimating missing data are also provided : weather, climatological, physical and agronomic datas.

GNU GPLv3 2014/2019 by Philippe M.

Computation of all data required for the calculation of the reference evapotranspiration (ETc) by means of the FAO Penman-Monteith method.

Also computation of crop evapotranspiration (ETc) with crop and plant datas.

Explanation :

Sources for algorithmes and test datas :

[![](https://raw.githubusercontent.com/Dispositif/evapotrans/master/evapotrans.png?sanitize=true&raw=true)](https://raw.githubusercontent.com/Dispositif/evapotrans/master/evapotrans.png?sanitize=true&raw=true)

(Image (CC) Salsero35 / Wikimedia Commons) ---

Meteorological factors determining ET : Solar radiation Air temperature Air humidity Wind speed to determined height

Atmospheric parameters :

- Atmospheric pressure (P)
- Latent heat of vaporization (l)
- Psychrometric constant (g)

Estimation of missing datas :

- climatic data (wind speed, humidity)
- radiation data (solar, extraterrestrial)

Simplistic equation for ETo when weather data are missing

See also

Install with composer
---------------------

[](#install-with-composer)

```
composer require dispositif/evapotrans

```

Example
-------

[](#example)

```
use Evapotrans\Location;
use Evapotrans\MeteoData;
use Evapotrans\ValueObjects\Temperature;
use Evapotrans\ValueObjects\Wind2m;
use Evapotrans\PenmanCalc;
//require_once __DIR__.'/vendor/autoload.php';

$location = new Location(43.29504, 5.3865, 35);
$data = new MeteoData($location, new \DateTime('2019-02-15'));
$data->setTmin(new Temperature(2.7));
$data->setTmax(new Temperature(61, 'F'));
$data->setActualSunnyHours(7.2); // mesured today
$data->setWind2(new Wind2m(20, 'km/h', 2));

// optional if Tdew defined
$data->setRHmax(0.90);
$data->setRHmin(0.38);

$ETcalc = new PenmanCalc();
$ETo = $ETcalc->EToPenmanMonteith($data);
dump("ETo $ETo mm/day"); // ETo 5.7 mm/day

// Crop evapotranspiration (work in progress)
$radish = new Plant(
    'Radish',
    ['initial' => 0.7, 'mid-season' => 0.9, 'late-season' => 0.85]
);
$area = new Area($radish);
$area->setGrowStade('initial');
$area->setFractionWetted(1);
$area->setStressFactor(1.1);

$ETc = (new CropEvapotrans($area, $ETo))->calcETc();
// ETc : 4.0 mm/day
```

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance15

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity35

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://www.gravatar.com/avatar/67e34e7ff0f6823fbf342e1ec91fd88d18529ec67fb036d3149f41888766eee1?d=identicon)[Dispositif](/maintainers/Dispositif)

---

Top Contributors

[![Dispositif](https://avatars.githubusercontent.com/u/3756769?v=4)](https://github.com/Dispositif "Dispositif (59 commits)")

---

Tags

cropevapotranspirationhumiditysolarweather

### Embed Badge

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

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

PHPackages © 2026

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