PHPackages                             elegantthemes/github-archive-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. elegantthemes/github-archive-installer

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

elegantthemes/github-archive-installer
======================================

A custom Composer installer that will install a dependency from a GitHub release archive .zip file when installing from distribution.

2.1.3(4y ago)044GPL-2.0-or-laterPHP

Since Feb 5Pushed 4y agoCompare

[ Source](https://github.com/elegantthemes/github-archive-installer)[ Packagist](https://packagist.org/packages/elegantthemes/github-archive-installer)[ RSS](/packages/elegantthemes-github-archive-installer/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (2)Versions (8)Used By (0)

GitHub Archive Installer
========================

[](#github-archive-installer)

A custom Composer installer that will install a dependency from a GitHub release archive .zip file when installing from distribution.

Why You Need It
---------------

[](#why-you-need-it)

It is very common that you might have a number of development only files in your code library source files. Unless explicitly installing from source, you generally don't need to have development only files in your final distribution. You may also want to perform some specific build steps such as building some production-ready JavaScript files. This installer allows you to keep generated code out of your repository while still being able to reliably deliver it in your final distribution.

Using a tool like Travis CI, you can automate the build of your final distribution and automatically attach the generated .zip file to the release on GitHub. Then, using this installer, you can easily configure your library to install the generated .zip file when installing as `dist` in Composer.

How it Works
------------

[](#how-it-works)

Any package with a direct dependency on `elegantthemes/github-archive-installer` and a valid stable version number being installed from distribution will be installed from the GitHub archive `.zip` file associated with a specific release.

For example, if my Composer package is named `elegantthemes/hello-world` then my generated .zip file should be named `hello-world.zip` in order to be properly installed using this installer.

This installer only changes the `distUrl` for the package in Composer. It doesn't override any existing installers that work based off of the `type` property in your `composer.json` file. For example, if you have a package of type `wordpress-plugin` your package would still install in the correct location in WordPress. However, when installing from `dist` it would simply pull from the .zip file attached to your GitHub release.

Options
-------

[](#options)

The following options can be included in `composer.json` to customize how the dist download URL is generated

OptionDescriptionDefault ValueExampleextra.dist-url-override.org-nameGitHub org/user nameThe part of the composer package name before the "/".elegantthemesextra.dist-url-override.repo-nameGitHub repo nameThe part of the composer package name after the "/".github-archive-installerextra.dist-url-override.file-nameGitHub release file name. If included, the pattern `` will be replaced with the current version.`${repo-name}.zip`github-archive-installer.zipThe generated dist download URL will look like this: `https://github.com/${org-name}/${repo-name}/releases/download/${version}/${filename}`

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 72.7% 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 ~171 days

Recently: every ~2 days

Total

7

Last Release

1619d ago

Major Versions

1.1 → 2.02021-11-24

### Community

Maintainers

![](https://www.gravatar.com/avatar/4e8ced4a3ccff2b6839ae64b6e01266bb3da7dcbd5d0d391a1886029e7feac13?d=identicon)[elegantthemes](/maintainers/elegantthemes)

---

Top Contributors

[![lots0logs](https://avatars.githubusercontent.com/u/4675662?v=4)](https://github.com/lots0logs "lots0logs (8 commits)")[![wpscholar](https://avatars.githubusercontent.com/u/890951?v=4)](https://github.com/wpscholar "wpscholar (2 commits)")[![Jronk](https://avatars.githubusercontent.com/u/1163441?v=4)](https://github.com/Jronk "Jronk (1 commits)")

### Embed Badge

![Health badge](/badges/elegantthemes-github-archive-installer/health.svg)

```
[![Health](https://phpackages.com/badges/elegantthemes-github-archive-installer/health.svg)](https://phpackages.com/packages/elegantthemes-github-archive-installer)
```

###  Alternatives

[vaimo/composer-patches

Applies a patch from a local or remote file to any package that is part of a given composer project. Patches can be defined both on project and on package level. Optional support for patch versioning, sequencing, custom patch applier configuration and patch command for testing/troubleshooting added patches.

2994.3M14](/packages/vaimo-composer-patches)[mglaman/composer-drupal-lenient

1317.4M15](/packages/mglaman-composer-drupal-lenient)[drupal/core-composer-scaffold

A flexible Composer project scaffold builder.

5341.9M440](/packages/drupal-core-composer-scaffold)[drupal/core-project-message

Adds a message after Composer installation.

2122.6M172](/packages/drupal-core-project-message)[olvlvl/composer-attribute-collector

A convenient and near zero-cost way to retrieve targets of PHP 8 attributes

184108.8k8](/packages/olvlvl-composer-attribute-collector)[lullabot/drainpipe

An automated build tool to allow projects to have a set standardized operations scripts.

41716.4k2](/packages/lullabot-drainpipe)

PHPackages © 2026

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