PHPackages                             elstc/cakephp-restore-query - 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. elstc/cakephp-restore-query

ActiveCakephp-plugin[Utility &amp; Helpers](/categories/utility)

elstc/cakephp-restore-query
===========================

Retaining and Restoring query strings plugin for CakePHP 3

v0.5.1(8y ago)053MITPHPPHP &gt;=5.6

Since Apr 18Pushed 8y ago1 watchersCompare

[ Source](https://github.com/elstc/cakephp-restore-query)[ Packagist](https://packagist.org/packages/elstc/cakephp-restore-query)[ RSS](/packages/elstc-cakephp-restore-query/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependencies (2)Versions (10)Used By (0)

Retaining and Restoring query strings plugin for CakePHP
========================================================

[](#retaining-and-restoring-query-strings-plugin-for-cakephp)

 [ ![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265) ](LICENSE.txt) [ ![Build Status](https://camo.githubusercontent.com/fa5fee5ada78ed477cee9fc8fa8f63ad3b04b912fa6ac7a2c8af86f158ef2086/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f656c7374632f63616b657068702d726573746f72652d71756572792f6d61737465722e7376673f7374796c653d666c61742d737175617265) ](https://travis-ci.org/elstc/cakephp-restore-query) [ ![Codecov](https://camo.githubusercontent.com/47c66a86b457884706b754f3ddbb01d92279e37dbceea930448fa2a297086acb/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f656c7374632f63616b657068702d726573746f72652d71756572792e7376673f7374796c653d666c61742d737175617265) ](https://codecov.io/gh/elstc/cakephp-restore-query) [ ![Latest Stable Version](https://camo.githubusercontent.com/ccf875659c521805459a660244a149b01bef02ab12a258e1d273ee4ee541129c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f656c7374632f63616b657068702d726573746f72652d71756572792e7376673f7374796c653d666c61742d737175617265) ](https://packagist.org/packages/elstc/cakephp-restore-query)

This plugin provides a component that makes it possible to restore the conditions in the list, search page, etc. even after transitioning to another page.

Requirements
------------

[](#requirements)

- CakePHP 3.x

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

[](#installation)

You can install this plugin into your CakePHP application using [composer](http://getcomposer.org).

The recommended way to install composer packages is:

```
composer require elstc/cakephp-restore-query

```

Add the following line to your application `config/bootstrap.php`:

```
use Cake\Core\Plugin;
Plugin::load('Elastic/RestoreQuery');

```

Usage
-----

[](#usage)

### Retaining query string

[](#retaining-query-string)

Load the component with your controller's `initialize` method.

```
class AppController extends Controller
{
    public function initialize()
    {
        $this->loadComponent('Elastic/RestoreQuery.RestoreQuery', [
            'actions' => ['index', 'search'], // List of actions to record query string
        ]);
    }
}
```

The component automatically saves the Query string for the target action.

### Restore saved query string

[](#restore-saved-query-string)

By creating a link in the template as follows, the component will call the saved query string and redirect to the target page.

```

```

### Elastic/RestoreQuery.RestoreQueryComponent Options

[](#elasticrestorequeryrestorequerycomponent-options)

#### `actions`

[](#actions)

List of actions to record the query string.

default: `['index', 'search']`

#### `sessionKey`

[](#sessionkey)

Name of session key for query string saving

default: `'StoredQuerystring'`

#### `restoreKey`

[](#restorekey)

Name of the query string for restore action.

default: `'_restore'`

#### `redirect`

[](#redirect)

Redirect when restoring the query string.

default: `true`

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

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

Every ~3 days

Total

9

Last Release

2929d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

cakephpcakephp-plugincakephp3history-managementquerystring

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/elstc-cakephp-restore-query/health.svg)

```
[![Health](https://phpackages.com/badges/elstc-cakephp-restore-query/health.svg)](https://phpackages.com/packages/elstc-cakephp-restore-query)
```

###  Alternatives

[dereuromark/cakephp-tools

A CakePHP plugin containing lots of useful and reusable tools

338920.1k32](/packages/dereuromark-cakephp-tools)[markstory/asset_compress

An asset compression plugin for CakePHP. Provides file concatenation and a flexible filter system for preprocessing and minification.

3761.0M11](/packages/markstory-asset-compress)[dereuromark/cakephp-shim

A CakePHP plugin to shim applications between major framework versions.

401.0M11](/packages/dereuromark-cakephp-shim)[cakedc/cakephp-phpstan

CakePHP plugin extension for PHPStan.

40676.6k31](/packages/cakedc-cakephp-phpstan)[dereuromark/cakephp-dto

A CakePHP plugin for generating immutable Data Transfer Objects with full type safety

2988.9k3](/packages/dereuromark-cakephp-dto)[dereuromark/cakephp-geo

A CakePHP plugin around geocoding tools and helpers.

51174.9k4](/packages/dereuromark-cakephp-geo)

PHPackages © 2026

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