PHPackages                             zazimou/cap - 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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. zazimou/cap

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

zazimou/cap
===========

Common Alerting Protocol Version 1.2 reader

1.0.0(4y ago)1247MITPHPPHP &gt;=7.4

Since Apr 1Pushed 4y ago1 watchersCompare

[ Source](https://github.com/Zazimou/Cap)[ Packagist](https://packagist.org/packages/zazimou/cap)[ RSS](/packages/zazimou-cap/feed)WikiDiscussions master Synced 3w ago

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

Common Alerting Protocol Version 1.2 reader
===========================================

[](#common-alerting-protocol-version-12-reader)

CAP is library for reading Common Alerting Protocol Version 1.2

This library is for now developed only for Czech ČHMÚ (Český hydrometeorologický ústav) structures

Documentation of Common Alerting Protocol in czech language
===========================================================

[](#documentation-of-common-alerting-protocol-in-czech-language)

[https://www.chmi.cz/files/portal/docs/meteo/om/vystrahy/doc/Dokumentace\_CAP.pdf](https://www.chmi.cz/files/portal/docs/meteo/om/vystrahy/doc/Dokumentace_CAP.pdf)

Features
========

[](#features)

- You can download this file and read as known object without problems
- some content is modified to objects (string with datetime to \\DateTime, ...)

Modified to objects
===================

[](#modified-to-objects)

- all strings with datetime values to `\DateTime`
- all strings with objectable values (e.g. references, senderName,...)
- arrayed all properties where is possible multiple values, all this properties have plural names

Installation
============

[](#installation)

Composer
--------

[](#composer)

```
{
    "require": {
        "zazimou/cap": "*"
    }
}

```

Usage
=====

[](#usage)

```
use Zazimou\CAP\Cap;

// find Url where is cap file uploaded
$url = "https://www.chmi.cz/files/portal/docs/meteo/om/bulletiny/XOCZ50_OKPR.xml";

// create new instance of Cap
$cap = new Cap;

// download the file
$file = $cap->read($url);
```

Changelog
=========

[](#changelog)

1.0.0
-----

[](#100)

- first version of library

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1554d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/134021cedfde022e443b08f412e53d94238953bdee7ed54fd6b0884f060376c0?d=identicon)[Zazimou](/maintainers/Zazimou)

---

Top Contributors

[![datronjzima](https://avatars.githubusercontent.com/u/114137716?v=4)](https://github.com/datronjzima "datronjzima (1 commits)")

### Embed Badge

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

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

###  Alternatives

[mck89/peast

Peast is PHP library that generates AST for JavaScript code

19139.2M45](/packages/mck89-peast)[sauladam/shipment-tracker

Parses tracking information for several carriers, like UPS, USPS, DHL and GLS by simply scraping the data. No need for any kind of API access.

9843.5k](/packages/sauladam-shipment-tracker)[bckr75/gibdd

Simple gibdd.ru parser

161.2k](/packages/bckr75-gibdd)[tcds-io/php-jackson

A lightweight, flexible object serializer for PHP, inspired by FasterXML/jackson

113.2k10](/packages/tcds-io-php-jackson)

PHPackages © 2026

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