PHPackages                             theunraveler/ujs-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. theunraveler/ujs-bundle

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

theunraveler/ujs-bundle
=======================

An unobtrusive JavaScript bundle for Symfony 2. Allows for using non-GET routes with simple links.

1.0.5(13y ago)22.6k1JavaScriptPHP &gt;=5.3.2

Since Jan 3Pushed 11y ago1 watchersCompare

[ Source](https://github.com/theunraveler/ujs-bundle)[ Packagist](https://packagist.org/packages/theunraveler/ujs-bundle)[ Docs](http://github.com/theunraveler/ujs-bundle)[ RSS](/packages/theunraveler-ujs-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (7)Used By (0)

UjsBundle for Symfony 2
=======================

[](#ujsbundle-for-symfony-2)

An unobtrusive JavaScript bundle for Symfony 2. Allows for using non-GET routes with simple links.

Dependencies
------------

[](#dependencies)

- Symfony
- jQuery

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

[](#installation)

Install just like any other Symfony bundle. See the section below on security for further instructions.

After installing, you will need to run `app/console assets:install` or add `@UjsBundle/Resources/public/js/ujs.js` if you are using Assetic.

Usage
-----

[](#usage)

For any link that you would like to submit with an HTTP method other than GET, just include a `data-method` attribute, like so:

```
Delete this post

```

You may optionally include a `data-confirm` attribute, which will be used as the text in the JavaScript confirm dialog.

```
Delete this post

```

If you set the `data-confirm` attribute to `false`, no confirmation message will be presented. Be careful with this, though, since browsers that do link prefetching may follow the link and perform destructive actions.

Security
--------

[](#security)

**Important!! If you do not implement these steps, your app will be vulnerable to cross-site scripting attacks!**

First, you will need to include an HTML `` tag on any page that yo would like to use UJS. For example, add the following to your `` section:

```

```

Any controller action that you would like to submit with UJS should check the CSRF token to make sure it is valid, like so:

```
public function deleteAction(Request $request)
{
    if ($request->request->has('_ujs_csrf_token') && $this->get('form.csrf_provider')->isCsrfTokenValid('ujs', $request->request->get('_ujs_csrf_token'))) {
        // Do your deleting, posting, etc.
    }
}

```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity62

Established project with proven stability

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

Total

6

Last Release

4765d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8cddccae721e17d4c31ed391953e344355382a72454b5202e1fb7881eaedcef6?d=identicon)[theunraveler](/maintainers/theunraveler)

---

Top Contributors

[![thomaschaaf](https://avatars.githubusercontent.com/u/893393?v=4)](https://github.com/thomaschaaf "thomaschaaf (1 commits)")

### Embed Badge

![Health badge](/badges/theunraveler-ujs-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/theunraveler-ujs-bundle/health.svg)](https://phpackages.com/packages/theunraveler-ujs-bundle)
```

###  Alternatives

[symfony/ux-toggle-password

Toggle visibility of password inputs for Symfony Forms

26508.0k5](/packages/symfony-ux-toggle-password)[spomky-labs/pwa-bundle

Progressive Web App Manifest Generator Bundle for Symfony.

6144.4k1](/packages/spomky-labs-pwa-bundle)[symfony/ux-cropperjs

Cropper.js integration for Symfony

19280.3k3](/packages/symfony-ux-cropperjs)[leapt/core-bundle

Symfony LeaptCoreBundle

2529.1k4](/packages/leapt-core-bundle)[symfony/ux-notify

Native notification integration for Symfony

1274.7k](/packages/symfony-ux-notify)[numero2/contao-storelocator

Contao Plugin for managing stores (or in common address data) and providing a frontend-search based on geo data

121.5k](/packages/numero2-contao-storelocator)

PHPackages © 2026

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