PHPackages                             marshung/js-lib - 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. marshung/js-lib

ActiveJs-lib[Utility &amp; Helpers](/categories/utility)

marshung/js-lib
===============

Javascript extension library

0.2.2(7y ago)029[2 issues](https://github.com/marshung24/js-lib/issues)MITJavaScript

Since Sep 16Pushed 6y agoCompare

[ Source](https://github.com/marshung24/js-lib)[ Packagist](https://packagist.org/packages/marshung/js-lib)[ Docs](https://github.com/marshung24/js-lib)[ RSS](/packages/marshung-js-lib/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (1)Versions (7)Used By (0)

Javascript extension library
============================

[](#javascript-extension-library)

> Mars's Javascript Library Packages

[![Latest Stable Version](https://camo.githubusercontent.com/da03283d1d51aa421b617a78428a09c30266c7132c4ad48d5041c5a4782e5414/68747470733a2f2f706f7365722e707567782e6f72672f6d61727368756e672f6a732d6c69622f762f737461626c65)](https://packagist.org/packages/marshung/js-lib) [![Total Downloads](https://camo.githubusercontent.com/c7e110627be3c067640437f0cd739d7eee804ea7f2a92efa56e23ea8f3c1f15c/68747470733a2f2f706f7365722e707567782e6f72672f6d61727368756e672f6a732d6c69622f646f776e6c6f616473)](https://packagist.org/packages/marshung/js-lib) [![Latest Unstable Version](https://camo.githubusercontent.com/4f692341c1e309b51a1b892d6ee8b41d96ee112d65b2ba35a9b4bd9e21bf516f/68747470733a2f2f706f7365722e707567782e6f72672f6d61727368756e672f6a732d6c69622f762f756e737461626c65)](https://packagist.org/packages/marshung/js-lib) [![License](https://camo.githubusercontent.com/db37b2b21bfa7c46c9043a7f250f247a0fa03c3a493783f67750972e13e1ea93/68747470733a2f2f706f7365722e707567782e6f72672f6d61727368756e672f6a732d6c69622f6c6963656e7365)](https://packagist.org/packages/marshung/js-lib)

Outline
=======

[](#outline)

- [Installation](#Installation)
- [Dependency](#Dependency)
- [Usage](#Usage)

[Installation](#Outline)
========================

[](#installation)

Composer Install
----------------

[](#composer-install)

### Download and Copy

[](#download-and-copy)

Manually download the specified js library and copy it into the path

### General installation

[](#general-installation)

```
$ composer require marshung/js-lib

```

### Custom path installation

[](#custom-path-installation)

1. Edit the local composer.json, and add following code:

```
{
    "require": {
        "oomphinc/composer-installers-extender": "^1.1",
    },
    "extra": {
    "installer-types": ["js-lib"],
    "installer-paths": {
      "path/{$vendor}/{$name}/": ["type:js-lib"]
    }
  }
}

```

2. Run composer install

```
$ composer require marshung/js-lib

```

> - See: [composer-installers-extender](https://github.com/oomphinc/composer-installers-extender)
> - Available variable：{$vendor}, {$name}, {$type}
> - Judgment method：
>     1. By name \["marshung/js-lib"\]
>     2. By type \["type:js-lib"\]

[Dependency](#Outline)
======================

[](#dependency)

Popover Button
--------------

[](#popover-button)

- jquery-1.12
- bootstrap 3.3

[Usage](#Outline)
=================

[](#usage)

Popover Button init
-------------------

[](#popover-button-init)

**HTML Code**

```

```

**Javascript Code**

```
var options = {
    title : '是否刪除？',
    schema : [ {
      value : 'yes',
      text : '是',
      style : 'btn-primary'
    }, {
      value : 'no',
      text : '否',
      style : 'btn-danger'
    }, {
      value : 'note',
      text : '說明',
      style : 'btn-default'
    } ],
    callback : function(value, data, parameter) {
      console.log(value, data)
    }
  };

$app = app.Popover Button($('.selector'), options);
```

Popover Button destroy
----------------------

[](#popover-button-destroy)

**Javascript Code**

```
$app.destroy();
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community6

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

Recently: every ~45 days

Total

6

Last Release

2616d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/34496839?v=4)[MarsHung](/maintainers/marshung24)[@marshung24](https://github.com/marshung24)

---

Top Contributors

[![marshung24](https://avatars.githubusercontent.com/u/34496839?v=4)](https://github.com/marshung24 "marshung24 (16 commits)")

### Embed Badge

![Health badge](/badges/marshung-js-lib/health.svg)

```
[![Health](https://phpackages.com/badges/marshung-js-lib/health.svg)](https://phpackages.com/packages/marshung-js-lib)
```

###  Alternatives

[zenorocha/clipboardjs

Modern copy to clipboard. No Flash. Just 3kb gzipped https://clipboardjs.com

34.2k218.2k2](/packages/zenorocha-clipboardjs)[droptica/droopler-project

Project template for Droopler with Composer

5010.0k](/packages/droptica-droopler-project)[thunder/thunder-project

Project template for Thunder projects with composer

1039.4k](/packages/thunder-thunder-project)[wingsuit-designsystem/wingsuit-kickstarter

Starterkit for Wingsuit and Layout Builder.

131.2k](/packages/wingsuit-designsystem-wingsuit-kickstarter)

PHPackages © 2026

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