pkg.sopackage field notes

brew / 排名 315

使用 Homebrew 安装 composer

查看 composer 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

代理安全

代理安全回答

composer manages PHP dependencies and package publishing workflows.

凭据访问

Reads auth.json, repository tokens, environment variables, and project config.

远程变更

Can install packages and run scripts that affect remote systems.

发布/制品风险

Can publish packages or build deployable PHP artifacts.

推荐控制

Gate scripts, publish operations, and credentialed repository access.

代理使用指南

Allow dependency inspection; require approval for scripts, publishes, and private-repo credentials.

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install composer

provider-native install command

概览

软件包摘要

Dependency Manager for PHP

命令和别名

  • composer

历史

项目历史与用法

Composer is the standard dependency manager for PHP projects. It lets projects declare library dependencies, resolves installable versions, and installs packages into the project rather than acting like a system package manager.

项目历史

Composer was created by Nils Adermann and Jordi Boggiano and released under the MIT license. Official documentation describes it as inspired by npm and Bundler, bringing per-project dependency resolution and installation to PHP. Packagist serves as the public package index for Composer packages.

采用历史

Packagist records `composer/composer` package versions starting with 1.0.0-alpha1 in 2012, and GitHub releases include 1.0.0-alpha1 in 2013. The official README points users to Packagist for public packages and to Private Packagist for private hosting, showing how Composer became both a CLI and a package ecosystem.

使用方式

Normal Composer usage starts with a project `composer.json`, produces a lock file for reproducible installs, and installs dependencies into `vendor`. It can be installed locally as a PHAR, globally on PATH, through Docker, or through OS package managers such as Homebrew.

为什么软件包爱好者会关心

Composer is package-manager infrastructure, not just a CLI. Its resolver, lock file, Packagist integration, authentication model, and VCS support made PHP packages installable with dependency constraints in a way familiar to users of npm, Bundler, and other language package managers.

时间线

  • 2012: Packagist records `composer/composer` 1.0.0-alpha1.
  • 2013: GitHub releases include Composer 1.0.0-alpha1.
  • 2016: Composer 1.0.0 was released.
  • 2020: Composer 2.0.0 was released.
  • 2026: Packagist continues to track active Composer 2.x development.

Related projects

  • Composer is closely tied to Packagist, Private Packagist, PHP's PHAR distribution model, and language package managers such as npm and Bundler that influenced its design.

安全态势

风险级别:orange

infrastructure mutation or orchestration signal.

风险分类器

orange 风险 · 中 置信度 · infrastructure

原因

  • infrastructure mutation or orchestration signal

信号

  • text:dependency manager

安装行为

  • 未记录 Homebrew bottle 元数据。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

local files

Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.

Credential files

Credential-bearing paths to review before unattended agent runs.

macOS
~/Library/Application Support/Composer/auth.json
Unix
$XDG_CONFIG_HOME/composer/auth.json~/.composer/auth.json

可执行文件

已安装的可执行文件

命令类型暴露范围备注
composer可执行文件已索引可执行文件从本地可执行文件索引发现。

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-08-03
管理器版本2.10.2
管理器更新时间2026-07-01
本地数据未知
上游不可用
检测到的最新版本未检测到
  • OK没有生成新鲜度警告。

安装元数据

软件包元数据

软件包键brew:composer
版本2.10.2
软件包管理器Homebrew
主页https://getcomposer.org/
最后更新2026-07-01T13:09:12Z
Pulseupdated
Bottle未记录
服务未声明

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • curated agent safety answer
  • curated configuration and credential file locations
  • curated package history
  • pkgdb category and tag curation