PHPackages                             fancyguy/webroot-installer - 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. fancyguy/webroot-installer

ActiveComposer-installer[Utility &amp; Helpers](/categories/utility)

fancyguy/webroot-installer
==========================

A composer installer for libraries that live in an application webroot.

1.1.0(13y ago)1311.3M↓55.3%22[5 issues](https://github.com/fancyguy/webroot-installer/issues)15BSD-3-ClausePHP

Since Jan 29Pushed 8y ago6 watchersCompare

[ Source](https://github.com/fancyguy/webroot-installer)[ Packagist](https://packagist.org/packages/fancyguy/webroot-installer)[ Docs](http://fancyguy.github.com/webroot-installer/)[ RSS](/packages/fancyguy-webroot-installer/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (2)Versions (3)Used By (15)

A Webroot [Composer](http://getcomposer.org) Library Installer
==============================================================

[](#a-webroot-composer-library-installer)

[![Build Status](https://camo.githubusercontent.com/e29ed9eb7a9d47b2374bafcd81337c75d38f11e85a25e1d92db3a21b7b504462/68747470733a2f2f7472617669732d63692e6f72672f66616e63796775792f776562726f6f742d696e7374616c6c65722e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/fancyguy/webroot-installer)

This is for PHP packages that support composer to configure in their `composer.json`. It will allow a root package to define a webroot directory and webroot package and magically install it in the correct location.

Example `composer.json` File
----------------------------

[](#example-composerjson-file)

```
{
    "name": "fancyguy/www-fancyguy-com",
    "description": "Package to build www.fancyguy.com",
    "authors": [
        {
            "name": "Steve Buzonas",
            "email": "steve@fancyguy.com"
        }
    ],
    "repositories": [
        {
            "type": "package",
            "package": {
                "name": "wordpress/wordpress",
                "type": "webroot",
                "version": "4.5.1",
                "dist": {
                    "type": "zip",
                    "url": "https://wordpress.org/wordpress-4.5.1-no-content.zip"
                },
                "require": {
                    "fancyguy/webroot-installer": "^1.0"
                }
            }
        }
    ],
    "require": {
        "wordpress/wordpress": "4.5.*"
    },
    "extra": {
        "webroot-dir": "content",
        "webroot-package": "wordpress/wordpress"
    }
}
```

This would install the defined `wordpress/wordpress` package in the `content` directory of the project.

Warning
-------

[](#warning)

Setting the `webroot-dir` to a non-empty directory will delete the contents in most cases. It is recommended to use a clean target within your project directory.

###  Health Score

44

—

FairBetter than 90% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity54

Moderate usage in the ecosystem

Community24

Small or concentrated contributor base

Maturity64

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

Total

2

Last Release

4858d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7665fd9c27ba8192951c9c097213b9ecf9fd4c16b5383719da9b3947bb871594?d=identicon)[sbuzonas](/maintainers/sbuzonas)

---

Top Contributors

[![sbuzonas](https://avatars.githubusercontent.com/u/1659267?v=4)](https://github.com/sbuzonas "sbuzonas (10 commits)")

---

Tags

composercomposer-installerphp

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/fancyguy-webroot-installer/health.svg)

```
[![Health](https://phpackages.com/badges/fancyguy-webroot-installer/health.svg)](https://phpackages.com/packages/fancyguy-webroot-installer)
```

###  Alternatives

[php-di/invoker

Generic and extensible callable invoker

26764.7M69](/packages/php-di-invoker)

PHPackages © 2026

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