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. meerkatmcr/simple-query-memory

ActiveLibrary

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 2d 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 32% 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

2288d 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

[spatie/laravel-pjax

A pjax middleware for Laravel 5

513371.8k11](/packages/spatie-laravel-pjax)[tzsk/sms

A robust and unified SMS gateway integration package for Laravel, supporting multiple providers.

320244.3k6](/packages/tzsk-sms)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

44643.1k1](/packages/pressbooks-pressbooks)[api-platform/laravel

API Platform support for Laravel

59126.4k6](/packages/api-platform-laravel)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)[bayareawebpro/laravel-multistep-forms

Responsable MultiStep Form Builder for Laravel.

967.9k](/packages/bayareawebpro-laravel-multistep-forms)

PHPackages © 2026

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