#!/bin/bash
# Composer 镜像配置 - 阿里云
# 由 镜像加速站 自动生成

echo "正在配置 Composer 镜像源..."

# 全局配置
composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/

# 验证配置
echo "\n当前配置："
composer config -g repo.packagist

echo "\n✅ Composer 镜像源已成功配置为 阿里云"
echo "如需恢复官方源，执行: composer config -g --unset repos.packagist"