PHPackages                             vojtech-dobes/nette-ajax-history - 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. [Framework](/categories/framework)
4. /
5. vojtech-dobes/nette-ajax-history

ActiveLibrary[Framework](/categories/framework)

vojtech-dobes/nette-ajax-history
================================

Adds History API support for Nette Framework.

2.0.0(11y ago)30181.3k↓60.9%29[11 issues](https://github.com/vojtech-dobes/history.nette.ajax.js/issues)[4 PRs](https://github.com/vojtech-dobes/history.nette.ajax.js/pulls)2MITPHPPHP &gt;=5.3.1

Since Mar 4Pushed 4y ago6 watchersCompare

[ Source](https://github.com/vojtech-dobes/history.nette.ajax.js)[ Packagist](https://packagist.org/packages/vojtech-dobes/nette-ajax-history)[ Docs](https://github.com/vojtech-dobes/history.nette.ajax.js)[ RSS](/packages/vojtech-dobes-nette-ajax-history/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (1)Versions (3)Used By (2)

History Extension
=================

[](#history-extension)

Adds History API support to nette.ajax.js addon for Nette Framework!

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

[](#installation)

1. Link `client-side/history.ajax.js` after `nette.ajax.js`.
2. Load PHP files with Composer: `vojtech-dobes/nette-ajax-history`
3. Register config extension in your configuration:

```
extensions:
	ajaxHistory: VojtechDobes\NetteAjax\HistoryExtension

```

Usage
-----

[](#usage)

Write your application as normal. All redirects and forwards will be properly handled.

To correctly update UI, use snippets. If you plan to ajaxify whole application, consider adding this snippet to your `beforeRender()` method in `BasePresenter`.

```
if ($this->isAjax()) {
	$this->invalidateControl('title');
	$this->invalidateControl('content');
}
```

And `app/@layout.latte` might be upgraded accordingly:

```
...
```

```
{snippet content}
{include content}
{/snippet}
```

### Disabling

[](#disabling)

If you want specific links or forms exclude from scope of this addon (not make them update the URL), you can use `data-ajax-off` feature of *nette.ajax.js*.

```

```

UI Caching
----------

[](#ui-caching)

Extension will automatically cache your UI and restore it on *Back* and *Forward* buttons without communication with server. If you wish to call server on every *Back* and *Forward*, turn caching off.

```
$.nette.ext('history').cache = false;
```

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity44

Moderate usage in the ecosystem

Community25

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 80.6% 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 ~319 days

Total

2

Last Release

4186d ago

Major Versions

1.0.0 → 2.0.02015-01-17

### Community

Maintainers

![](https://www.gravatar.com/avatar/920689f25a0fc31b2807556eddd47203f33c4318893bce98818cf2f3e627ee8e?d=identicon)[vojtechdobes](/maintainers/vojtechdobes)

---

Top Contributors

[![vojtech-dobes](https://avatars.githubusercontent.com/u/415925?v=4)](https://github.com/vojtech-dobes "vojtech-dobes (29 commits)")[![jiripudil](https://avatars.githubusercontent.com/u/1042159?v=4)](https://github.com/jiripudil "jiripudil (2 commits)")[![enumag](https://avatars.githubusercontent.com/u/539462?v=4)](https://github.com/enumag "enumag (1 commits)")[![vysinsky](https://avatars.githubusercontent.com/u/3693578?v=4)](https://github.com/vysinsky "vysinsky (1 commits)")[![zipper](https://avatars.githubusercontent.com/u/3872371?v=4)](https://github.com/zipper "zipper (1 commits)")[![ne0-cz](https://avatars.githubusercontent.com/u/4149446?v=4)](https://github.com/ne0-cz "ne0-cz (1 commits)")[![hranicka](https://avatars.githubusercontent.com/u/3034538?v=4)](https://github.com/hranicka "hranicka (1 commits)")

---

Tags

netteajaxnette.ajax.js

### Embed Badge

![Health badge](/badges/vojtech-dobes-nette-ajax-history/health.svg)

```
[![Health](https://phpackages.com/badges/vojtech-dobes-nette-ajax-history/health.svg)](https://phpackages.com/packages/vojtech-dobes-nette-ajax-history)
```

###  Alternatives

[flame/modules

Nette modules on the Steroids

1361.9k3](/packages/flame-modules)

PHPackages © 2026

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