PHPackages                             10quality/wpmvc-addon-resources - 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. 10quality/wpmvc-addon-resources

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

10quality/wpmvc-addon-resources
===============================

WordPress MVC add-on resources (common assets).

v1.0.6(2d ago)03.1k1[1 issues](https://github.com/10quality/wpmvc-addon-resources/issues)[1 PRs](https://github.com/10quality/wpmvc-addon-resources/pulls)2MITJavaScriptPHP &gt;=5.4.0CI failing

Since Apr 14Pushed 3y ago2 watchersCompare

[ Source](https://github.com/10quality/wpmvc-addon-resources)[ Packagist](https://packagist.org/packages/10quality/wpmvc-addon-resources)[ RSS](/packages/10quality-wpmvc-addon-resources/feed)WikiDiscussions master Synced yesterday

READMEChangelog (6)Dependencies (6)Versions (8)Used By (2)

WordPress MVC add-on resources
==============================

[](#wordpress-mvc-add-on-resources)

[![Latest Stable Version](https://camo.githubusercontent.com/d17db9d93abf6db3be5412d5784a53ab7a0fa3d1754f03d14ffc9ac2b3aa8666/68747470733a2f2f706f7365722e707567782e6f72672f31307175616c6974792f77706d76632d6164646f6e2d7265736f75726365732f762f737461626c65)](https://packagist.org/packages/10quality/wpmvc-addon-resources)[![Total Downloads](https://camo.githubusercontent.com/4e30f93964e1152f4590a9bc7938ef8e8913dd4aeef989f1691cc6f80ebab426/68747470733a2f2f706f7365722e707567782e6f72672f31307175616c6974792f77706d76632d6164646f6e2d7265736f75726365732f646f776e6c6f616473)](https://packagist.org/packages/10quality/wpmvc-addon-resources)[![License](https://camo.githubusercontent.com/d6fab3d10fc9a6dd644a38b477c7c563e74a1b4790e3bce5047f62ba654885b9/68747470733a2f2f706f7365722e707567782e6f72672f31307175616c6974792f77706d76632d6164646f6e2d7265736f75726365732f6c6963656e7365)](https://packagist.org/packages/10quality/wpmvc-addon-resources)

This package provides resources (in the form of assets) that may be shared by different add-ons or WordPress MVC projects.

Setup
-----

[](#setup)

### Via composer

[](#via-composer)

Install the package via composer:

```
composer install 10quality/wpmvc-addon-resources --no-plugins
```

### Via composer.json

[](#via-composerjson)

Add this package as your add-on dependencies (`"require"`):

```
{
    "require": {
        "10quality/wpmvc-addon-resources": "1.0.*"
    },
}
```

And run:

```
composer update --no-plugins
```

Resources
---------

[](#resources)

- [Font Awesome v4](https://fontawesome.com/v4.7.0/) (css and fonts).
- [Select2](https://select2.org/) (js, css and i18n) and initializer script.
- [Spectrum colorpicker](https://bgrins.github.io/spectrum/) (js, css and i18n) and initializer script.
- [Datetimepicker](https://xdsoft.net/jqplugins/datetimepicker/) (js and css) and initializer script.
- [jQuery UI Datepicker](https://jqueryui.com/datepicker/) (css) and initializer script.
- [WP Media uploader](https://github.com/10quality/wp-media-uploader) (js) and scripts.
- **Radio group** (custom css).
- **Choose** (custom css).
- **Switch** (custom js and css).
- **Hide/show** (custom js).
- **Repeater** (custom js).

Usage
-----

[](#usage)

This package provides 2 global functions:

### wpmvc\_register\_addon\_resource

[](#wpmvc_register_addon_resource)

`wpmvc_register_addon_resource()` is used to register the asset.

```
wpmvc_register_addon_resource( $resource_id );
```

And:

`wpmvc_enqueue_addon_resource()` is used to force enqueue the asset.

```
wpmvc_enqueue_addon_resource( $resource_id );
```

### Resources list

[](#resources-list)

Resource IDDescriptionType`font-awesome`Hide and show resources.*css*`select2`Select2 resources.*css*, *js*`spectrum`Spectrum colorpicker resources.*css*, *js*`datetimepicker`jQuery datetimepicker resources.*css*, *js*`jquery-ui-datepicker`jQuery UI datepicker resources.*css*`wp-media-uploader`WordPress media uploader resources.*js*`wpmvc-hideshow`Hide and show resources.*js*`wpmvc-repeater`Repeater resources (depends on `wpmvc-hideshow`).*css*, *js*`wpmvc-choose`Choose resources.*css*`wpmvc-radio`Redio group resources.*css*`wpmvc-switch`Redio group resources.*css*, *js*`wpmvc-select2`Select2 implementation resources (depends on `select2`).*css*, *js*`wpmvc-colorpicker`Colorpicker implementation resources (depends on `spectrum`).*js*`wpmvc-datepicker`Datepicker implementation resources (depends on `jquery-ui-datepicker`).*js*`wpmvc-datetimepicker`Datetimepicker implementation resources (depends on `datetimepicker`).*js*`wpmvc-media`Media implementation resources (depends on `wp-media-uploader`).*css*, *js*Samples:

```
add_action( 'wp_enqueue_scripts', function() {

    wpmvc_register_addon_resource( 'font-awesome' );
    wpmvc_register_addon_resource( 'select2' );
    wpmvc_register_addon_resource( 'wpmvc-select2' );

} );
```

Or:

```
add_action( 'wp_enqueue_scripts', function() {

    wpmvc_enqueue_addon_resource( 'font-awesome' );
    wpmvc_register_addon_resource( 'select2' );
    wpmvc_enqueue_addon_resource( 'wpmvc-select2' );

} );
```

You can also use regular WordPress enqueue functions after the resources have been registered:

```
wp_enqueue_style( 'font-awesome' );
wp_enqueue_style( 'wpmvc-select2' );
wp_enqueue_script( 'wpmvc-select2' );
```

Coding Guidelines
-----------------

[](#coding-guidelines)

PSR-2 coding guidelines.

License
-------

[](#license)

MIT License. (c) 2020 [10 Quality](https://www.10quality.com/).

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance55

Moderate activity, may be stable

Popularity19

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity56

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

Recently: every ~552 days

Total

7

Last Release

2d ago

### Community

Maintainers

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

---

Top Contributors

[![amostajo](https://avatars.githubusercontent.com/u/1645908?v=4)](https://github.com/amostajo "amostajo (31 commits)")

---

Tags

wordpressmvcassetsresourcesaddonwpmvc

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/10quality-wpmvc-addon-resources/health.svg)

```
[![Health](https://phpackages.com/badges/10quality-wpmvc-addon-resources/health.svg)](https://phpackages.com/packages/10quality-wpmvc-addon-resources)
```

###  Alternatives

[maba/webpack-bundle

Bundle to Integrate Webpack to Symfony

123268.2k4](/packages/maba-webpack-bundle)

PHPackages © 2026

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