PHPackages                             meerkatmcr/simple-query-memory - 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. [Database &amp; ORM](/categories/database)
4. /
5. meerkatmcr/simple-query-memory

ActiveLibrary[Database &amp; ORM](/categories/database)

meerkatmcr/simple-query-memory
==============================

Simple query-string storage for Laravel 5.x

1.0.2(6y ago)013[1 PRs](https://github.com/meerkatmcr/simple-query-memory/pulls)MITPHPPHP ^7.0

Since Jan 21Pushed 3y ago1 watchersCompare

[ Source](https://github.com/meerkatmcr/simple-query-memory)[ Packagist](https://packagist.org/packages/meerkatmcr/simple-query-memory)[ RSS](/packages/meerkatmcr-simple-query-memory/feed)WikiDiscussions dev Synced 3w ago

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

simple-query-memory
===================

[](#simple-query-memory)

Very simple package to store query-string data in the session on Laravel 5.x applications

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

[](#installation)

- Install the package with `composer install meerkatmcr/simple-query-memory`
- Put the `\MeerkatMcr\SimpleQueryMemory\Middleware\RememberQueryString`middleware in the `$routeMiddleware` array in `app/Http/Kernel.php`. The usage instructions will assume that it is named `query`.

Usage
-----

[](#usage)

### Storing data

[](#storing-data)

On a route where you want the query string to be remembered in the session, add the `query` middleware with a parameter which will identify that particular route's data when it is retrieved. For example:

`Route::get('welcome', 'WelcomeController')->middleware('query:welcome');`

### Retrieving data

[](#retrieving-data)

To retrieve the data, use the `\MeerkatMcr\SimpleQueryMemory\Facades\QueryString` facade. This provides a `QueryString::get()` method. Give that method the route's key, and all data stored will be returned: `QueryString::get('welcome')`. If there is no data, `null` will be returned.

To retrieve particular items, pass a list of names as the second argument: `QueryString::get('welcome', ['id', 'name'])`. This will return an associative array of those items. If a particular item is not stored, the array will be missing that key. In particular, if no items are found at all, an empty array will be returned.

### Deleting data

[](#deleting-data)

To forget all data stored for a particular route, call `QueryString::forget()` with that route's key: `QueryString::forget('welcome')`.

Notes
-----

[](#notes)

Data is stored in the session under `query_string`, with each key's data kept separately. For example, the data for the key `welcome` is stored under `query_string.welcome`.

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.7% 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 ~7 days

Total

3

Last Release

2341d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/58777306?v=4)[meerkatmcr](/maintainers/meerkatmcr)[@meerkatmcr](https://github.com/meerkatmcr)

---

Top Contributors

[![meerkatmcr](https://avatars.githubusercontent.com/u/58777306?v=4)](https://github.com/meerkatmcr "meerkatmcr (2 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")

### Embed Badge

![Health badge](/badges/meerkatmcr-simple-query-memory/health.svg)

```
[![Health](https://phpackages.com/badges/meerkatmcr-simple-query-memory/health.svg)](https://phpackages.com/packages/meerkatmcr-simple-query-memory)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[mike-bronner/laravel-model-caching

Automatic caching for Eloquent models.

2.4k91.0k1](/packages/mike-bronner-laravel-model-caching)[illuminate/auth

The Illuminate Auth package.

10528.2M1.2k](/packages/illuminate-auth)[illuminate/routing

The Illuminate Routing package.

1419.2M3.0k](/packages/illuminate-routing)[spatie/laravel-export

Create a static site bundle from a Laravel app

674146.0k6](/packages/spatie-laravel-export)[api-platform/laravel

API Platform support for Laravel

58171.5k14](/packages/api-platform-laravel)

PHPackages © 2026

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