PHPackages                             datatables.net/datatables.net-staterestore - 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. datatables.net/datatables.net-staterestore

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

datatables.net/datatables.net-staterestore
==========================================

The StateRestore extension for DataTables builds on the `stateSave` option within DataTable's core. This allows users to save multiple different states and reload them at any time, not just at initialisation. This is StateRestore for DataTables

1.4.3(9mo ago)02.7k—0%8MITJavaScriptCI passing

Since Feb 14Pushed 7mo ago3 watchersCompare

[ Source](https://github.com/DataTables/Dist-DataTables-StateRestore)[ Packagist](https://packagist.org/packages/datatables.net/datatables.net-staterestore)[ Docs](http://www.datatables.net/)[ RSS](/packages/datatablesnet-datatablesnet-staterestore/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (1)Versions (5)Used By (8)

StateRestore for DataTables
===========================

[](#staterestore-for-datatables)

This is the distribution package for the [StateRestore extension](https://datatables.net/extensions/staterestore) for [DataTables](https://datatables.net/). Only the core software for this library is contained in this package - to be correctly styled, a styling package for StateRestore must also be included. Please see the [npm installation documentation on the DataTables site](https://datatables.net/manual/installation#Node.js-/-NPM) for full details.

The StateRestore extension for DataTables builds on the `stateSave` option within DataTable's core. This allows users to save multiple different states and reload them at any time, not just at initialisation.

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

[](#installation)

### Browser

[](#browser)

To use DataTables with a simple `` tag, rather than using this package, it is recommended that you use the [DataTables download builder](//datatables.net/download) which can create CDN or locally hosted packages for you, will all dependencies satisfied.

### npm

[](#npm)

For installation via npm, yarn and other similar package managers, install this package with your package manager - e.g.:

```
npm install datatables.net
npm install datatables.net-staterestore

```

Then, to load and initialise DataTables and StateRestore in your code use:

```
import DataTable from 'datatables.net';
import 'datatables.net-staterestore'

new DataTable('#myTable', {
    // initialisation options
});

```

Documentation
-------------

[](#documentation)

Full documentation and examples for StateRestore can be found [on the DataTables website](https://datatables.net/extensions/staterestore).

Bug / Support
-------------

[](#bug--support)

Support for DataTables is available through the [DataTables forums](//datatables.net/forums) and [commercial support options](//datatables.net/support) are available.

### Contributing

[](#contributing)

If you are thinking of contributing code to DataTables, first of all, thank you! All fixes, patches and enhancements to DataTables are very warmly welcomed. This repository is a distribution repo, so patches and issues sent to this repo will not be accepted. Instead, please direct pull requests to the [DataTables/StateRestore](http://github.com/DataTables/StateRestore). For issues / bugs, please direct your questions to the [DataTables forums](//datatables.net/forums).

License
-------

[](#license)

This software is released under the [MIT license](//datatables.net/license). You are free to use, modify and distribute this software, but all copyright information must remain.

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance61

Regular maintenance activity

Popularity18

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 96.7% 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 ~190 days

Total

4

Last Release

251d ago

### Community

Maintainers

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

---

Top Contributors

[![AllanJard](https://avatars.githubusercontent.com/u/84905443?v=4)](https://github.com/AllanJard "AllanJard (59 commits)")[![SandyDatatables](https://avatars.githubusercontent.com/u/51116928?v=4)](https://github.com/SandyDatatables "SandyDatatables (2 commits)")

---

Tags

jquerydatatablesstatetablereloadStateRestorestateSave

### Embed Badge

![Health badge](/badges/datatablesnet-datatablesnet-staterestore/health.svg)

```
[![Health](https://phpackages.com/badges/datatablesnet-datatablesnet-staterestore/health.svg)](https://phpackages.com/packages/datatablesnet-datatablesnet-staterestore)
```

###  Alternatives

[datatables.net/datatables.net

DataTables is a plug-in for the jQuery Javascript library. It is a highly flexible tool, based upon the foundations of progressive enhancement, which will add advanced interaction controls to any HTML table. This is jQuery DataTables

56156.5k25](/packages/datatablesnet-datatablesnet)[datatables.net/datatables.net-bs5

DataTables is a plug-in for the jQuery Javascript library. It is a highly flexible tool, based upon the foundations of progressive enhancement, which will add advanced interaction controls to any HTML table. This is DataTables with styling for \[Bootstrap5\](https://getbootstrap.com/)

2185.7k16](/packages/datatablesnet-datatablesnet-bs5)[fedemotta/yii2-widget-datatables

DataTables widget for Yii2

34179.4k1](/packages/fedemotta-yii2-widget-datatables)[datatables.net/datatables.net-bs4

DataTables is a plug-in for the jQuery Javascript library. It is a highly flexible tool, based upon the foundations of progressive enhancement, which will add advanced interaction controls to any HTML table. This is DataTables with styling for \[Bootstrap4\](https://getbootstrap.com/docs/4.6/getting-started/introduction/)

2924.0k15](/packages/datatablesnet-datatablesnet-bs4)[datatables.net/datatables.net-dt

DataTables is a plug-in for the jQuery Javascript library. It is a highly flexible tool, based upon the foundations of progressive enhancement, which will add advanced interaction controls to any HTML table. This is DataTables with styling for \[DataTables\](https://datatables.net/)

1835.1k15](/packages/datatablesnet-datatablesnet-dt)[datatables.net/datatables.net-bs

DataTables is a plug-in for the jQuery Javascript library. It is a highly flexible tool, based upon the foundations of progressive enhancement, which will add advanced interaction controls to any HTML table. This is DataTables with styling for \[Bootstrap\](https://getbootstrap.com/docs/3.3/)

161.4k14](/packages/datatablesnet-datatablesnet-bs)

PHPackages © 2026

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