PHPackages                             decalages/meteociel-api - 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. [API Development](/categories/api)
4. /
5. decalages/meteociel-api

ActiveLibrary[API Development](/categories/api)

decalages/meteociel-api
=======================

PHP client for Météociel data (forecasts, soundings, stations)

v1.0.0(yesterday)02↑2900%MITPHPPHP &gt;=8.1

Since Jun 22Pushed yesterdayCompare

[ Source](https://github.com/decalages/meteociel-api)[ Packagist](https://packagist.org/packages/decalages/meteociel-api)[ RSS](/packages/decalages-meteociel-api/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (2)Versions (2)Used By (0)

meteociel-api (PHP)
===================

[](#meteociel-api-php)

PHP client for scraping weather data from [Météociel](https://www.meteociel.fr): forecasts, station observations, and upper air soundings.

> Ported from the original [Python package](https://github.com/Meteo-API/meteociel_api).

Requirements
------------

[](#requirements)

- PHP 8.1+
- Extensions: `dom`, `json`
- [Composer](https://getcomposer.org)

Installation
------------

[](#installation)

```
composer require meteo-api/meteociel-api
```

### Laravel

[](#laravel)

The package supports Laravel's [package auto-discovery](https://laravel.com/docs/packages#package-discovery). No manual registration needed — the service provider and `Meteociel` facade are registered automatically.

**Publish the config file** (optional):

```
php artisan vendor:publish --tag=meteociel-config
```

This creates `config/meteociel.php`. You can then set values in your `.env`:

```
METEOCIEL_TIMEOUT=15
METEOCIEL_DATABASE_PATH=/absolute/path/to/cities_database.json
```

The database defaults to `storage/app/meteociel/cities_database.json`.

Quick start
-----------

[](#quick-start)

### Standalone PHP

[](#standalone-php)

```
