PHPackages                             thestormwinter/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. thestormwinter/cap

Abandoned → [zazimou/cap](/?search=zazimou%2Fcap)Library[Parsing &amp; Serialization](/categories/parsing)

thestormwinter/cap
==================

Common Alerting Protocol Version 1.2 reader

v0.1.2(6y ago)160MITPHPPHP &gt;=7.2

Since Mar 25Pushed 4y ago1 watchersCompare

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

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

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

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

[![Build Status](https://camo.githubusercontent.com/5d0ac4d3a961c9fc9f77482bcea9e096dadc2bf9ad281902ee61145ea78c408d/68747470733a2f2f7472617669732d63692e636f6d2f74686553746f726d57696e7465722f6361702e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/theStormWinter/cap)

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)

[http://portal.chmi.cz/files/portal/docs/meteo/om/vystrahy/doc/Dokumentace\_CAP.pdf](http://portal.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": {
        "thestormwinter/cap": "*"
    }
}

```

Usage
=====

[](#usage)

```
use theStormWinter\CAP\Cap;

// find Url where is cap file uploaded
$url = "http://portal.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)

0.1.1
-----

[](#011)

- added .gitattributes

0.1.0
-----

[](#010)

- first version of library

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

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

Every ~0 days

Total

3

Last Release

2244d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/42857353?v=4)[Stormwinter](/maintainers/theStormwinter)[@theStormWinter](https://github.com/theStormWinter)

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[mtdowling/jmespath.php

Declaratively specify how to extract elements from a JSON document

2.0k472.8M135](/packages/mtdowling-jmespathphp)[opis/closure

A library that can be used to serialize closures (anonymous functions) and arbitrary data.

2.6k230.0M284](/packages/opis-closure)[masterminds/html5

An HTML5 parser and serializer.

1.8k242.8M229](/packages/masterminds-html5)[sabberworm/php-css-parser

Parser for CSS Files written in PHP

1.8k191.2M65](/packages/sabberworm-php-css-parser)[michelf/php-markdown

PHP Markdown

3.5k52.4M345](/packages/michelf-php-markdown)[jms/metadata

Class/method/property metadata management in PHP

1.8k152.8M88](/packages/jms-metadata)

PHPackages © 2026

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