PHPackages                             tomjn/composerpress - 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. tomjn/composerpress

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

tomjn/composerpress
===================

Takes stock of a local install and generates a composer.json

8706[3 issues](https://github.com/tomjn/composerpress/issues)PHPCI passing

Since Mar 11Pushed 1y ago8 watchersCompare

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

READMEChangelogDependenciesVersions (2)Used By (0)

Composerpress
=============

[](#composerpress)

Retroactively attempts to create a `composer.json` for a WordPress site. On activation, a `composer.json` menu appears in the admin area under the Tools menu. This page shows what composerpress thinks a `composer.json` that will generate a website close or identical to the site the plugin is installed on might look like.

Includes support for detecting/reverse engineering composer packages via:

- [packagist](https://packagist.org/)
- [wpackagist](https://wpackagist.org/)\*
- private [mercurial](https://en.wikipedia.org/wiki/Mercurial) repositories
- private [git](https://en.wikipedia.org/wiki/Git) repositories
- private [svn](https://en.wikipedia.org/wiki/Apache_Subversion) repositories
- non-composer plugins residing in git/svn/mercurial repositories

---

### Installation Notes

[](#installation-notes)

Install as a regular plugin and then run `composer install` on the `wp-content/plugins/composerpress` plugin folder to install dependencies.

For instructions on installing composer: [ see here for \*nix](http://getcomposer.org/doc/00-intro.md#installation-nix) and [here for Windows](http://getcomposer.org/doc/00-intro.md#installation-windows)

---

TODOs:
------

[](#todos)

Currently ComposerPress does not perform any checking with wpackagist [\#2](https://github.com/tomjn/composerpress/issues/2) (or similaries), leaving open these problems:

- when a *TextDomain* doesn't match a *Plugins Name* ?
- when a plugin doesn't match its *Folder Name* ?
- when a *Plugin is Custom to a site* (ie doesn't exist in the wp.org repo)?

### Keep in mind

[](#keep-in-mind)

1. At present, if composerpress can not find the source of a plugin, the choice will fall back on the default "composerpress" (to help you recognize them and act accordingly)
2. If you encounter a false positive try to contact plugin's author and ask them to insert, at least a `Plugin URI:` in the header of the plugin; for example: these two plugins could collide if a URI plugin was not specified:

- `Plugin URI: http://wordpress.org/extend/plugins/wp-less/` that will become something like `wpackagist-plugin/wp-less`
- `Plugin URI: https://github.com/sanchothefat/wp-less/` that will become something like `sanchothefat/wp-less`

3. You can always give an help and contribute... 😄

### Author articles

[](#author-articles)

- [ComposerPress "Brief"](https://tomjn.com/2013/10/01/composerpress/)
- [Wordpress &amp; Composer TLDR](https://tomjn.com/2015/09/03/wordpress-and-composer-tldr/)
- [ComposerPress "Project"](https://tomjn.com/projects/composerpress/)

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance33

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity17

Early-stage or recently created project

 Bus Factor1

Top contributor holds 77.4% 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.

### Community

Maintainers

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

---

Top Contributors

[![tomjn](https://avatars.githubusercontent.com/u/58855?v=4)](https://github.com/tomjn "tomjn (72 commits)")[![Raruto](https://avatars.githubusercontent.com/u/9614886?v=4)](https://github.com/Raruto "Raruto (21 commits)")

### Embed Badge

![Health badge](/badges/tomjn-composerpress/health.svg)

```
[![Health](https://phpackages.com/badges/tomjn-composerpress/health.svg)](https://phpackages.com/packages/tomjn-composerpress)
```

PHPackages © 2026

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