PHPackages                             pantheon-se/go-composer - 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. pantheon-se/go-composer

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

pantheon-se/go-composer
=======================

Installs Go into vendor/bin

1.0.1(3y ago)034MITPHPPHP &gt;=7.1

Since Apr 14Pushed 3y ago9 watchersCompare

[ Source](https://github.com/Pantheon-SE/go-composer)[ Packagist](https://packagist.org/packages/pantheon-se/go-composer)[ Docs](https://github.com/pantheon-se/go-composer)[ RSS](/packages/pantheon-se-go-composer/feed)WikiDiscussions 1.x Synced 1mo ago

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

[![License](https://camo.githubusercontent.com/30c3345994efb230fa321b56c5edf3d62d44c94dc935583afbd9b8f7c499ca03/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f70616e7468656f6e2d73652f676f2d636f6d706f736572)](LICENSE) [![Packagist Version](https://camo.githubusercontent.com/05c03b6e120e1750a76df5466f24e5380aa180d1150e4a3911e03daf2dcc2726/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f70616e7468656f6e2d73652f676f2d636f6d706f736572)](https://packagist.org/packages/pantheon-se/go-composer) [![Tests](https://github.com/pantheon-se/go-composer/actions/workflows/test.yml/badge.svg?branch=1.x)](https://github.com/Pantheon-SE/go-composer/actions)

Go Composer
===========

[](#go-composer)

> Composer Plugin to install other utilities via Composer with Go.

Based on [node-composer by mariusbuescher](https://github.com/mariusbuescher/node-composer), this Composer plugin will install a version of Go into your vendor/bin directory so that they are available to use during your Composer builds. This plugin helps automate the download of the binaries which are linked to the bin-directory specified in your composer.json.

Once installed, you can then use Go in your composer-scripts.

Setup
-----

[](#setup)

Simply install the plugin, and the latest Go will be installed - **no other configurations are necessary**. Optionally, you can specify the `go-version` in your composer.json extra configs to declare a specific version of Go.

**Example composer.json**

```
{
  "name": "my/project",
  "type": "project",
  "license": "MIT",
  "require": {
    "pantheon-se/go-composer": "*"
  },
  "extra": {
    "pantheon-se": {
      "go-composer": {
        "go-version": true
      }
    }
  },
  "config": {
    "allow-plugins": {
      "pantheon-se/go-composer": true
    }
  }
}
```

Configuration
-------------

[](#configuration)

There are three parameters you can configure:

- Go version (`go-version`)
- The download url template for the Go binary archives (`go-download-url`).

In the Node download url, replace the following placeholders with your specific needs:

- version: `${version}`
- type of your os: `${osType}`
- system architecture: `${architecture}`
- file format `${format}`

**Example composer.json with specific versions of Go**

```
{
  "extra": {
    "pantheon-se": {
      "go-composer": {
        "go-version": "1.20.2",
        "go-download-url": "https://go.dev/dl/go${version}.${osType}-${architecture}.${format}"
      }
    }
  }
}
```

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity42

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

Total

4

Last Release

1119d ago

Major Versions

0.0.1 → 1.0.02023-04-14

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1759794?v=4)[Kyle Taylor](/maintainers/kyletaylored)[@kyletaylored](https://github.com/kyletaylored)

---

Top Contributors

[![kyletaylored](https://avatars.githubusercontent.com/u/1759794?v=4)](https://github.com/kyletaylored "kyletaylored (6 commits)")

---

Tags

phpgo

### Embed Badge

![Health badge](/badges/pantheon-se-go-composer/health.svg)

```
[![Health](https://phpackages.com/badges/pantheon-se-go-composer/health.svg)](https://phpackages.com/packages/pantheon-se-go-composer)
```

###  Alternatives

[liborm85/composer-vendor-cleaner

Composer Vendor Cleaner removes unnecessary development files and directories from vendor directory.

35342.7k1](/packages/liborm85-composer-vendor-cleaner)[vaimo/composer-changelogs

Provide information about package changes based on changelog files that are bundled with releases; provide tools for generating documentation files from changelog sources

11150.5k10](/packages/vaimo-composer-changelogs)

PHPackages © 2026

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