PHPackages                             salamek/moje-olomouc - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. salamek/moje-olomouc

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

salamek/moje-olomouc
====================

MojeOlomouc Client

v0.3(7y ago)0291LGPL-3.0PHPPHP &gt;=7.1.0

Since Nov 22Pushed 7y ago1 watchersCompare

[ Source](https://github.com/Salamek/moje-olomouc)[ Packagist](https://packagist.org/packages/salamek/moje-olomouc)[ RSS](/packages/salamek-moje-olomouc/feed)WikiDiscussions master Synced yesterday

READMEChangelog (3)Dependencies (2)Versions (5)Used By (1)

Moje Olomouc PHP API Client
===========================

[](#moje-olomouc-php-api-client)

[![Build Status](https://camo.githubusercontent.com/ef4d504da1acd0659a91322db2d3beaa52bd9de0bb1c741b143dd632a83e49af/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f53616c616d656b2f6d6f6a652d6f6c6f6d6f75632e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/Salamek/moje-olomouc)[![Coverage](https://camo.githubusercontent.com/54c4cae35c8b10aafa7ee4d68dcd8fa781e60e873b155166cd2a2c9360227a7f/68747470733a2f2f636f6465636f762e696f2f67682f53616c616d656b2f6d6f6a652d6f6c6f6d6f75632f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/Salamek/moje-olomouc)

It's been designed to be object oriented, testable and uses [Guzzle](http://guzzlephp.org) as a transport layer.

Install
-------

[](#install)

The recommended way to use MojeOlomouc is [through composer](http://getcomposer.org).

```
$ composer require salamek/moje-olomouc
```

Usage
-----

[](#usage)

All API operations are implemented:

- articleCategories
- articles
- eventCategories
- events
- importantMessages
- placeCategories
- places

Usage is as fallows:

```
use Salamek\MojeOlomouc\MojeOlomouc;
use Salamek\MojeOlomouc\Model\ImportantMessage;
use Salamek\MojeOlomouc\Model\Identifier;
use Salamek\MojeOlomouc\Enum\ImportantMessageSeverityEnum;
use Salamek\MojeOlomouc\Enum\ImportantMessageTypeEnum;

$apiKey = 'YOUR_API_KEY';
$isProduction = false;
$mojeOlomouc = new MojeOlomouc($apiKey, $isProduction);

$importantMessage = new ImportantMessage(
    'Warning',
    new \DateTime('2018-11-10'),
    ImportantMessageTypeEnum::TRAFFIC_SITUATION,
    ImportantMessageSeverityEnum::WARNING,
    new \DateTime('2018-11-12')
);

// Create new important-message
$response = $mojeOlomouc->importantMessages->create([$importantMessage]);
if (!$response->isError())
{
    echo 'SUCCESS'.PHP_EOL;
    print_r($response->getData());
    echo 'New important message have ID: '.$importantMessage->getId();
}
else
{
    echo 'ERROR'.PHP_EOL;
    echo $response->getMessage().PHP_EOL;
}

// Update important-message
$importantMessage->setExpireAt(new \DateTime('2018-11-20'));
$response = $mojeOlomouc->importantMessages->update([$importantMessage]);
if (!$response->isError())
{
    echo 'SUCCESS'.PHP_EOL;
    print_r($response->getData());
}
else
{
    echo 'ERROR'.PHP_EOL;
    echo $response->getMessage().PHP_EOL;
}

// Delete important-message
$response = $mojeOlomouc->importantMessages->delete([$importantMessage]);
if (!$response->isError())
{
    echo 'SUCCESS'.PHP_EOL;
    print_r($response->getData());
}
else
{
    echo 'ERROR'.PHP_EOL;
    echo $response->getMessage().PHP_EOL;
}

// Or
$idToDelete = 10;
$response = $mojeOlomouc->importantMessages->delete([new Identifier($idToDelete)]);
if (!$response->isError())
{
    echo 'SUCCESS'.PHP_EOL;
    print_r($response->getData());
}
else
{
    echo 'ERROR'.PHP_EOL;
    echo $response->getMessage().PHP_EOL;
}
```

License
-------

[](#license)

This project is licensed under the [LGPL-3.0 license](https://opensource.org/licenses/LGPL-3.0).

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community9

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

Every ~4 days

Total

3

Last Release

2721d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c21212e1504816757058ac5cee91f87aea0395f3d7e2d26a01e71aaefcadac0b?d=identicon)[Salamek](/maintainers/Salamek)

---

Top Contributors

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

---

Tags

api-clientphp7

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/salamek-moje-olomouc/health.svg)

```
[![Health](https://phpackages.com/badges/salamek-moje-olomouc/health.svg)](https://phpackages.com/packages/salamek-moje-olomouc)
```

###  Alternatives

[shlinkio/shlink

A self-hosted and PHP-based URL shortener application with CLI and REST interfaces

4.8k4.3k](/packages/shlinkio-shlink)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)[dhlparcel/magento2-plugin

DHL Parcel plugin for Magento 2

11180.5k2](/packages/dhlparcel-magento2-plugin)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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