PHPackages                             dreamaker/affair - 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. dreamaker/affair

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

dreamaker/affair
================

this works exactly like sessions, it will help you perform save items in session and retrieve them

v1.0.0(7y ago)1141MITPHP

Since Jul 12Pushed 7y agoCompare

[ Source](https://github.com/Samwel24/affair)[ Packagist](https://packagist.org/packages/dreamaker/affair)[ RSS](/packages/dreamaker-affair/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (2)Used By (0)

Affair
======

[](#affair)

[![GitHub issues](https://camo.githubusercontent.com/53d9a4d2343c3ce4b8e3c4e89286c1c3b678a1e503edfe3ba9cfd309b1cef26b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f53616d77656c32342f6166666169722e737667)](https://github.com/Samwel24/affair/issues)[![license](https://camo.githubusercontent.com/c4390f70a9be6fb94acbd1d35eaeb2694131ab3fa0acf0494dea52b7ff027128/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f53616d77656c32342f6166666169722e737667)](LICENSE.md)[![GitHub forks](https://camo.githubusercontent.com/4ac3aa5e3dd1546fd07241e2f43a677665cf30392f9a36fa993fa3595c9d8129/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f666f726b732f53616d77656c32342f6166666169722e737667)](https://github.com/Samwel24/affair/network)[![GitHub stars](https://camo.githubusercontent.com/ce36dff57218229e962de059423c91ff58ce600cc956688c688770cddcfb5c4b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f53616d77656c32342f6166666169722e737667)](https://github.com/Samwel24/affair/stargazers)

Table of Contents
-----------------

[](#table-of-contents)

- [Install](#install)
- [Documentation](#documentation)
- [License](#license)

Install
-------

[](#install)

To install the Affair

first download via composer by running the command `composer require dreamaker\affair`if you do not have composer you could just clone this repo

after download

Then include or into your project directory and put this at the top of you class or file ` use Dreamaker\Affair\Affair;`

Documentation
-------------

[](#documentation)

` Affair::put($key, $value)`

This method is used to save items into the session, but adding a key and value

` Affair::get($key)`

This method is used to retrieve items from a session

` Affair::all()`

This returns all session saved

To start a session, all you have to do is instantiate a new affair class

` $affair = new Affair;`This will start a session

` Affair::destroy()`This will destroy all session variables in existence

` Affair::exists($key)`This will return true if the session exists with the $key parameter passed into it otherwise false

License
-------

[](#license)

Affair is free software distributed under the terms of the MIT license.

Contribution guidelines
-----------------------

[](#contribution-guidelines)

Please report any issue you find in the issues page.
Pull requests are welcome.

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

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

Unknown

Total

1

Last Release

2911d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4bbd9760eddac7fac7181332880b66f15aa5c910e7b0d46a27bd25eab67531f1?d=identicon)[samwel244](/maintainers/samwel244)

---

Top Contributors

[![piperstackist](https://avatars.githubusercontent.com/u/41090320?v=4)](https://github.com/piperstackist "piperstackist (6 commits)")

### Embed Badge

![Health badge](/badges/dreamaker-affair/health.svg)

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

###  Alternatives

[bacon/bacon-qr-code

BaconQrCode is a QR code generator for PHP.

2.1k178.4M490](/packages/bacon-bacon-qr-code)

PHPackages © 2026

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