MCPcopy Index your code
hub / github.com/aliyun/packagist-mirror

github.com/aliyun/packagist-mirror @v1.0.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.0.0 ↗ · + Follow
100 symbols 315 edges 25 files 3 documented · 3%

Browse by type

Functions 81 Types & classes 19
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

English | 简体中文

Alibaba Cloud Packagist Mirror

Go codecov Go Report Card

Alibaba Cloud Packagist Mirror 是阿里云帮助 PHP 开发者加速安装 Composer 依赖包的开源系统。欢迎使用 阿里云 Composer 全量镜像

快速使用

若要运行本系统,请在项目根目录下创建 packagist.yml 文件,并配置以下选项:

为了安全,请不要将 packagist.yml 文件加入版本控制。

REDIS_ADDR: "地址:端口"
REDIS_PASSWORD: "密码"
REDIS_DB: 0

OSS_ACCESS_KEY_ID: "OSS AccessKeyID"
OSS_ACCESS_KEY_SECRET: "OSS AccessKeySecret"
OSS_ENDPOINT: "OSS Endpoint,如:oss-cn-hangzhou.aliyuncs.com"
OSS_BUCKET: "Bucket"

# 为了请求 Dist 不受限制
GITHUB_TOKEN: "Github Token,如:6a023b828b17*****0ab5tgj6ddb3f0ccb3d30e0"

REPO_URL: "同步源地址,如:https://mirrors.aliyun.com/composer/"
API_URL: "变更监测API地址,如:https://packagist.org/"
MIRROR_URL: "镜像网址,如:https://developer.aliyun.com/composer/"
DIST_URL: "ZIP包下载地址,如:https://mirrors.aliyun.com/composer/dists/"
PROVIDER_URL: "Provider 前缀"

BUILD_CACHE: "true"

API_ITERATION_INTERVAL: 5
USER_AGENT: "Alibaba Cloud"

架构

贡献

欢迎网友参与开发,一起让 PHP 社区更加繁荣,提交 Pull Request 之前请阅读贡献指南

问题

提交 Issue,不符合指南的问题可能会立即关闭。

发行说明

每个版本的详细更改记录在发行说明中。

相关

许可证

Apache-2.0

Copyright (c) 2009-present, Alibaba Cloud All rights reserved.

Core symbols most depended-on inside this repo

Shape

Function 57
Method 24
Struct 18
TypeAlias 1

Languages

Go100%

Modules by API surface

util/mirror.go16 symbols
util/redis.go12 symbols
util/packagist.go10 symbols
util/github.go6 symbols
util/sync_packages_p1.go5 symbols
util/packagist_test.go5 symbols
util/util.go4 symbols
util/sync_packages_v2.go4 symbols
util/logger.go4 symbols
util/config.go4 symbols
util/sync_packages_json.go3 symbols
util/sync_dists.go3 symbols

For agents

$ claude mcp add packagist-mirror \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page