PHPackages                             zairigimad/ux-haptics - 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. zairigimad/ux-haptics

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

zairigimad/ux-haptics
=====================

Symfony UX bundle for haptic feedback on the mobile web using web-haptics

v1.0.0(3mo ago)11MITPHPPHP &gt;=8.2CI passing

Since Mar 10Pushed 3mo agoCompare

[ Source](https://github.com/zairigimad/ux-haptics)[ Packagist](https://packagist.org/packages/zairigimad/ux-haptics)[ RSS](/packages/zairigimad-ux-haptics/feed)WikiDiscussions main Synced 3w ago

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

Symfony UX Web Haptics
======================

[](#symfony-ux-web-haptics)

Haptic feedback for the mobile web in Symfony, powered by [web-haptics](https://haptics.lochie.me/) and Stimulus.

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

[](#installation)

```
composer require zairigimad/ux-haptics
```

If you're using AssetMapper, also run:

```
php bin/console importmap:require web-haptics
```

Usage
-----

[](#usage)

### With `stimulus_controller()` (recommended)

[](#with-stimulus_controller-recommended)

```
{# Preset #}

    Tap me

{# Custom pattern #}

    Custom haptic

```

### With bundled Twig helpers

[](#with-bundled-twig-helpers)

```
Tap me
Delete

Ping
```

### Plain HTML

[](#plain-html)

```

    Tap me

```

Available Options
-----------------

[](#available-options)

OptionTypeDefaultDescription`preset`String`''`Predefined preset name`pattern`Array`[]`Custom `{duration, delay?, intensity?}` steps`intensity`Number`0.5`Global intensity (0.0–1.0)`event`String`'click'`DOM event that triggers the haptic`auto`Boolean`false`Fire on page load instead of event`debug`Boolean`false`Audio feedback for desktop testing`show_switch`Boolean`false`Show web-haptics toggle UIBuilt-in Presets
----------------

[](#built-in-presets)

`success` · `nudge` · `error` · `buzz` · `warning` · `light` · `medium` · `heavy` · `soft` · `rigid` · `selection`

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

[](#requirements)

- PHP 8.2+
- Symfony 7.x or 8.x
- `symfony/stimulus-bundle` ^2.9

License
-------

[](#license)

MIT

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance80

Actively maintained with recent releases

Popularity3

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

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

Unknown

Total

1

Last Release

108d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/577b0913d724f315b0456b81763fb9323f5c8e5afcb8d9508546b086449239f0?d=identicon)[zairigimad](/maintainers/zairigimad)

---

Tags

symfony-uxstimulushapticsvibrationweb-haptics

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/zairigimad-ux-haptics/health.svg)

```
[![Health](https://phpackages.com/badges/zairigimad-ux-haptics/health.svg)](https://phpackages.com/packages/zairigimad-ux-haptics)
```

PHPackages © 2026

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