PHPackages                             oehwu/meta - 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. oehwu/meta

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

oehwu/meta
==========

Package with various small handy classes in OEHWU projects

3.0.0(2y ago)07MITPHPPHP &gt;=8.1

Since Oct 20Pushed 2y ago1 watchersCompare

[ Source](https://github.com/oehwu/meta)[ Packagist](https://packagist.org/packages/oehwu/meta)[ RSS](/packages/oehwu-meta/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (10)Versions (18)Used By (0)

OEH WU Meta
===========

[](#oeh-wu-meta)

small support classes

Installation: composer support
------------------------------

[](#installation-composer-support)

```
{
    "require": {
        "oehwu/meta": "~2.0"
    },
    "repositories": [
        {
            "type": "vcs",
            "url": "https://git.oeh-wu.at/oehwu/meta.git"
        }
    ]
}

```

Usage: StudentId
----------------

[](#usage-studentid)

Since winter semester 2017/2018 student IDs have 8 digits (and a university code letter).

This class provides two static methods to validate and filter/normalize a given student ID and a third combined method for convenience. Both methods expect the *h* letter (university code letter for WU) to be present in the passed `$studentId`.

### Validation:

[](#validation)

```
OEHWU\Meta\StudentId::isValid(string $studentId): bool

```

Returns `true` if the student ID is valid, even for converted legacy IDs (e.g. `h01234567` is valid).

### Normalization:

[](#normalization)

```
OEHWU\Meta\StudentId::filter(string $studentId): string

```

Sanitizes the student ID and returns the normalized variant. If an e-mail address is provided as `$studenId` it will extract the local part of the address and assumes that to be the student ID.

Legacy student IDs will be converted to the **old** format, i.e. `h01234567` will be converted to `h1234567`.

See the unit tests file for more examples.

### Combined:

[](#combined)

```
OEHWU\Meta\StudentId::check(string $studentId): ?string

```

Normalizes and validates the given `$studentId` and returns the normalized student ID or `null` if the student ID is not valid.

Usage: Cookie
-------------

[](#usage-cookie)

Returns a snippet which can be used to display (and dismiss) a cookie notice.

```
OEHWU\Meta\Cookie::getSnippet()

```

Usage: Header
-------------

[](#usage-header)

This class implements one public static method:

```
OEHWU\Meta\Header::getHeader()

```

The method returns the Header HTML `string` to be `echo`ed. It should be used right after the opening `` tag, with ``'s margin and padding set to `0`.

The *cURL* library has to be installed. Otherwise the method silently fails and returns `null`.

Usage: CheckSSL
---------------

[](#usage-checkssl)

The package has two public static methods:

```
OEHWU\CheckSSL\CheckSSL::isSSL()

```

Returns `bool` `true` or `false`.

```
OEHWU\CheckSSL\CheckSSL::redirect()

```

Redirects the client to the SSL version of the current website, if not already there.

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity80

Battle-tested with a long release history

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

Recently: every ~490 days

Total

17

Last Release

956d ago

Major Versions

1.1.1 → 2.0.02017-01-16

2.1.4 → 3.0.02023-10-05

PHP version history (5 changes)1.1.1PHP &gt;=5.3.3

2.0.0PHP &gt;=5.5

2.0.3PHP &gt;=5.3

2.0.4PHP &gt;=5.4

3.0.0PHP &gt;=8.1

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

hacktoberfest

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Psalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/oehwu-meta/health.svg)

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

PHPackages © 2026

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