PHPackages                             kookas/movetobundle - 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. [Templating &amp; Views](/categories/templating)
4. /
5. kookas/movetobundle

ActiveLibrary[Templating &amp; Views](/categories/templating)

kookas/movetobundle
===================

Generate paths without having to restate every parameter in the current one.

v1.1.1(9y ago)024MITPHP

Since Feb 13Pushed 5y ago1 watchersCompare

[ Source](https://github.com/Kookas/moveto)[ Packagist](https://packagist.org/packages/kookas/movetobundle)[ RSS](/packages/kookas-movetobundle/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (7)Used By (0)

MoveToBundle
============

[](#movetobundle)

MoveToBundle for Symfony and Twig lets you generate paths to routes by copying all the parameters of the current route and applying them to another route with the option of modifying all or only some of those parameters. No more extremely long `path()` calls!

To install, use `composer require kookas/movetobundle` and then insert the line `new Kookas\MoveToBundle\KookasMoveToBundle()` into your `AppKernel.php` file. Alternatively, you can simply download the bundle straight from the repository and use that.

To use, call the Twig function `moveTo(params, route = null)`. This will generate a path from the current route parameters combined with the parameters provided in the first argument, with your parameters taking precedence where conflicts arise. By default, the route used is the current route, but you can specify a different one by name in the second argument.

For example, suppose I have a blog system that lets any user set up a blog and make blog posts, which can then have paginated comments. The URI for the comments of a blog post might look like this:

`/blogs/myblog/top-10-healthy-foods-in-existence/comments/page-1`

If I want to make a button to go to page-2, not only would I normally have to specify the current route again, but I'd also have to respecify both the blog name and the post slug in `path()`. With MoveToBundle, you can just do this:

`{{ moveTo({'page':2}) }}`

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity67

Established project with proven stability

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 ~1 days

Total

6

Last Release

3421d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/26506627?v=4)[Olivier Charrez](/maintainers/Kookas)[@KookaS](https://github.com/KookaS)

---

Tags

routingsymfonytwigroutingroute

### Embed Badge

![Health badge](/badges/kookas-movetobundle/health.svg)

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

###  Alternatives

[modx/revolution

MODX Revolution is a Content Management System

1.4k9.4k12](/packages/modx-revolution)[tasmaniski/laminas-current-route

View Helper for reading current route info: Controller, Action, Module name

3612.5k](/packages/tasmaniski-laminas-current-route)[tasmaniski/zf2-current-route

View Helper for reading current route info: Controller, Action, Module name

366.9k](/packages/tasmaniski-zf2-current-route)

PHPackages © 2026

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