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

0.4.0(1mo ago)0331LGPL-3.0PHPPHP &gt;=8.4.0CI passing

Since Nov 22Pushed 1mo 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 4w ago

READMEChangelog (3)Dependencies (4)Versions (6)Used By (1)

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

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

[![CI](https://github.com/Salamek/moje-olomouc/actions/workflows/ci.yml/badge.svg)](https://github.com/Salamek/moje-olomouc/actions/workflows/ci.yml)[![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

49

—

FairBetter than 94% of packages

Maintenance91

Actively maintained with recent releases

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity73

Established project with proven stability

 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 ~926 days

Total

4

Last Release

44d ago

PHP version history (2 changes)v0.1PHP &gt;=7.1.0

0.4.0PHP &gt;=8.4.0

### 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 (58 commits)")

---

Tags

api-clientphp84

###  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

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.2k555.0M2.8k](/packages/aws-aws-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k832.6k52](/packages/neuron-core-neuron-ai)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

762297.9k52](/packages/civicrm-civicrm-core)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3661.3M49](/packages/tencentcloud-tencentcloud-sdk-php)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

353.6k](/packages/eslazarev-wildberries-sdk)[oat-sa/tao-core

TAO core extension

64147.9k151](/packages/oat-sa-tao-core)

PHPackages © 2026

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