PHPackages                             karriere/legacy - 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. karriere/legacy

AbandonedArchivedLibrary

karriere/legacy
===============

v1.0.0(9y ago)313Apache-2.0PHPPHP &gt;=5.6

Since Feb 28Pushed 9y ago2 watchersCompare

[ Source](https://github.com/karriereat/legacy)[ Packagist](https://packagist.org/packages/karriere/legacy)[ Docs](https://github.com/karriereat/legacy)[ RSS](/packages/karriere-legacy/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)DependenciesVersions (3)Used By (0)

[![](https://camo.githubusercontent.com/b3def76d7951161a348c294046488dbdd16ee2729d7f9fca35774af3c1b57fec/687474703a2f2f7777772e6b617272696572652e61742f696d616765732f6c61796f75742f6b61746c6f676f2e737667)](https://www.karriere.at/) [![StyleCI](https://camo.githubusercontent.com/f493d485e568bc69b086986a4e5187d8039a84c165f9e5de2d5b4dfa6ca813bd/68747470733a2f2f7374796c6563692e696f2f7265706f732f38333334393338302f736869656c643f6272616e63683d6d6173746572)](https://styleci.io/repos/83349380)

Legacy Helpers
==============

[](#legacy-helpers)

This package contains some convenient helper functions inspired by laravel helpers that can be used in a legacy application without IoC.

Tasks like sending a redirect or working with the session can be a real mess in plain php. Therefore this package provides helper functions to help with these problems.

Installation
------------

[](#installation)

You can install the package via composer

```
composer require karriere/legacy

```

Bootstrapping
-------------

[](#bootstrapping)

Place the `initialize` call after `session_start` and before helper usage:

```
\Karriere\Legacy\Bootstrap::initialize();
```

Available Helpers
-----------------

[](#available-helpers)

### die dump

[](#die-dump)

Dumps an arbitrary variable/value and stops execution of the script.

```
dd('any value');
dd($_GET);
```

### session

[](#session)

Helper method for php session operations.

#### get session instance

[](#get-session-instance)

```
session();
```

Returns an instance of `Karriere\Legacy\Session`.

#### get session value

[](#get-session-value)

Retrieve a value from the session, the call allows a second parameter that is returned as default value if no session data is found for the eky

```
session('key');
session('key', 'no data');
```

#### store data in session

[](#store-data-in-session)

Store the given key-value pair in the session.

```
session(['key' => 'value']);
```

### add flash message

[](#add-flash-message)

Store a key-value pair only for the subsequent request.

```
session()->flash($key, $value);
```

### Redirect

[](#redirect)

Helper method for sending redirects.

#### send redirect

[](#send-redirect)

The method allows a second parameter for status code, the default value is 302 (Found - Moved Temporarily).

```
redirect('http://www.karriere.at')->send();
redirect('http://www.karriere.at', 301)->send();
```

#### redirect with flash message

[](#redirect-with-flash-message)

The redirector allows to store flash messages before sending the actual redirect.

```
redirect('http://www.karriere.at')->with('status', 'something happened')->send();
```

License
-------

[](#license)

Apache License 2.0 Please see [LICENSE](LICENSE) for more information.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity59

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

Unknown

Total

1

Last Release

3363d ago

### Community

Maintainers

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

![](https://www.gravatar.com/avatar/59ac000ca995a016e613c45c25d9b9c319853c5a783299aa5cc059f2c4477aab?d=identicon)[karriere-at-dev](/maintainers/karriere-at-dev)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/karriere-legacy/health.svg)

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

PHPackages © 2026

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