PHPackages                             nswdpc/silverstripe-exit-button - 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. nswdpc/silverstripe-exit-button

ActiveSilverstripe-vendormodule[Utility &amp; Helpers](/categories/utility)

nswdpc/silverstripe-exit-button
===============================

Exit button for pages

v1.2.0(2mo ago)0147[1 PRs](https://github.com/nswdpc/silverstripe-exit-button/pulls)1BSD-3-ClausePHP

Since Jul 11Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/nswdpc/silverstripe-exit-button)[ Packagist](https://packagist.org/packages/nswdpc/silverstripe-exit-button)[ RSS](/packages/nswdpc-silverstripe-exit-button/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (12)Versions (7)Used By (1)

Exit site button
================

[](#exit-site-button)

This Silverstripe module provides an "Exit Button" that can be included on any web page, either via the CMS using the per-page checkbox in Page &gt; Settings, via a shortcode or programmatically.

What it does do
---------------

[](#what-it-does-do)

- provides configurable templates
- provides configurable exit URL, label and 'escape' functionality
- page-level exit support
- provides a shortcode for adding the button to any HTML editor field
- replaces the location value
- opens a configured website in a new tab

What it doesn't do
------------------

[](#what-it-doesnt-do)

- rewrite past browser history
- invalidate a session on the site

Prior to introducing exit functionality, you should be aware of the limitations.

Implementation
--------------

[](#implementation)

1. Add the `{$ExitButton}` template variable in a template (see the Elemental addition to this module for an example) or
2. add an Exit Button shortcode to a relevant HTML editor field

Only add one exit button to a page in a consistent location.

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

[](#documentation)

- [Read the documentation page](./docs/en/001_index.md) for more implementation details

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

[](#installation)

The only supported method of installation is via composer:

```
composer require nswdpc/silverstripe-exit-button

```

License
-------

[](#license)

[BSD-3-Clause](./LICENSE.md)

Maintainers
-----------

[](#maintainers)

PD web team

Bugtracker
----------

[](#bugtracker)

We welcome bug reports, pull requests and feature requests on the Github Issue tracker for this project.

Please review the [code of conduct](./code-of-conduct.md) prior to opening a new issue.

Security
--------

[](#security)

If you have found a security issue with this module, please email digital\[@\]dpc.nsw.gov.au in the first instance, detailing your findings.

Development and contribution
----------------------------

[](#development-and-contribution)

If you would like to make contributions to the module please ensure you raise a pull request and discuss with the module maintainers.

Please review the [code of conduct](./code-of-conduct.md) prior to completing a pull request.

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance86

Actively maintained with recent releases

Popularity14

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

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

Total

3

Last Release

74d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1caefd99092b4a43254e48c40347224f671032ec1ffc3a457e06a7e9ab6e7c02?d=identicon)[nswdpc](/maintainers/nswdpc)

---

Top Contributors

[![JamesDPC](https://avatars.githubusercontent.com/u/69664712?v=4)](https://github.com/JamesDPC "JamesDPC (18 commits)")

---

Tags

silverstripemodulenswexit button

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Rector

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/nswdpc-silverstripe-exit-button/health.svg)

```
[![Health](https://phpackages.com/badges/nswdpc-silverstripe-exit-button/health.svg)](https://phpackages.com/packages/nswdpc-silverstripe-exit-button)
```

###  Alternatives

[symbiote/silverstripe-grouped-cms-menu

Allows you to group CMS menu items.

3696.2k6](/packages/symbiote-silverstripe-grouped-cms-menu)

PHPackages © 2026

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