curl -sS https://getcomposer.org/installer | sudo php \
-- --install-dir=/usr/local/bin --filename=composer
curl -sS https://getcomposer.org/installer | php -- --1
wget https://getcomposer.org/download/2.0.8/composer.phar
{
"packages": [],
"notify": "https://packagist.org/downloads/%package%",
"notify-batch": "https://packagist.org/downloads/",
"providers-url": "/p/%package%$%hash%.json",
"metadata-url": "/p2/%package%.json",
"search": "https://packagist.org/search.json?q=%query%&type=%type%",
"list": "https://packagist.org/packages/list.json",
"providers-api": "https://packagist.org/providers/%package%.json",
"warning": "You are using an outdated version of Composer. Composer 2.0 is now available and you should upgrade. See https://getcomposer.org/2",
"warning-versions": "<1.10.10",
"provider-includes": {
"p/provider-2013$%hash%.json": {
"sha256": "6f5245b8e32c133b033a6b94a94b83e2cff7b4e2f8cb4a95d4d072b445425efc"
},
"p/provider-2014$%hash%.json": {
"sha256": "0dea2415f51bb42f302734a54712bd4fd1ca0b5a5522eef2c9c92a6604de62e1"
},
"p/provider-2015$%hash%.json": {
"sha256": "06445a5bb49da72f05df786b32c37dd8fa3e6018417231e86bbeb64ba1033414"
},
"p/provider-2016$%hash%.json": {
"sha256": "ea39fcc510e033d534321c6c38b1177c1395714f1bd2f88b4776122329b436a9"
},
"p/provider-2017$%hash%.json": {
"sha256": "b5d475e06468b9012a6abda77b95bf8c0c810caf846171d6e600b233eb32cadd"
},
"p/provider-2018$%hash%.json": {
"sha256": "2d7203c374d27212c21282e88fcd3821b5ff087104e820f698fa31a4bba986a8"
},
"p/provider-2019$%hash%.json": {
"sha256": "024c8665fd16738a6939297ca3e1ca3ddd09e8de25a71acfbd606d26b9db39b0"
},
"p/provider-2020-01$%hash%.json": {
"sha256": "37d36a410488b0740d74779344042d5faa827446248f4900bf10fd32f5904730"
},
"p/provider-2020-04$%hash%.json": {
"sha256": "a1903a10335e83f0a9e6ed56db7d1caec0ba6e643623da93ba980934d3bfa9a7"
},
"p/provider-2020-07$%hash%.json": {
"sha256": "4f7f0f292534aa0d5752d7dcde9c2760e692ba6d3f7b7ac364ea7b852ff08c5f"
},
"p/provider-2020-10$%hash%.json": {
"sha256": "67f6fe48dd03bd2f1c37a3b691454b4ecb5ad57a14ae1b34b7da0e652274bc8e"
},
"p/provider-archived$%hash%.json": {
"sha256": "674180e1623de22ac9cb0e78fd09560149e4971a1c8adc2b85df88846e2fb5cf"
},
"p/provider-latest$%hash%.json": {
"sha256": "9e7775a3cdd179d774e12f88f5def97e92fc41c44a5d0b359b14bcb3c983aacd"
}
}
}
# Application name
APP_NAME='Packagist Mirror'
# Language
APP_COUNTRY_NAME='Brazil'
APP_COUNTRY_CODE='br'
# Folder used to save the files
PUBLIC_DIR=./public
# Sync interval(show in page)
SLEEP=300
# SLEEP=0 Synchronized continuously
# Maintainer information
MAINTAINER_MIRROR='Webysther'
MAINTAINER_PROFILE='https://github.com/Webysther'
MAINTAINER_REPO='https://github.com/Webysther/packagist-mirror'
MAINTAINER_LICENSE='MIT License'
# Main mirror used to get providers
# Official - https://repo.packagist.org
# UK - https://repo-eu-uk-1.packagist.org
MAIN_MIRROR=https://repo.packagist.org
# Pattern to generate the package URIs.
# I.E. packages.drupal.org uses: URI_PATTERN='%s$%s.json'
URI_PATTERN='p/%s$%s.json'
# Timezone
TZ='America/Sao_Paulo'
# https://packagist.co.za
# https://mirrors.aliyun.com/composer
# https://packagist.mirrors.sjtug.sjtu.edu.cn
# https://php.cnpkg.org
# https://mirrors.cloud.tencent.com/composer
# https://packagist.jp
# https://packagist.kr
# https://packagist.com.br
# https://packagist.phpindonesia.id
DATA_MIRROR=https://packagist.co.za,https://mirrors.aliyun.com/composer,https://packagist.mirrors.sjtug.sjtu.edu.cn,https://php.cnpkg.org,https://mirrors.cloud.tencent.com/composer,https://packagist.jp,https://packagist.kr,https://packagist.com.br,https://packagist.phpindonesia.id,https://repo-eu-uk-1.packagist.org
# URI of your mirror
URL=packagist.com.br
# Since your mirror exists
SINCE="Q3'17"
# Max connections by mirror
MAX_CONNECTIONS=25
# Google Analytics
GOOGLE_ANALYTICS_ID=
# Google Analytics, keep this value to have in future stats about packagist-mirror worldwide coverage.
GOOGLE_ANALYTICS_MAIN_ID='UA-58875124-2'
Parallel Solution for Composer V1
CPU | RAM | Disk Spaces | Network Bandwidths |
Support | Control Panel | Budget (per month) (US) |
---|---|---|---|---|---|---|
2 Cores | 4 GB | 80 GB | 100 Mbps | English | WHCMS | $20 |
CPU | RAM | Disk Spaces | Network Bandwidths |
Support | Control Panel | Budget (per month) (US) |
---|---|---|---|---|---|---|
2 Cores | 4 GB | 30 GB | 20 Mbps | 中文 | WHCMS with Customized | $16 |
CPU | RAM | Disk Spaces | Network Traffics |
Support | Control Panel | Budget (per month) (US) |
---|---|---|---|---|---|---|
2 Cores | 4 GB | 50 GB | 1000 GB | 中文 | SolusVM | $30 (付款可以轉帳) |
CPU | RAM | Disk Spaces | Network Bandwidths |
Support | Control Panel | Budget (per month) (US) |
---|---|---|---|---|---|---|
2 Cores | 4 GB | 80 GB | 1 Gbps | English | Customized | $14 |