PHPackages                             mariusasensi/meteocat-api-php-client - 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. mariusasensi/meteocat-api-php-client

ActiveLibrary[API Development](/categories/api)

mariusasensi/meteocat-api-php-client
====================================

API client for Meteocat REST API

1.0(6y ago)431MITPHPPHP ^7.1CI failing

Since Aug 12Pushed 6y agoCompare

[ Source](https://github.com/mariusasensi/meteocat-api-php-client)[ Packagist](https://packagist.org/packages/mariusasensi/meteocat-api-php-client)[ RSS](/packages/mariusasensi-meteocat-api-php-client/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

[Meteo.cat](https://www.meteo.cat) API Client
=============================================

[](#meteocat-api-client)

[![Build Status](https://camo.githubusercontent.com/7ae0d77f535dbada217b9c6f507c2a6cc48d1a747401ea01a506cb5e6b100b87/68747470733a2f2f7472617669732d63692e6f72672f6d61726975736173656e73692f6d6574656f6361742d6170692d7068702d636c69656e742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/mariusasensi/meteocat-api-php-client)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Code Coverage](https://camo.githubusercontent.com/c7043c140db7bc697f7fa047a675318ca43b3bc8051e1dec69460db20bbd3bc0/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6d61726975736173656e73692f6d6574656f6361742d6170692d7068702d636c69656e742f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/mariusasensi/meteocat-api-php-client/?branch=master)[![Quality Score](https://camo.githubusercontent.com/6e4df72e131c421544f18df6a57aafd15fbc5cbf929638e4ada2929b0d920baa/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6d61726975736173656e73692f6d6574656f6361742d6170692d7068702d636c69656e742f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/mariusasensi/meteocat-api-php-client/?branch=master)[![Total Downloads](https://camo.githubusercontent.com/32df9831c9b8af8d08ee8cdc01831920d51317eb6d2b17e3be3a3c912717f609/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d61726975736173656e73692f6d6574656f6361742d6170692d7068702d636c69656e742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mariusasensi/meteocat-api-php-client)

An **unofficial** PHP client for easy use of the [Meteo.cat API REST](https://apidocs.meteocat.gencat.cat/).

Documentation of the API can be found at .

As the documentation indicates, to use this provider it is necessary to request the *access token* from this [form](https://apidocs.meteocat.gencat.cat/documentacio/acces-ciutada-i-administracio/).

About the provider
------------------

[](#about-the-provider)

- [*Servei Meteorològic de Catalunya*](http://www.meteo.cat/).
- [Wikipedia](https://en.wikipedia.org/wiki/Meteorological_Service_of_Catalonia).

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

[](#installation)

Use [Composer](https://getcomposer.org/):

```
$ composer require mariusasensi/meteocat-api-php-client
```

Usage
-----

[](#usage)

```
use Meteocat\Provider\Meteocat;
use Meteocat\Model\Query\Forecast\Forecasting\GetCatalunyaByDate;
use Meteocat\Model\Entity\Forecast;

$client = new Meteocat('your_api_token');
$query = new GetCatalunyaByDate(DateTime::createFromFormat('Y-m-d', '2019-08-06'));

/** @var Forecast $entityResponse */
$response = $client->executeQuery($query);
```

Operation query types
---------------------

[](#operation-query-types)

TypeSubtypeQuery class nameDocumentationDescription (CA)XEMARepresentativeGetStationByCity[Link](https://apidocs.meteocat.gencat.cat/documentacio/representatives/#estacions-representatives-per-a-un-municipi-i-una-variable)Estacions representatives per a un municipi i una variableXEMARepresentativeGetAllVariableMetadata[Link](https://apidocs.meteocat.gencat.cat/documentacio/representatives/#metadades-de-variables)Metadades de variablesXEMAStationsGetAll[Link](https://apidocs.meteocat.gencat.cat/documentacio/metadades-estacions/#metadades-de-totes-les-estacions)Metadades de totes les estacionsXEMAStationsGetUnique[Link](https://apidocs.meteocat.gencat.cat/documentacio/metadades-estacions/#metadades-duna-estacio)Metadades d'una estacióXEMAMeasurementGetByDay[Link](https://apidocs.meteocat.gencat.cat/documentacio/dades-mesurades/#dades-duna-variable-per-a-totes-les-estacions)Dades d'una variable per a totes les estacionsXEMAMeasurementGetLast[Link](https://apidocs.meteocat.gencat.cat/documentacio/dades-mesurades/#ultimes-dades-duna-variable-per-a-totes-les-estacions)Últimes dades d'una variable per a totes les estacionsXEMAMeasurementGetAllByStation[Link](https://apidocs.meteocat.gencat.cat/documentacio/dades-mesurades/#metadades-de-les-variables-duna-estacio)Metadades de les variables d'una estacióXEMAMeasurementGetByStation[Link](https://apidocs.meteocat.gencat.cat/documentacio/dades-mesurades/#metadades-duna-variable-duna-estacio)Metadades d'una variable d'una estacióXEMAMeasurementGetAll[Link](https://apidocs.meteocat.gencat.cat/documentacio/dades-mesurades/#metadades-de-totes-les-variables)Metadades de totes les variablesXEMAMeasurementGetUnique[Link](https://apidocs.meteocat.gencat.cat/documentacio/dades-mesurades/#metadades-duna-variable)Metadades d'una variableXEMAStatisticGetYearlyByVariable[Link](https://apidocs.meteocat.gencat.cat/documentacio/estadistics-diaris/#estadistics-anuals-duna-variable-per-a-totes-les-estacions)Estadístics anuals d'una variable per a totes les estacionsXEMAStatisticGetMonthlyByVariable[Link](https://apidocs.meteocat.gencat.cat/documentacio/estadistics-diaris/#estadistics-mensuals-duna-variable-per-a-totes-les-estacions)Estadístics mensuals d'una variable per a totes les estacionsXEMAStatisticGetDailyByVariable[Link](https://apidocs.meteocat.gencat.cat/documentacio/estadistics-diaris/#estadistics-diaris-duna-variable-per-a-totes-les-estacions)Estadístics diaris d'una variable per a totes les estacionsXEMAStatisticGetYearlyMetadata[Link](https://apidocs.meteocat.gencat.cat/documentacio/estadistics-diaris/#metadades-destadistics-anuals)Metadades d'estadístics anualsXEMAStatisticGetYearlyMetadataByVariable[Link](https://apidocs.meteocat.gencat.cat/documentacio/estadistics-diaris/#metadades-destadistics-anuals-per-variable)Metadades d'estadístics anuals per variableXEMAStatisticGetMonthlyMetadata[Link](https://apidocs.meteocat.gencat.cat/documentacio/estadistics-diaris/#metadades-destadistics-mensuals)Metadades d'estadístics mensualsXEMAStatisticGetMonthlyMetadataByVariable[Link](https://apidocs.meteocat.gencat.cat/documentacio/estadistics-diaris/#metadades-destadistics-mensuals-per-variable)Metadades d'estadístics mensuals per variableXEMAStatisticGetDailyMetadata[Link](https://apidocs.meteocat.gencat.cat/documentacio/estadistics-diaris/#metadades-destadistics-diaris)Metadades d'estadístics diarisXEMAStatisticGetDailyMetadataByVariable[Link](https://apidocs.meteocat.gencat.cat/documentacio/estadistics-diaris/#metadades-destadistics-diaris-per-variable)Metadades d'estadístics diaris per variableXEMAStatisticGetYearlyMetadataByStation[Link](https://apidocs.meteocat.gencat.cat/documentacio/estadistics-diaris/#metadades-destadistics-anuals-duna-estacio)Metadades d'estadístics anuals d'una estacióXEMAStatisticGetYearlyMetadataByFilters[Link](https://apidocs.meteocat.gencat.cat/documentacio/estadistics-diaris/#metadades-destadistics-anuals-duna-variable-duna-estacio)Metadades d'estadístics anuals d'una variable d'una estacióXEMAStatisticGetMonthlyMetadataByStation[Link](https://apidocs.meteocat.gencat.cat/documentacio/estadistics-diaris/#metadades-destadistics-mensuals-duna-estacio)Metadades d'estadístics mensuals d'una estacióXEMAStatisticGetMonthlyMetadataByFilters[Link](https://apidocs.meteocat.gencat.cat/documentacio/estadistics-diaris/#metadades-destadistics-mensuals-duna-variable-duna-estacio)Metadades d'estadístics mensuals d'una variable d'una estacióXEMAStatisticGetDailyMetadataByStation[Link](https://apidocs.meteocat.gencat.cat/documentacio/estadistics-diaris/#metadades-destadistics-diaris-duna-estacio)Metadades d'estadístics diaris d'una estacióXEMAStatisticGetDailyMetadataByFilters[Link](https://apidocs.meteocat.gencat.cat/documentacio/estadistics-diaris/#metadades-destadistics-diaris-duna-variable-duna-estacio)Metadades d'estadístics diaris d'una variable d'una estacióXEMAMultivariableCalculationGetByFilters[Link](https://apidocs.meteocat.gencat.cat/documentacio/calcul-multivariable/#calcul-multivariable-duna-variable-a-una-estacio)Càlcul multivariable d'una variable a una estacióXEMAMultivariableCalculationGetMetadataByStation[Link](https://apidocs.meteocat.gencat.cat/documentacio/calcul-multivariable/#metadades-de-les-variables-duna-estacio)Metadades de les variables d'una estacióXEMAMultivariableCalculationGetMetadataByFilters[Link](https://apidocs.meteocat.gencat.cat/documentacio/calcul-multivariable/#metadades-duna-variable-duna-estacio)Metadades d'una variable d'una estacióXEMAMultivariableCalculationGetAll[Link](https://apidocs.meteocat.gencat.cat/documentacio/calcul-multivariable/#metadades-de-totes-les-variables)Metadades de totes les variablesXEMAMultivariableCalculationGetByVariable[Link](https://apidocs.meteocat.gencat.cat/documentacio/calcul-multivariable/#metadades-duna-variable)Metadades d'una variableXEMAAuxiliaryGetByFilters[Link](https://apidocs.meteocat.gencat.cat/documentacio/dades-auxiliars/#calcul-auxiliars-duna-variable-a-una-estacio)Càlcul auxiliars d'una variable a una estacióXEMAAuxiliaryGetMetadataByStation[Link](https://apidocs.meteocat.gencat.cat/documentacio/dades-auxiliars/#metadades-de-les-variables-duna-estacio)Metadades de les variables d'una estacióXEMAAuxiliaryGetMetadataByFilters[Link](https://apidocs.meteocat.gencat.cat/documentacio/dades-auxiliars/#metadades-duna-variable-duna-estacio)Metadades d'una variable d'una estacióXEMAAuxiliaryGetAll[Link](https://apidocs.meteocat.gencat.cat/documentacio/dades-auxiliars/#metadades-de-totes-les-variables)Metadades de totes les variablesXEMAAuxiliaryGetByVariable[Link](https://apidocs.meteocat.gencat.cat/documentacio/dades-auxiliars/#metadades-duna-variable)Metadades d'una variableXDDELightningGetOfCatalunyaByDateTime[Link](https://apidocs.meteocat.gencat.cat/documentacio/xarxa-de-deteccio-de-descarregues-electriques/#dades-de-descarregues-a-catalunya)Dades de descàrregues a CatalunyaXDDELightningGetOfCountyByDate[Link](https://apidocs.meteocat.gencat.cat/documentacio/xarxa-de-deteccio-de-descarregues-electriques/#resum-de-descarregues-per-comarca)Resum de descàrregues per comarcaForecastForecastingGetCatalunyaByDate[Link](https://apidocs.meteocat.gencat.cat/documentacio/prediccio/#prediccio-general-de-catalunya)Predicció general de CatalunyaForecastForecastingGetCountyByDate[Link](https://apidocs.meteocat.gencat.cat/documentacio/prediccio/#prediccio-comarcal-de-catalunya)Predicció comarcal de CatalunyaForecastForecastingGetByCity[Link](https://apidocs.meteocat.gencat.cat/documentacio/prediccio/#prediccio-municipal)Predicció municipalForecastForecastingGetCurrentWarnings[Link](https://apidocs.meteocat.gencat.cat/documentacio/prediccio/#situacions-meteorologiques-de-perill-llista-depisodis-oberts)Situacions Meteorològiques de Perill: Llista d'Episodis ObertsForecastForecastingGetCurrentAlerts[Link](https://apidocs.meteocat.gencat.cat/documentacio/prediccio/#situacions-meteorologiques-de-perill-preavisos)Situacions Meteorològiques de Perill: PreavisosForecastForecastingGetPyreneesMountainPeakMetadata[Link](https://apidocs.meteocat.gencat.cat/documentacio/prediccio/#metadades-de-pics-del-pirineu)Metadades de pics del PirineuForecastForecastingGetPyreneesMountainHuntMetadata[Link](https://apidocs.meteocat.gencat.cat/documentacio/prediccio/#metadades-de-refugis-del-pirineu)Metadades de refugis del PirineuForecastForecastingGetPyreneesMountainPeakByDate[Link](https://apidocs.meteocat.gencat.cat/documentacio/prediccio/#prediccio-de-pics-del-pirineu)Predicció de pics del PirineuForecastForecastingGetPyreneesMountainHuntByDate[Link](https://apidocs.meteocat.gencat.cat/documentacio/prediccio/#prediccio-de-pics-del-pirineu)Predicció de refugis del PirineuForecastForecastingGetPyreneesZonesByDate[Link](https://apidocs.meteocat.gencat.cat/documentacio/prediccio/#prediccio-de-zones-del-pirineu)Predicció de zones del PirineuForecastForecastingGetUltravioletIndexByCity[Link](https://apidocs.meteocat.gencat.cat/documentacio/prediccio/#prediccio-index-ultraviolat-uvi)Predicció Índex ultraviolat (UVI)QuotaInformationGetCurrentUsage[Link](https://apidocs.meteocat.gencat.cat/documentacio/quotes/#consum-actual)Consum actualReferenceDataGetAllCounties[Link](https://apidocs.meteocat.gencat.cat/documentacio/referencia/#dades-de-referencia-de-les-comarques)Dades de referència de les comarquesReferenceDataGetAllSymbols[Link](https://apidocs.meteocat.gencat.cat/documentacio/referencia/#dades-de-referencia-dels-simbols-meteorologics)Dades de referència dels símbols meteorològicsReferenceDataGetAllCities[Link](https://apidocs.meteocat.gencat.cat/documentacio/referencia/#dades-de-referencia-dels-municipis)Dades de referència dels municipisLicense
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE) for more information.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 98.6% 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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2469d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4e9fa5397d04c0c5336aa15442834d0631936d50304d84f927286cb8a7dd833f?d=identicon)[mariusasensi](/maintainers/mariusasensi)

---

Top Contributors

[![mariusasensi](https://avatars.githubusercontent.com/u/45662861?v=4)](https://github.com/mariusasensi "mariusasensi (68 commits)")[![jordicea](https://avatars.githubusercontent.com/u/1439984?v=4)](https://github.com/jordicea "jordicea (1 commits)")

---

Tags

api-clientcataloniacatalunyagencatmeteocatregional-providerweatherweather-dataweather-informationproviderweathermeteocatcatalunya

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mariusasensi-meteocat-api-php-client/health.svg)

```
[![Health](https://phpackages.com/badges/mariusasensi-meteocat-api-php-client/health.svg)](https://phpackages.com/packages/mariusasensi-meteocat-api-php-client)
```

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[rakibdevs/openweather-laravel-api

Laravel package to connect https://openweathermap.org/ to get customized weather data for any location on the globe immediately

7648.2k](/packages/rakibdevs-openweather-laravel-api)[gnahotelsolutions/laravel-weather

🌤️ A wrapper around Open Weather Map to get the current weather on a location.

385.3k](/packages/gnahotelsolutions-laravel-weather)[apixu/apixu-php

PHP library for Apixu Weather API

223.7k](/packages/apixu-apixu-php)[rugaard/weatherkit

Integrate Apple WeatherKit API into your project

111.4k](/packages/rugaard-weatherkit)

PHPackages © 2026

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