PHPackages                             wpbp/backbone-modal-view - 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. wpbp/backbone-modal-view

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

wpbp/backbone-modal-view
========================

Add on a button a Backbone Modal View with a list for WordPress

1.0.2(9y ago)21516GPL-3.0PHP

Since Feb 13Pushed 9y ago1 watchersCompare

[ Source](https://github.com/WPBP/Backbone-Modal-View)[ Packagist](https://packagist.org/packages/wpbp/backbone-modal-view)[ Docs](https://github.com/WPBP/Backbone-Modal-View)[ RSS](/packages/wpbp-backbone-modal-view/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (3)DependenciesVersions (4)Used By (0)

Backbone-Modal-View
===================

[](#backbone-modal-view)

[![License](https://camo.githubusercontent.com/1b0c7e4911720d0444c16a1ffd145a039f14a1a7305362ab51184f757a4dd6bc/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d47504c25323076332d626c75652e737667)](http://www.gnu.org/licenses/gpl-3.0)[![Downloads](https://camo.githubusercontent.com/1944b49fc02e2dff52ef6d1678708008bb91053d7911165259a3610d70245fb7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f777062702f6261636b626f6e652d6d6f64616c2d766965772e737667)](https://camo.githubusercontent.com/1944b49fc02e2dff52ef6d1678708008bb91053d7911165259a3610d70245fb7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f777062702f6261636b626f6e652d6d6f64616c2d766965772e737667)

Add on a button a Backbone Modal View with a list

What?
=====

[](#what)

Do you want a modal with search included withoout develop in Javascript?
This code is very simple, is generated a button that you can print or return where you prefer that will open a modal view.
You have only to define the output of the list (HTML) and the AJAX call where save the element checked.
Check the code example and try it to understand how can save so much your precious time!

The example code in the class, save the checked element as a string separated by ', ' in an user field.

Example
-------

[](#example)

[![Screenshot](https://cloud.githubusercontent.com/assets/403283/22898704/983785c0-f228-11e6-8550-0a746a4b7ad0.gif)](https://cloud.githubusercontent.com/assets/403283/22898704/983785c0-f228-11e6-8550-0a746a4b7ad0.gif)

```
new BB_Modal_View( array(
			'id' => 'test', // ID of the modal view
			'hook' => 'admin_notices', // Where return or print the button
			'input' => 'checkbox', // Or radio
			'label' => __( 'Open Modal' ), // Button text
			'data' => array( 'rand' => rand() ), // Array of custom datas
			'ajax' => array( $this, 'ajax_posts' ), // Ajax function for the list to show on the modal
			'ajax_on_select' => array( $this, 'ajax_posts_selected' ), // Ajax function to execute on Select button
			'echo_button' => true // Do you want echo the button in the hook chosen or only return?
		));
```

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity65

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

Total

3

Last Release

3377d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/403283?v=4)[Daniele Scasciafratte](/maintainers/Mte90)[@Mte90](https://github.com/Mte90)

---

Top Contributors

[![Mte90](https://avatars.githubusercontent.com/u/403283?v=4)](https://github.com/Mte90 "Mte90 (14 commits)")

---

Tags

backbonebackbone-modalwordpresswordpressbackbone

### Embed Badge

![Health badge](/badges/wpbp-backbone-modal-view/health.svg)

```
[![Health](https://phpackages.com/badges/wpbp-backbone-modal-view/health.svg)](https://phpackages.com/packages/wpbp-backbone-modal-view)
```

###  Alternatives

[tgmpa/tgm-plugin-activation

TGM Plugin Activation is a PHP library that allows you to easily require or recommend plugins for your WordPress themes (and plugins).

1.8k227.8k13](/packages/tgmpa-tgm-plugin-activation)[aristath/kirki

Extending the WordPress customizer

1.3k73.1k4](/packages/aristath-kirki)[afragen/git-updater

A plugin to automatically update GitHub, Bitbucket, GitLab, or Gitea hosted plugins, themes, and language packs.

3.3k1.7k](/packages/afragen-git-updater)[tacowordpress/tacowordpress

WordPress custom post types that feel like CRUD models

232.2k](/packages/tacowordpress-tacowordpress)

PHPackages © 2026

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