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

ActiveSymfony-bundle[Templating &amp; Views](/categories/templating)

mabs/jquery-ajax-bundle
=======================

This bundle provides a Twig functions that generate js function to send ajax request.

v1.1(12y ago)62242MITPHPPHP &gt;=5.3.0

Since Nov 29Pushed 10y ago2 watchersCompare

[ Source](https://github.com/kernel64/JQueryAjaxBundle)[ Packagist](https://packagist.org/packages/mabs/jquery-ajax-bundle)[ RSS](/packages/mabs-jquery-ajax-bundle/feed)WikiDiscussions master Synced 4d ago

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

JQueryAjaxBundle [![SensioLabsInsight](https://camo.githubusercontent.com/28164c9b1cf094351743dd20a9f2555ee8fff141515c295f26749ab2978b8f31/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f61373335646365622d363833632d343139352d626432372d6166363736636135306130352f736d616c6c2e706e67)](https://insight.sensiolabs.com/projects/a735dceb-683c-4195-bd27-af676ca50a05)
=======================================================================================================================================================================================================================================================================================================================================================================================================

[](#jqueryajaxbundle--)

---

[![Build Status](https://camo.githubusercontent.com/c3eece37bd2b6cbfeeae431da49abd290677b8a4f8b48e5699bb9431bd1866ee/68747470733a2f2f7472617669732d63692e6f72672f4b6e704c6162732f4b6e7052616442756e646c652e706e673f6272616e63683d646576656c6f70)](https://travis-ci.org/kernel64/JQueryAjaxBundle) [![Scrutinizer Code Quality](https://camo.githubusercontent.com/8597da5cce1a607a583b476c6bdd5278e7d52351da415bcb1ea6742a41e4e7dc/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6b65726e656c36342f4a5175657279416a617842756e646c652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/kernel64/JQueryAjaxBundle/?branch=master)[![GitHub issues](https://camo.githubusercontent.com/c03a79ac294907c7897eccc02c90c2130e2a48e04eb01ee4c0e85c9e58f38c7f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f6b65726e656c36342f4a5175657279416a617842756e646c652e737667)](https://github.com/kernel64/JQueryAjaxBundle/issues)[![GitHub stars](https://camo.githubusercontent.com/9e4b91a82d627956a9331ce59ecc8791f305b1b73dad12c49b47d2d39d7e8889/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f6b65726e656c36342f4a5175657279416a617842756e646c652e737667)](https://github.com/kernel64/JQueryAjaxBundle/stargazers)[![GitHub license](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](https://raw.githubusercontent.com/kernel64/JQueryAjaxBundle/master/LICENSE)

JQueryAjaxBundle for Symfony2.

Install
-------

[](#install)

To install this bundle on your project, add this line to composer.json file:

```
   "mabs/jquery-ajax-bundle": "~1.0"
```

This bundle add two Twig functions:

\##1 - ja\_request:

To generate a js code to send an ajax request:

```
  {{ ja_request({'update': '#reponse', 'url': path('new')  }) }}
```

or

```
{{ ja_request({'update': '#reponse', 'url': path('new'), 'after': 'alert("after");', 'before': 'alert("before");', 'complete': 'alert("complete");'  }) }}
```

=&gt;

```
  $.ajax({ url: "/app_dev.php/new", type: "POST", dataType: "html",beforeSend: function(){alert("before");},success: function( data ){$( "#reponse" ).html(data);alert("after");}});
```

\##2 - ja\_link:

To generate a link:

```
  {{ ja_link({'update': '#reponse', 'url': path('new'), 'text': 'new link'  }) }}
```

To add a confirm action on click, you just have to use 'confirm': true, by default the text is "Are you sure you want to perform this action?" then if you want to replace it, use 'confirm\_msg': "\*\*\*".

You can also use those parameters 'before' and 'after' to execute JS code.

\##3 - License

This bundle is available under the [MIT license](LICENSE).

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 98.2% 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 ~82 days

Total

2

Last Release

4468d ago

### Community

Maintainers

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

---

Top Contributors

[![kernel64](https://avatars.githubusercontent.com/u/1070435?v=4)](https://github.com/kernel64 "kernel64 (55 commits)")[![bmustapha](https://avatars.githubusercontent.com/u/6073593?v=4)](https://github.com/bmustapha "bmustapha (1 commits)")

---

Tags

symfonytwigajaxjQyuery

### Embed Badge

![Health badge](/badges/mabs-jquery-ajax-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/mabs-jquery-ajax-bundle/health.svg)](https://phpackages.com/packages/mabs-jquery-ajax-bundle)
```

###  Alternatives

[tales-from-a-dev/twig-tailwind-extra

A Twig extension for Tailwind

34802.1k9](/packages/tales-from-a-dev-twig-tailwind-extra)[yellowskies/qr-code-bundle

Symfony Barcode &amp; QR Code Generator Bundle with Twig extension

36682.9k](/packages/yellowskies-qr-code-bundle)[cg/kint-bundle

This bundle lets you use the Kint function in your Twig templates. Kint is a print\_r() replacement which produces a structured, collapsible and escaped output

22125.8k1](/packages/cg-kint-bundle)[boekkooi/jquery-validation-bundle

Jquery form validation bundle for symfony 2

2773.9k1](/packages/boekkooi-jquery-validation-bundle)

PHPackages © 2026

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