PHPackages                             sevengroupfrance/sulu-range-bundle - 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. [Admin Panels](/categories/admin)
4. /
5. sevengroupfrance/sulu-range-bundle

ActiveLibrary[Admin Panels](/categories/admin)

sevengroupfrance/sulu-range-bundle
==================================

v1.0.2(4y ago)191MITJavaScript

Since Jan 21Pushed 4y ago1 watchersCompare

[ Source](https://github.com/sevenGroupFrance/sulu-range-bundle)[ Packagist](https://packagist.org/packages/sevengroupfrance/sulu-range-bundle)[ RSS](/packages/sevengroupfrance-sulu-range-bundle/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (3)DependenciesVersions (4)Used By (0)

sevengroupfrance/sulu-range-bundle
==================================

[](#sevengroupfrancesulu-range-bundle)

Inspired by [this pull request](https://github.com/sulu/sulu-demo/pull/66).

What is this bundle's goal?
---------------------------

[](#what-is-this-bundles-goal)

Importing a custom fonctionality into [sulu](https://github.com/sulu/sulu), in this example, a custom content type. This bundle will import a range input. The range input used is from [react-range](https://www.npmjs.com/package/react-range).

[![How the range input looks in sulu's admin](assets/img/range-2.png)](assets/img/range-2.png)

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

[](#installation)

1. Go to your `assets/admin` folder and install the react-switch npm package `npm i react-range`.
2. Download the [package](https://packagist.org/packages/sevengroupfrance/sulu-range-bundle) in your project with the following command line:
    `composer require sevengroupfrance/sulu-range-bundle`.
3. In `config/bundles.php` add the following code:
    `SevenGroupFrance\SuluRangeBundle\SuluRangeBundle::class => ['all' => true]`.
4. In `assets/admin/package.json`, add the following line in the "dependencies" object:
    `"sulu-range-bundle": "file:node_modules/@sulu/vendor/sevengroupfrance/sulu-range-bundle/src/Resources/js"`.
5. In `assets/admin`, `npm install` to initialize the bundle's symlink directory.
6. In `assets/admin/index.js`, add this line:
    `import 'sulu-range-bundle'`.
7. In `assets/admin`, `npm run watch` or `npm run build`

Use in your template files
--------------------------

[](#use-in-your-template-files)

Once installed, to use this new content type, you'll have to create a new property with the type `sulu_range`.

```

    Block size

```

Setting the step, min and max values
------------------------------------

[](#setting-the-step-min-and-max-values)

Starting v1.0.1, you can configure your own basic values. To do so you will have to set several `parameters` in your sulu xml file template.

```

    Block size

```

The following parameters are available:
`min`(number): sets the minimum value (same as min attribute in html range input)
`max`(number): sets the maximum value (same as max attribute in html range input)
`step`(number): sets the step value (same as step attribute in html range input)
`ratio`(bool): sets how the output is rendered

If set to true, the `ratio` parameter will display the output like a ratio like this:

[![The radio rendered output](assets/img/range-1.png)](assets/img/range-1.png)

For further settings, please refer to the react-range github's [readme](https://github.com/tajo/react-range)

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

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

3

Last Release

1616d ago

### Community

Maintainers

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

---

Top Contributors

[![tommysonsylverstone](https://avatars.githubusercontent.com/u/47473393?v=4)](https://github.com/tommysonsylverstone "tommysonsylverstone (32 commits)")

---

Tags

sulu-bundle

### Embed Badge

![Health badge](/badges/sevengroupfrance-sulu-range-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/sevengroupfrance-sulu-range-bundle/health.svg)](https://phpackages.com/packages/sevengroupfrance-sulu-range-bundle)
```

PHPackages © 2026

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