Download the PHP package uhifadhi/el-nino-module without Composer

On this page you can find all versions of the php package uhifadhi/el-nino-module. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package el-nino-module

uhifadhi/el-nino-module

The El Niño watch. Four questions, answered every week for an area from a bulletin a producer builds: how warm the Pacific is and how strong the El Niño; whether the models keep it through the short rains; how wet the last weeks were over the area against their normal; and which roads and places lose access if it floods. A module of the uhifadhi platform, installed per installation and switched on per area.

Contents

What it is

The module keeps no science of its own. A producer — a weekly build the organization runs, from NOAA CPC's Niño 3.4 feed, IRI's ENSO forecast, CHIRPS daily rainfall and a flood-exposure analysis of the area — writes a set of files under the contract el-nino-producer/1 and posts them to the installation. The module stores each bulletin, keeps the exposure layers in PostGIS, and draws:

A bulletin is never edited: a rebuild arrives as a new row, and the newest is what every page reads. The susceptibility is a relative ranking inside the area, never a flood depth or a forecast; the page says so at its foot.

Installation

Flex registers Uhifadhi\ElNino\UhifadhiElNinoBundle, copies config/packages/el_nino.yaml and config/routes/el_nino.yaml, and enables the weeks controller in assets/controllers.json. The module ships its own migrations (five tables, el_nino_*); doctrine:migrations:diff afterwards must report no changes.

One line of the installation's own security rule. The ingest door at /el-nino/ingest is where the producer posts, and a producer is not a person: its bearer token is the whole of its authentication. Open the address above the catch-all in config/packages/security.yaml:

Then, in each area that runs the module: switch it on in the area's Modules tab, open Configure › Producer, name the producer's slug and issue a token.

The producer

One POST per build to /el-nino/ingest, multipart/form-data, one part per file under its contract path, the token in the Authorization header and the contract in X-El-Nino-Contract:

Part Required Content
status.json yes the Pacific this week, the rain window, the outlook table, the exposure counts, the cut-off destinations in a wet cell
series.json yes the grid definition, the 30-day window on it, and every week's rain grids, wet cells, hot destinations and Niño 3.4 reading
map/roads.geojson no the flagged road segments, cls = cut or risk
map/destinations.geojson no the destinations with status and population_2020
map/susceptibility.geojson no the susceptibility classes as polygons, class 1–4
map/bomas.geojson no routed households with zone, village, status
map/provenance.json no the analysis run: run_date, notebook_commit, the weights and rules

Every file carries contract, area (with the slug the area's producer is named by) and built_utc. The exposure parts are imported only when their provenance names a run the area has not seen; the weekly figures are stored every time. The same build pushed twice is accepted once and answers 200 {"duplicate": true}; a stored bulletin answers 202; a refused push is a 4xx with error and message naming the part and the fault; a store failure is 503, the one answer worth retrying. Each part may be at most ingest_body_cap bytes (16 MiB by default); the limiter admits thirty pushes a minute per address.

For development, el-nino:ingest <area-uuid> <directory> (a devkit command) reads the same files from disk through the same reader and the same ingest.

Configuration

Everything an area decides is on its configure page, never here: the producer's slug, the token, a link to the analysis, and the area's own record of past El Niño seasons in its own words.

What it contributes

One concern, el-nino, with read and configure, declared through ConcernSourceInterface; every route names the pair it enforces. Two tabs through ModuleTabsInterface, one configure section through ConfigurationSectionsInterface, the now-tiles, the attention items and the map layers through the area overview's seams, and two devkit providers: seed content (a made-up bulletin for every seed area with a boundary) and the el-nino:ingest command.

Development

The suite needs the database named in phpunit.dist.xml (el_nino_bundle_test, with the PostGIS extension). In an installation, link the checkout with fundi bundle:link uhifadhi/el-nino-module, then rebuild: cache:clear --no-warmup, migrate, registry:sync, cache:warmup, asset-map:compile.

Docs

License

AGPL-3.0-or-later. See LICENSE.


All versions of el-nino-module with dependencies

PHP Build Version
Package Version
Requires php Version >=8.4
ext-json Version *
doctrine/dbal Version ^4.0
doctrine/doctrine-bundle Version ^3.0
doctrine/orm Version ^3.5
symfony/asset Version ^7.3 || ^8.0
symfony/asset-mapper Version ^7.3 || ^8.0
symfony/config Version ^7.3 || ^8.0
symfony/framework-bundle Version ^7.3 || ^8.0
symfony/http-foundation Version ^7.3 || ^8.0
symfony/rate-limiter Version ^7.3 || ^8.0
symfony/twig-bundle Version ^7.3 || ^8.0
symfony/uid Version ^7.3 || ^8.0
symfony/ux-icons Version ^3.4
uhifadhi/uhifadhi Version ^0.1.29
utafitilabs/postgis-bundle Version ^0.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package uhifadhi/el-nino-module contains the following files

Loading the files please wait ...