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 3w 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 21% 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

2290d 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

[mck89/peast

Peast is PHP library that generates AST for JavaScript code

19139.2M47](/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)
