PHPackages                             programster/js-demo-welcomer - 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. programster/js-demo-welcomer

ActiveLibrary

programster/js-demo-welcomer
============================

Example javascript package

0.1.2(7y ago)014MITJavaScript

Since Jun 17Pushed 7y ago1 watchersCompare

[ Source](https://github.com/programster/package-js-demo-welcomer)[ Packagist](https://packagist.org/packages/programster/js-demo-welcomer)[ Docs](https://blog.programster.org)[ RSS](/packages/programster-js-demo-welcomer/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (4)Used By (0)

This is a demonstration package of how one can use composer for building and distributing Javascript packages. The [implementation demo is here](https://github.com/programster/js-demo-welcomer-implementation).

Installation / Usage
--------------------

[](#installation--usage)

In order to use this packages, one will need to use composer require/install the package as usual:

```
composer require programster/js-demo-welcomer
```

However, yout then probably want to add the following scripts section to your composer.json file in order to have the package automatically install the source code to the `public_html/js` folder. Obviously if you want the sourceelsewhere, you would just update the paths accordingly.

One has to manually add the scripts section themselves because the scripts of the packages themselves are not automatically executed (probably for security). Only the scripts in the root composer.json file are executed.

```
{
    "require": {
        "programster/js-demo-welcomer": "0.1.*"
    },
    "scripts": {
        "post-install-cmd": [
            "rm -f public_html/js/js-demo-welcomer && ln -s ../../vendor/programster/js-demo-welcomer/src public_html/js/js-demo-welcomer"
        ],
        "post-update-cmd": [
            "rm -f public_html/js/js-demo-welcomer && ln -s ../../vendor/programster/js-demo-welcomer/src public_html/js/js-demo-welcomer"
        ]
    }
}
```

For this package, a full example composer.json file would be as follows:

```
{
    "require": {
        "programster/js-demo-welcomer": "0.1.*"
    },
    "scripts": {
        "post-install-cmd": [
            "rm -f public_html/js/js-demo-welcomer && ln -s ../../vendor/programster/js-demo-welcomer/src public_html/js/js-demo-welcomer"
        ],
        "post-update-cmd": [
            "rm -f public_html/js/js-demo-welcomer && ln -s ../../vendor/programster/js-demo-welcomer/src public_html/js/js-demo-welcomer"
        ]
    }
}
```

Then you would use this package like so in your source code:

```
...

    var welcomer = new Welcomer("James");
    welcomer.run();

...
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

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

Total

3

Last Release

2884d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/64a048ca8be761aced9419279975a21ef679b71c70d8263bc2fc413a87ad381c?d=identicon)[programster](/maintainers/programster)

---

Top Contributors

[![programster](https://avatars.githubusercontent.com/u/5709838?v=4)](https://github.com/programster "programster (7 commits)")

---

Tags

JSdemohello world

### Embed Badge

![Health badge](/badges/programster-js-demo-welcomer/health.svg)

```
[![Health](https://phpackages.com/badges/programster-js-demo-welcomer/health.svg)](https://phpackages.com/packages/programster-js-demo-welcomer)
```

###  Alternatives

[twbs/bootstrap

The most popular front-end framework for developing responsive, mobile first projects on the web.

174.1k17.6M326](/packages/twbs-bootstrap)[twitter/bootstrap

The most popular front-end framework for developing responsive, mobile first projects on the web.

174.1k1.7M27](/packages/twitter-bootstrap)[almasaeed2010/adminlte

AdminLTE - admin control panel and dashboard that's based on Bootstrap 4

45.3k8.5M140](/packages/almasaeed2010-adminlte)[nnnick/chartjs

Simple HTML5 charts using the canvas element.

67.3k1.1M15](/packages/nnnick-chartjs)[matthiasmullie/minify

CSS &amp; JavaScript minifier, in PHP. Removes whitespace, strips comments, combines files (incl. @import statements and small assets in CSS files), and optimizes/shortens a few common programming patterns.

2.0k30.5M336](/packages/matthiasmullie-minify)[gettext/gettext

PHP gettext manager

70530.2M101](/packages/gettext-gettext)

PHPackages © 2026

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