From e7cecbe356bc8e52062547555016833fbce259d4 Mon Sep 17 00:00:00 2001 From: YuCheng Hu Date: Tue, 1 Dec 2026 13:15:20 -0500 Subject: [PATCH 1/3] Update LIC --- LICENSE | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/LICENSE b/LICENSE index 6993463..161fe64 100644 --- a/LICENSE +++ b/LICENSE @@ -1,9 +1,21 @@ MIT License -Copyright (c) 2024 iSharkFly-Docs +Copyright (c) 2026 iSharkFly.Com -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. -- 2.54.0 From ba7dc360f22f051d4e2aa41cda6f23da89afdbc4 Mon Sep 17 00:00:00 2001 From: YuCheng Hu Date: Tue, 1 Dec 2026 13:21:50 -0500 Subject: [PATCH 2/3] =?UTF-8?q?=E5=BD=93=E5=89=8D=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E5=B7=B2=E6=94=B9=E6=88=90=E4=B8=8E=20Angular-iSharkFly-Com=20?= =?UTF-8?q?=E7=9B=B8=E5=90=8C=E7=9A=84=E7=BB=93=E6=9E=84=EF=BC=9AVitePress?= =?UTF-8?q?=20=E6=9E=84=E5=BB=BA=EF=BC=8C=E4=B8=AD=E8=8B=B1=E5=8F=8C?= =?UTF-8?q?=E8=AF=AD=EF=BC=8CJenkins=20=E9=83=A8=E7=BD=B2=E5=88=B0=20Cloud?= =?UTF-8?q?flare=E3=80=82=E6=9C=AC=E5=9C=B0=E6=9E=84=E5=BB=BA=E9=80=9A?= =?UTF-8?q?=E8=BF=87=EF=BC=8C=E4=B8=AD=E6=96=87=E5=92=8C=E8=8B=B1=E6=96=87?= =?UTF-8?q?=E5=90=84=2034=20=E9=A1=B5=E3=80=82=E5=85=B7=E4=BD=93=E5=81=9A?= =?UTF-8?q?=E6=B3=95=E5=8F=82=E7=85=A7=E4=BA=86=E5=B7=B2=E7=BB=8F=E6=94=B9?= =?UTF-8?q?=E8=BF=87=E7=9A=84=20Docsify-iSharkFly-Com=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 17 + .nojekyll | 0 .vitepress/config.mts | 292 +++ .../components/NavBarLanguageSwitcher.vue | 71 + .../components/NavScreenLanguageSwitcher.vue | 85 + .../theme/components/UntranslatedNotice.vue | 35 + .vitepress/theme/custom.css | 17 + .vitepress/theme/index.ts | 12 + .vitepress/theme/languageSwitcher.ts | 58 + Jenkinsfile | 157 ++ README.md | 95 +- _sidebar.md | 11 - .../handling-private-packages-with-satis.md | 202 -- cn-introduction/articles/troubleshooting.md | 153 -- ...-unbound-version-constraints-a-bad-idea.md | 21 - en-back/00-intro.md | 171 -- en-back/01-basic-usage.md | 207 --- en-back/02-libraries.md | 212 --- en-back/03-cli.md | 701 ------- en-back/05-repositories.md | 667 ------- en-back/06-config.md | 189 -- en-back/07-community.md | 35 - en-back/articles/aliases.md | 100 - .../handling-private-packages-with-satis.md | 200 -- en-back/articles/plugins.md | 160 -- en-back/articles/scripts.md | 133 -- en-back/articles/troubleshooting.md | 153 -- en-back/articles/vendor-binaries.md | 113 -- en-back/dev/DefaultPolicy.md | 55 - .../_images/Eclipse-Temurin-JDK.png | Bin 75490 -> 0 bytes fhir-in-action/_images/php-install-04.png | Bin 41750 -> 0 bytes fhir-in-action/_images/php-install-05.png | Bin 15841 -> 0 bytes fhir-in-action/_images/php-install-06.png | Bin 43940 -> 0 bytes fhir-in-action/_sidebar.md | 9 - fhir-in-action/index.md | 37 - fhir-in-action/introduction/fhir-dev-guide.md | 411 ----- .../introduction/fhir-mplementation.md | 104 -- fhir-in-action/introduction/fhir-overview.md | 80 - fhir-in-action/introduction/index.md | 10 - .../introduction/open-data-is-coming.md | 339 ---- fhir-in-action/introduction/toreader.md | 53 - fhir-in-action/naming_conventions.md | 14 - glossary.md | 23 - i18n/TRANSLATION-GUIDE.md | 52 + {cn-introduction => i18n/zh}/00-intro.md | 0 .../zh}/01-basic-usage.md | 3 +- {cn-introduction => i18n/zh}/02-libraries.md | 0 {cn-introduction => i18n/zh}/03-cli.md | 0 {cn-introduction => i18n/zh}/04-schema.md | 0 .../zh}/05-repositories.md | 0 .../zh/08-community.md | 0 .../zh}/articles/aliases.md | 0 .../zh}/articles/custom-installers.md | 0 .../zh}/articles/plugins.md | 0 .../zh}/articles/scripts.md | 0 .../zh}/articles/vendor-binaries.md | 0 ...ckage-to-a-custom-path-for-my-framework.md | 0 ...the-dependencies-in-my-vendor-directory.md | 0 ...ng-comparisons-and-wildcards-a-bad-idea.md | 0 ...-composer-load-repositories-recursively.md | 0 i18n/zh/index.md | 48 + index.html | 61 - package.json | 5 - scripts/generate.mjs | 46 + scripts/import-composer.mjs | 167 ++ scripts/nav.json | 154 ++ scripts/sync-zh.mjs | 161 ++ src/00-intro.md | 206 +++ src/01-basic-usage.md | 286 +++ src/02-libraries.md | 266 +++ src/03-cli.md | 1632 +++++++++++++++++ {en-back => src}/04-schema.md | 614 +++++-- src/05-repositories.md | 1054 +++++++++++ src/06-config.md | 1467 +++++++++++++++ src/07-runtime.md | 178 ++ src/08-community.md | 36 + src/articles/aliases.md | 113 ++ .../authentication-for-private-packages.md | 561 ++++++ src/articles/autoloader-optimization.md | 111 ++ src/articles/caching.md | 236 +++ .../composer-platform-dependencies.md | 77 + .../articles/custom-installers.md | 62 +- src/articles/handling-private-packages.md | 134 ++ src/articles/plugins.md | 393 ++++ src/articles/repository-priorities.md | 95 + src/articles/resolving-merge-conflicts.md | 162 ++ src/articles/scripts.md | 507 +++++ src/articles/troubleshooting.md | 454 +++++ src/articles/vendor-binaries.md | 170 ++ src/articles/versions.md | 260 +++ {cn-introduction => src}/dev/DefaultPolicy.md | 24 +- ...ckage-to-a-custom-path-for-my-framework.md | 19 +- ...ow-to-install-composer-programmatically.md | 53 + ...ow-to-install-untrusted-packages-safely.md | 48 + .../how-to-use-composer-behind-a-proxy.md | 106 ++ ...the-dependencies-in-my-vendor-directory.md | 13 +- ...mbering-system-does-composer-itself-use.md | 4 + ...-unbound-version-constraints-a-bad-idea.md | 12 +- ...ng-comparisons-and-wildcards-a-bad-idea.md | 8 +- ...-composer-load-repositories-recursively.md | 13 +- src/index.md | 48 + wrangler.jsonc | 44 + 102 files changed, 10703 insertions(+), 4862 deletions(-) delete mode 100644 .nojekyll create mode 100644 .vitepress/config.mts create mode 100644 .vitepress/theme/components/NavBarLanguageSwitcher.vue create mode 100644 .vitepress/theme/components/NavScreenLanguageSwitcher.vue create mode 100644 .vitepress/theme/components/UntranslatedNotice.vue create mode 100644 .vitepress/theme/custom.css create mode 100644 .vitepress/theme/index.ts create mode 100644 .vitepress/theme/languageSwitcher.ts create mode 100644 Jenkinsfile delete mode 100644 _sidebar.md delete mode 100644 cn-introduction/articles/handling-private-packages-with-satis.md delete mode 100644 cn-introduction/articles/troubleshooting.md delete mode 100644 cn-introduction/faqs/why-are-unbound-version-constraints-a-bad-idea.md delete mode 100644 en-back/00-intro.md delete mode 100644 en-back/01-basic-usage.md delete mode 100644 en-back/02-libraries.md delete mode 100644 en-back/03-cli.md delete mode 100644 en-back/05-repositories.md delete mode 100644 en-back/06-config.md delete mode 100644 en-back/07-community.md delete mode 100644 en-back/articles/aliases.md delete mode 100644 en-back/articles/handling-private-packages-with-satis.md delete mode 100644 en-back/articles/plugins.md delete mode 100644 en-back/articles/scripts.md delete mode 100644 en-back/articles/troubleshooting.md delete mode 100644 en-back/articles/vendor-binaries.md delete mode 100644 en-back/dev/DefaultPolicy.md delete mode 100644 fhir-in-action/_images/Eclipse-Temurin-JDK.png delete mode 100644 fhir-in-action/_images/php-install-04.png delete mode 100644 fhir-in-action/_images/php-install-05.png delete mode 100644 fhir-in-action/_images/php-install-06.png delete mode 100644 fhir-in-action/_sidebar.md delete mode 100644 fhir-in-action/index.md delete mode 100644 fhir-in-action/introduction/fhir-dev-guide.md delete mode 100644 fhir-in-action/introduction/fhir-mplementation.md delete mode 100644 fhir-in-action/introduction/fhir-overview.md delete mode 100644 fhir-in-action/introduction/index.md delete mode 100644 fhir-in-action/introduction/open-data-is-coming.md delete mode 100644 fhir-in-action/introduction/toreader.md delete mode 100644 fhir-in-action/naming_conventions.md delete mode 100644 glossary.md create mode 100644 i18n/TRANSLATION-GUIDE.md rename {cn-introduction => i18n/zh}/00-intro.md (100%) rename {cn-introduction => i18n/zh}/01-basic-usage.md (98%) rename {cn-introduction => i18n/zh}/02-libraries.md (100%) rename {cn-introduction => i18n/zh}/03-cli.md (100%) rename {cn-introduction => i18n/zh}/04-schema.md (100%) rename {cn-introduction => i18n/zh}/05-repositories.md (100%) rename cn-introduction/06-community.md => i18n/zh/08-community.md (100%) rename {cn-introduction => i18n/zh}/articles/aliases.md (100%) rename {cn-introduction => i18n/zh}/articles/custom-installers.md (100%) rename {cn-introduction => i18n/zh}/articles/plugins.md (100%) rename {cn-introduction => i18n/zh}/articles/scripts.md (100%) rename {cn-introduction => i18n/zh}/articles/vendor-binaries.md (100%) rename {cn-introduction => i18n/zh}/faqs/how-do-i-install-a-package-to-a-custom-path-for-my-framework.md (100%) rename {cn-introduction => i18n/zh}/faqs/should-i-commit-the-dependencies-in-my-vendor-directory.md (100%) rename {cn-introduction => i18n/zh}/faqs/why-are-version-constraints-combining-comparisons-and-wildcards-a-bad-idea.md (100%) rename cn-introduction/faqs/why-can't-composer-load-repositories-recursively.md => i18n/zh/faqs/why-cant-composer-load-repositories-recursively.md (100%) create mode 100644 i18n/zh/index.md delete mode 100644 index.html delete mode 100644 package.json create mode 100644 scripts/generate.mjs create mode 100644 scripts/import-composer.mjs create mode 100644 scripts/nav.json create mode 100644 scripts/sync-zh.mjs create mode 100644 src/00-intro.md create mode 100644 src/01-basic-usage.md create mode 100644 src/02-libraries.md create mode 100644 src/03-cli.md rename {en-back => src}/04-schema.md (52%) create mode 100644 src/05-repositories.md create mode 100644 src/06-config.md create mode 100644 src/07-runtime.md create mode 100644 src/08-community.md create mode 100644 src/articles/aliases.md create mode 100644 src/articles/authentication-for-private-packages.md create mode 100644 src/articles/autoloader-optimization.md create mode 100644 src/articles/caching.md create mode 100644 src/articles/composer-platform-dependencies.md rename {en-back => src}/articles/custom-installers.md (72%) create mode 100644 src/articles/handling-private-packages.md create mode 100644 src/articles/plugins.md create mode 100644 src/articles/repository-priorities.md create mode 100644 src/articles/resolving-merge-conflicts.md create mode 100644 src/articles/scripts.md create mode 100644 src/articles/troubleshooting.md create mode 100644 src/articles/vendor-binaries.md create mode 100644 src/articles/versions.md rename {cn-introduction => src}/dev/DefaultPolicy.md (77%) rename {en-back => src}/faqs/how-do-i-install-a-package-to-a-custom-path-for-my-framework.md (65%) create mode 100644 src/faqs/how-to-install-composer-programmatically.md create mode 100644 src/faqs/how-to-install-untrusted-packages-safely.md create mode 100644 src/faqs/how-to-use-composer-behind-a-proxy.md rename {en-back => src}/faqs/should-i-commit-the-dependencies-in-my-vendor-directory.md (74%) create mode 100644 src/faqs/which-version-numbering-system-does-composer-itself-use.md rename {en-back => src}/faqs/why-are-unbound-version-constraints-a-bad-idea.md (69%) rename {en-back => src}/faqs/why-are-version-constraints-combining-comparisons-and-wildcards-a-bad-idea.md (76%) rename en-back/faqs/why-can't-composer-load-repositories-recursively.md => src/faqs/why-cant-composer-load-repositories-recursively.md (73%) create mode 100644 src/index.md create mode 100644 wrangler.jsonc diff --git a/.gitignore b/.gitignore index 9f11b75..d04aa02 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,18 @@ .idea/ + +### Node ### +node_modules/ +*.log + +### VitePress ### +# scripts/sync-zh.mjs 生成的站点源文件(由 src/ 和 i18n/zh/ 组装) +/site/ +# scripts/generate.mjs 生成的配置 +/.vitepress/generated/ +/.vitepress/dist/ +/.vitepress/cache/ +/.vitepress/.temp/ +/.vitepress/node_modules/ + +### Cloudflare Wrangler ### +.wrangler/ diff --git a/.nojekyll b/.nojekyll deleted file mode 100644 index e69de29..0000000 diff --git a/.vitepress/config.mts b/.vitepress/config.mts new file mode 100644 index 0000000..390f0f3 --- /dev/null +++ b/.vitepress/config.mts @@ -0,0 +1,292 @@ +import fs from 'node:fs'; +import path from 'node:path'; +import { fileURLToPath } from 'node:url'; +import { defineConfig, type DefaultTheme, type LocaleConfig } from 'vitepress'; + +type GeneratedLocale = { + label: string; + base: string; + sidebar: DefaultTheme.SidebarMulti; +}; + +const siteFile = path.join(path.dirname(fileURLToPath(import.meta.url)), 'generated', 'site.json'); +if (!fs.existsSync(siteFile)) + throw new Error('Run "node scripts/generate.mjs" first. The file .vitepress/generated/site.json is missing.'); +const site: { locales: Record } = JSON.parse(fs.readFileSync(siteFile, 'utf8')); +const rootDir = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..'); +const englishSrcDir = path.join(rootDir, 'src'); + +const EN_PREFIX = '/en'; +const FORUM_URL = 'https://www.isharkfly.com/'; +const SOURCE_URL = 'https://src.sharkdat.com/iSharkFly-Docs/Composer-iSharkFly-Com'; + +// iSharkFly links shown as a dropdown at the end of the nav bar. +function isharkflyNav(zh: boolean): DefaultTheme.NavItem { + return { + text: 'iSharkFly', + items: [ + { text: 'iSharkFly', link: FORUM_URL }, + { text: zh ? '文档导航' : 'Docs Portal', link: 'https://docs.isharkfly.com/' }, + { text: zh ? '本站源码' : 'Source Code', link: SOURCE_URL }, + ], + }; +} + +// Sidebar text (groups and pages) shown on the Chinese site; English text comes from scripts/nav.json. +const zhSidebarText: Record = { + 'Book': '手册', + 'Introduction': '简介', + 'Basic usage': '基本用法', + 'Libraries': '库(资源包)', + 'Command-line interface / Commands': '命令行', + 'The composer.json schema': 'composer.json 架构', + 'Repositories': '资源库', + 'Config': '配置', + 'Runtime Composer utilities': '运行时工具', + 'Community': '社区', + 'Articles': '文章', + 'Aliases': '别名', + 'Authentication for privately hosted packages and repositories': '私有资源包和资源库的身份认证', + 'Autoloader optimization': '自动加载优化', + 'Caching Composer dependencies': '缓存 Composer 依赖', + 'Composer platform dependencies': 'Composer 平台依赖', + 'Setting up and using custom installers': '自定义安装程序', + 'Handling private packages': '处理私有资源包', + 'Setting up and using plugins': '插件', + 'Repository priorities': '资源库优先级', + 'Resolving merge conflicts': '解决合并冲突', + 'Scripts': '脚本', + 'Troubleshooting': '故障排除', + 'Vendor binaries and the vendor/bin directory': '二进制供应库与 vendor/bin 目录', + 'Versions and constraints': '版本与约束', + 'FAQs': '常见问题', + 'How do I install a package to a custom path for my framework?': '如何为我的框架自定义一个资源包安装目录?', + 'How do I install Composer programmatically?': '如何通过程序安装 Composer?', + 'How do I install untrusted packages safely? Is it safe to run Composer as superuser or root?': '如何安全地安装不受信任的资源包?以超级用户或 root 身份运行 Composer 安全吗?', + 'How to use Composer behind a proxy': '如何在代理后使用 Composer', + 'Should I commit the dependencies in my vendor directory?': '我应该提交 vendor 目录中的依赖包吗?', + 'Which version numbering system does Composer itself use?': 'Composer 自身使用哪种版本编号方式?', + 'Why are unbound version constraints a bad idea?': '为什么说无上限的版本约束是坏主意?', + 'Why are version constraints combining comparisons and wildcards a bad idea?': '为什么说“比较符”和“通配符”相结合的版本约束是坏主意?', + 'Why can\'t Composer load repositories recursively?': '为什么 Composer 不递归加载资源库?', + 'Internals': '内部机制', + 'Default Solver Policy': '默认依赖求解策略', +}; + +function enLink(link: string) { + return link.startsWith('/') ? EN_PREFIX + link : link; +} + +function mapSidebar( + sidebar: DefaultTheme.SidebarMulti, + mapLink: (link: string) => string, + mapText: (text: string) => string, +): DefaultTheme.SidebarMulti { + const mapItems = (items: DefaultTheme.SidebarItem[]): DefaultTheme.SidebarItem[] => items.map(item => ({ + ...item, + text: mapText(item.text ?? ''), + ...(item.items ? { items: mapItems(item.items) } : {}), + ...(item.link ? { link: mapLink(item.link) } : {}), + })); + return Object.fromEntries(Object.entries(sidebar).map(([key, value]) => [ + mapLink(key), + Array.isArray(value) ? mapItems(value) : { ...value, base: mapLink(value.base), items: mapItems(value.items) }, + ])); +} + +const zhThemeText: DefaultTheme.Config = { + outline: { level: [2, 3], label: '本页目录' }, + docFooter: { prev: '上一页', next: '下一页' }, + darkModeSwitchLabel: '外观', + lightModeSwitchTitle: '切换到浅色模式', + darkModeSwitchTitle: '切换到深色模式', + sidebarMenuLabel: '菜单', + returnToTopLabel: '回到顶部', + langMenuLabel: '切换语言', + skipToContentLabel: '跳到正文', + notFound: { + title: '页面未找到', + quote: '你要找的页面不存在,或者已经被移动。', + linkLabel: '返回首页', + linkText: '返回首页', + }, + footer: { + message: '基于 MIT 许可证发布。', + copyright: 'Copyright © Nils Adermann, Jordi Boggiano', + }, +}; + +const zhSearchText = { + button: { buttonText: '搜索', buttonAriaLabel: '搜索' }, + modal: { + displayDetails: '显示详细列表', + resetButtonTitle: '清除查询', + backButtonTitle: '关闭搜索', + noResultsText: '没有找到结果', + footer: { + selectText: '选择', + selectKeyAriaLabel: '回车', + navigateText: '切换', + navigateUpKeyAriaLabel: '向上', + navigateDownKeyAriaLabel: '向下', + closeText: '关闭', + closeKeyAriaLabel: 'Esc', + }, + }, +}; + +const zhLocales: LocaleConfig = {}; +const enLocales: LocaleConfig = {}; + +for (const [key, locale] of Object.entries(site.locales)) { + zhLocales[key] = { + label: `简体中文`, + lang: 'zh-CN', + link: locale.base, + title: 'Composer', + description: `Composer 中文文档`, + themeConfig: { + ...zhThemeText, + nav: [ + { text: '手册', link: `${locale.base}00-intro`, activeMatch: `^${locale.base}\\d\\d-` }, + { text: '文章', link: `${locale.base}articles/aliases`, activeMatch: `^${locale.base}articles/` }, + { text: '常见问题', link: `${locale.base}faqs/how-do-i-install-a-package-to-a-custom-path-for-my-framework`, activeMatch: `^${locale.base}faqs/` }, + isharkflyNav(true), + ], + sidebar: mapSidebar(locale.sidebar, link => link, text => zhSidebarText[text] ?? text), + }, + }; + + const enBase = enLink(locale.base); + enLocales[key === 'root' ? 'en' : `en/${key}`] = { + label: `English`, + lang: 'en-US', + link: enBase, + title: 'Composer', + description: `Composer documentation`, + themeConfig: { + nav: [ + { text: 'Book', link: `${enBase}00-intro`, activeMatch: `^${enBase}\\d\\d-` }, + { text: 'Articles', link: `${enBase}articles/aliases`, activeMatch: `^${enBase}articles/` }, + { text: 'FAQs', link: `${enBase}faqs/how-do-i-install-a-package-to-a-custom-path-for-my-framework`, activeMatch: `^${enBase}faqs/` }, + isharkflyNav(false), + ], + sidebar: mapSidebar(locale.sidebar, enLink, text => text), + }, + }; +} + +const locales: LocaleConfig = { ...zhLocales }; +for (const key of Object.keys(enLocales).sort((a, b) => b.length - a.length)) + locales[key] = enLocales[key]; + +function listPages(dir: string, rel = ''): string[] { + if (!fs.existsSync(dir)) + return []; + return fs.readdirSync(dir, { withFileTypes: true }).flatMap(entry => { + const entryRel = rel + entry.name; + if (entry.isDirectory()) { + if (!rel && (['zh', 'en', 'public'].includes(entry.name) || site.locales[entry.name])) + return []; + return listPages(path.join(dir, entry.name), `${entryRel}/`); + } + return entry.name.endsWith('.md') ? [entryRel] : []; + }); +} + +const pagesByLanguage = Object.fromEntries(Object.keys(site.locales).map(key => [ + key, + listPages(key === 'root' ? englishSrcDir : path.join(englishSrcDir, key)), +])); + +export default defineConfig({ + srcDir: 'site', + lang: 'zh-CN', + title: 'Composer', + description: 'Composer 中文文档', + cleanUrls: true, + lastUpdated: false, + ignoreDeadLinks: true, + locales, + head: [ + ['link', { rel: 'icon', href: 'https://getcomposer.org/favicon.ico' }], + // Google Tag Manager + ['script', {}, `(function (w, d, s, l, i) { + w[l] = w[l] || []; + w[l].push({ + 'gtm.start': + new Date().getTime(), event: 'gtm.js' + }); + var f = d.getElementsByTagName(s)[0], + j = d.createElement(s), dl = l != 'dataLayer' ? '&l=' + l : ''; + j.async = true; + j.src = + 'https://www.googletagmanager.com/gtm.js?id=' + i + dl; + f.parentNode.insertBefore(j, f); + })(window, document, 'script', 'dataLayer', 'GTM-W3NL9V');`], + // End Google Tag Manager + ], + markdown: { + theme: { light: 'github-light', dark: 'github-dark' }, + config: md => { + const defaultCodeInline = md.renderer.rules.code_inline!; + md.renderer.rules.code_inline = (tokens, idx, options, env, self) => + defaultCodeInline(tokens, idx, options, env, self).replace(/^ + defaultText(tokens, idx, options, env, self).replace(/\{\{/g, '{{').replace(/\}\}/g, '}}'); + }, + }, + themeConfig: { + logo: 'https://getcomposer.org/img/logo-composer-transparent5.png', + search: { + provider: 'local', + options: { + locales: Object.fromEntries(Object.keys(zhLocales).map(key => [key, { translations: zhSearchText }])), + }, + }, + outline: { level: [2, 3] }, + socialLinks: [ + { icon: 'github', link: 'https://github.com/composer/composer' }, + ], + editLink: undefined, + footer: { + message: 'Released under the MIT License.', + copyright: 'Copyright © Nils Adermann, Jordi Boggiano', + }, + languageSwitcher: { + enPrefix: EN_PREFIX, + pages: pagesByLanguage, + }, + } as DefaultTheme.Config, + vite: { + build: { chunkSizeWarningLimit: 4096 }, + plugins: [ + { + // 文档工具链只安装在 .vitepress/node_modules,项目根目录没有 node_modules。 + // SSR 构建时 site/*.md 会 import "vue" 和 "vue/server-renderer",Vite 从 site/ 向上查找 + // 解析不到(Jenkins 上报 "Rollup failed to resolve import")。SSR 产物在 .vitepress/.temp/ + // 中由 Node 运行,能从 .vitepress/node_modules 加载这些包,所以 SSR 时直接标为 external。 + // 浏览器端构建不受影响:VitePress 已为 "vue" 配置了指向自身依赖的别名。 + name: 'docs-tools-ssr-externals', + enforce: 'pre', + resolveId(id, _importer, options) { + if (options?.ssr && /^(vue|@vue\/[^/]+)(\/.*)?$/.test(id)) + return { id, external: true }; + }, + }, + ], + resolve: { + alias: [ + { + find: /^.*\/VPNavBarTranslations\.vue$/, + replacement: fileURLToPath(new URL('./theme/components/NavBarLanguageSwitcher.vue', import.meta.url)), + }, + { + find: /^.*\/VPNavScreenTranslations\.vue$/, + replacement: fileURLToPath(new URL('./theme/components/NavScreenLanguageSwitcher.vue', import.meta.url)), + }, + ], + }, + }, +}); diff --git a/.vitepress/theme/components/NavBarLanguageSwitcher.vue b/.vitepress/theme/components/NavBarLanguageSwitcher.vue new file mode 100644 index 0000000..a5855cf --- /dev/null +++ b/.vitepress/theme/components/NavBarLanguageSwitcher.vue @@ -0,0 +1,71 @@ + + + + + diff --git a/.vitepress/theme/components/NavScreenLanguageSwitcher.vue b/.vitepress/theme/components/NavScreenLanguageSwitcher.vue new file mode 100644 index 0000000..a1f7575 --- /dev/null +++ b/.vitepress/theme/components/NavScreenLanguageSwitcher.vue @@ -0,0 +1,85 @@ + + + + + diff --git a/.vitepress/theme/components/UntranslatedNotice.vue b/.vitepress/theme/components/UntranslatedNotice.vue new file mode 100644 index 0000000..d0764cc --- /dev/null +++ b/.vitepress/theme/components/UntranslatedNotice.vue @@ -0,0 +1,35 @@ + + + + + diff --git a/.vitepress/theme/custom.css b/.vitepress/theme/custom.css new file mode 100644 index 0000000..362ebf3 --- /dev/null +++ b/.vitepress/theme/custom.css @@ -0,0 +1,17 @@ +:root { + --vp-c-brand-1: #8c5a2b; + --vp-c-brand-2: #a06a37; + --vp-c-brand-3: #6f4621; + --vp-c-brand-soft: rgba(140, 90, 43, 0.14); +} + +.dark { + --vp-c-brand-1: #e0a66b; + --vp-c-brand-2: #cf9050; + --vp-c-brand-3: #b9793b; + --vp-c-brand-soft: rgba(224, 166, 107, 0.16); +} + +.vp-doc img { + display: inline-block; +} diff --git a/.vitepress/theme/index.ts b/.vitepress/theme/index.ts new file mode 100644 index 0000000..1ca247c --- /dev/null +++ b/.vitepress/theme/index.ts @@ -0,0 +1,12 @@ +import { h } from 'vue'; +import DefaultTheme from 'vitepress/theme'; +import type { Theme } from 'vitepress'; +import UntranslatedNotice from './components/UntranslatedNotice.vue'; +import './custom.css'; + +export default { + extends: DefaultTheme, + Layout: () => h(DefaultTheme.Layout, null, { + 'doc-before': () => h(UntranslatedNotice), + }), +} satisfies Theme; diff --git a/.vitepress/theme/languageSwitcher.ts b/.vitepress/theme/languageSwitcher.ts new file mode 100644 index 0000000..06e7a80 --- /dev/null +++ b/.vitepress/theme/languageSwitcher.ts @@ -0,0 +1,58 @@ +import { computed } from 'vue'; +import { useData } from 'vitepress'; + +type SwitcherConfig = { + enPrefix: string; + pages: Record; +}; + +export type SwitcherLink = { text: string; link: string; lang?: string; active: boolean }; + +const READING_LANGUAGES = [ + { key: 'zh', text: '简体中文', lang: 'zh-CN' }, + { key: 'en', text: 'English', lang: 'en-US' }, +] as const; + +function pageUrl(base: string, page: string) { + return base + page.replace(/(^|\/)index\.md$/, '$1').replace(/\.md$/, ''); +} + +export function useLanguageSwitcher() { + const { page, theme, hash } = useData(); + const config = computed(() => theme.value.languageSwitcher as SwitcherConfig); + + const current = computed(() => { + let rest = page.value.relativePath; + const enDir = config.value.enPrefix.replace(/^\//, '') + '/'; + const reading = rest.startsWith(enDir) ? 'en' : 'zh'; + if (reading === 'en') + rest = rest.slice(enDir.length); + return { reading, page: rest }; + }); + + function linkFor(reading: string, keepHash: boolean) { + const base = reading === 'en' ? config.value.enPrefix + '/' : '/'; + const pages = config.value.pages['root'] ?? []; + if (!pages.includes(current.value.page)) + return base; + return pageUrl(base, current.value.page) + (keepHash ? hash.value : ''); + } + + const isZh = computed(() => current.value.reading === 'zh'); + + const readingLanguages = computed(() => READING_LANGUAGES.map(reading => ({ + text: reading.text, + lang: reading.lang, + link: linkFor(reading.key, true), + active: reading.key === current.value.reading, + }))); + + const labels = computed(() => isZh.value + ? { menu: '切换语言', reading: '阅读语言' } + : { menu: 'Change language', reading: 'Language' }); + + const currentLabel = computed(() => + READING_LANGUAGES.find(reading => reading.key === current.value.reading)!.text); + + return { readingLanguages, labels, currentLabel, isZh }; +} diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..0430a95 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,157 @@ +pipeline { + agent any + + options { + ansiColor('xterm') + disableConcurrentBuilds() + // 文档约 70 页(中英文各 34 页),构建约 1 分钟 + timeout(time: 30, unit: 'MINUTES') + } + + tools { + nodejs 'NodeJS 22.14.0' + } + + environment { + PRJ_NAME = 'composer-isharkfly-com' + // 显式指定 wrangler 配置文件 + WRANGLER_CONFIG = 'wrangler.jsonc' + // 与 Angular-iSharkFly-Com 一致,文档工具链单独安装在 .vitepress/node_modules + DOCS_TOOLS = '.vitepress/node_modules' + WRANGLER = '.vitepress/node_modules/.bin/wrangler' + // 发布到线上的分支 + RELEASE_BRANCH = 'main' + // Cloudflare API Token(Jenkins Secret text 凭据,需要 Workers Scripts:Edit 权限) + CLOUDFLARE_API_TOKEN = credentials('sharkdat-cloudflare-api-token') + // Cloudflare Account ID(Secret text 凭据)。设置后 wrangler 不再调用 /memberships 查询账号, + // 避免 token 缺少 Account 读取权限时报 "You may have incorrect permissions on your API token" + CLOUDFLARE_ACCOUNT_ID = credentials('sharkdat-cloudflare-account-id') + // 不让 wrangler 发送使用统计、不弹交互提示 + WRANGLER_SEND_METRICS = 'false' + CI = 'true' + } + + stages { + stage('Configure') { + steps { + sh 'git config --global url."https://github.com/".insteadOf git://github.com/' + sh ''' + set -eu + node --version + npm --version + ''' + } + } + + stage('Install') { + steps { + // 只安装文档工具链(VitePress、Vue、Wrangler) + sh ''' + set -eu + npm install --prefix .vitepress --no-save --no-package-lock --no-audit --no-fund \ + vitepress@1.6.3 vue@3.5.13 wrangler@4.164.0 + ''' + } + } + + stage('Build') { + steps { + echo 'Build VitePress docs ...' + sh ''' + set -eu + node scripts/generate.mjs + node scripts/sync-zh.mjs + node ${DOCS_TOOLS}/vitepress/bin/vitepress.js build . + ''' + } + } + + stage('Deploy - CF') { + steps { + script { + withEnv([ + 'LANG=C.UTF-8', + 'LC_ALL=C.UTF-8', + 'NO_COLOR=1', + 'TERM=dumb' + ]) { + // 部署消息:显示在 Cloudflare 控制台 → Worker → Deployments + def shortSha = env.GIT_COMMIT ? env.GIT_COMMIT.take(7) : 'unknown' + def deployMsg = "Jenkins ${env.JOB_NAME} #${env.BUILD_NUMBER} (${shortSha})" + + // Tag 构建:部署到 production 环境(wrangler.jsonc 中的 env.production) + if (env.TAG_NAME?.trim()) { + sh """ + ${env.WRANGLER} deploy --config ${env.WRANGLER_CONFIG} --env production \ + --message '${deployMsg}' \ + --tag '${env.TAG_NAME}' + """ + return + } + + // main 分支:部署默认 Worker + if (env.BRANCH_NAME == env.RELEASE_BRANCH) { + sh """ + ${env.WRANGLER} deploy --config ${env.WRANGLER_CONFIG} --env="" \ + --message '${deployMsg}' \ + --tag '${shortSha}' + """ + return + } + + // PR 或其他分支:上传 Preview Version,不影响线上流量 + def branchArg = env.CHANGE_ID + ? "pr-${env.CHANGE_ID}" + : env.BRANCH_NAME + + def previewAlias = branchArg + .toLowerCase() + .replaceAll(/[^a-z0-9-]+/, '-') + .replaceAll(/^-+|-+$/, '') + + // 打印当前 token 所属账号,便于排查 "Worker does not yet exist"(通常是账号不对) + sh "${env.WRANGLER} whoami" + + // versions upload 要求 Worker 已存在;首次构建时先 deploy 一次创建 Worker + def workerExists = sh( + script: "${env.WRANGLER} deployments list --config ${env.WRANGLER_CONFIG} --env=\"\" > /dev/null 2>&1", + returnStatus: true + ) == 0 + if (!workerExists) { + echo "Worker ${env.PRJ_NAME} 尚不存在,先执行首次 deploy 创建 Worker ..." + sh """ + ${env.WRANGLER} deploy --config ${env.WRANGLER_CONFIG} --env="" \ + --message 'Initial deploy: ${deployMsg}' + """ + } + + sh """ + ${env.WRANGLER} versions upload --config ${env.WRANGLER_CONFIG} --env="" \ + --preview-alias '${previewAlias}' \ + --message 'Jenkins ${env.JOB_NAME} #${env.BUILD_NUMBER}' + """ + } + } + } + } + } + + post { + always { + script { + env.BUILD_STARTED_AT = new Date(currentBuild.startTimeInMillis) + .format('yyyy-MM-dd HH:mm:ss z', TimeZone.getTimeZone('America/New_York')) + + env.BUILD_DURATION_TEXT = currentBuild.durationString + + emailext ( + mimeType: 'text/html; charset=UTF-8', + subject: "Build ${currentBuild.currentResult}: Job '${env.JOB_NAME} [${env.BUILD_NUMBER}]'", + body: '${DEFAULT_CONTENT}', + from: 'postmaster@mail.sharkdat.com', + to: 'dev@sharkdat.com, dev@sharkdat.cn' + ) + } + } + } +} diff --git a/README.md b/README.md index fb80c38..78b3147 100644 --- a/README.md +++ b/README.md @@ -1,49 +1,66 @@ -composer-doc-cn -=============== +# Composer 中文文档 -Composer 中文文档 +composer.isharkfly.com 站点源码。站点使用 [VitePress](https://vitepress.dev/) 构建,部署到 Cloudflare Workers Static Assets,项目结构与 Angular-iSharkFly-Com 保持一致。 ---- +- 中文(默认):`/<路径>` +- 英文原文:`/en/<路径>` -- 希望更多的朋友能够参与此文档的翻译、勘误(您可以 Fork 本项目,并提交 Pull Request)。 -- 新版本文档翻译缓慢进行中,详见 [1.6分支](https://github.com/5-say/composer-doc-cn/blob/1.6/README.md) -- 当前文档基本不影响新版 Composer 的使用,新文档在结构以及章节内容上做了比较大的调整,针对性的翻译会逐步完善。 -- [中文翻译贡献者名单](/contributors.md) +## 目录结构 ---- +``` +├── src/ 英文原文(来自 Composer 2.11.3 的 doc/,不要手动修改) +├── i18n/ +│ ├── zh/ 中文译文,与 src/ 路径一一对应 +│ └── TRANSLATION-GUIDE.md 翻译规范和术语表 +├── scripts/ +│ ├── import-composer.mjs 从 Composer 仓库导入英文原文、首页和侧边栏(nav.json) +│ ├── nav.json 侧边栏(英文),由 import-composer.mjs 生成 +│ ├── generate.mjs 生成 .vitepress/generated/site.json +│ └── sync-zh.mjs 组装 site/:中文放在根路径,英文放在 site/en/ +├── site/ 构建时生成(git 忽略) +├── .vitepress/ +│ ├── config.mts VitePress 配置 +│ └── theme/ 主题:语言切换、未翻译提示 +├── wrangler.jsonc Cloudflare 部署配置 +└── Jenkinsfile CI:构建并部署到 Cloudflare +``` -## Book -- [简介](/cn-introduction/00-intro.md) -- [基本用法](/cn-introduction/01-basic-usage.md) -- [库(资源包)](/cn-introduction/02-libraries.md) -- [命令行](/cn-introduction/03-cli.md) -- [架构](/cn-introduction/04-schema.md) -- [资源库](/cn-introduction/05-repositories.md) -- [社区](/cn-introduction/06-community.md) +## 本地开发 -## Articles -- [别名](/cn-introduction/articles/aliases.md) -版本分支名称的别名。 -- [自定义安装程序](/cn-introduction/articles/custom-installers.md) -修改某些特殊类型包的安装方式。 -- [Handling Private Packages With Satis](/cn-introduction/articles/handling-private-packages-with-satis.md) -Host your own composer repository -- [插件](/cn-introduction/articles/plugins.md) -修改和扩展 Composer 的功能。 -- [脚本](/cn-introduction/articles/scripts.md) -脚本是指一些 Composer 事件的回调,它们在安装资源包的过程中被触发执行。 -- [Troubleshooting](/cn-introduction/articles/troubleshooting.md) -Solving problems -- [二进制供应库](/cn-introduction/articles/vendor-binaries.md) -从资源包中暴露命令行脚本。 +文档工具链安装在 `.vitepress/node_modules`(与 Jenkins 一致): -## FAQs +```bash +npm install --prefix .vitepress --no-save --no-package-lock vitepress@1.6.3 vue@3.5.13 wrangler@4.164.0 -- [如何为我的框架自定义一个资源包安装目录?](/cn-introduction/faqs/how-do-i-install-a-package-to-a-custom-path-for-my-framework.md) -- [我应该提交 vendor 目录中的依赖包吗?](/cn-introduction/faqs/should-i-commit-the-dependencies-in-my-vendor-directory.md) -- [为什么说“比较符”和“通配符”相结合的版本约束是坏主意?](/cn-introduction/faqs/why-are-version-constraints-combining-comparisons-and-wildcards-a-bad-idea.md) -- [为什么 Composer 不递归加载储存库?](/cn-introduction/faqs/why-can%27t-composer-load-repositories-recursively.md) +node scripts/generate.mjs +node scripts/sync-zh.mjs +node .vitepress/node_modules/vitepress/bin/vitepress.js dev . # 本地预览 +node .vitepress/node_modules/vitepress/bin/vitepress.js build . # 构建到 .vitepress/dist +``` -## 相关文章推荐 +修改 `src/` 或 `i18n/zh/` 后需要重新运行 `sync-zh.mjs`。 -- [PHP 开发者该知道的5个 Composer 小技巧](http://segmentfault.com/a/1190000000355928) +> Windows 下请在盘符为大写的路径中运行(例如 `D:\WorkDir\...`),否则 VitePress 构建会报 `Cannot read properties of undefined (reading 'imports')`。 + +## 更新英文原文 + +```bash +git clone --depth 1 --branch 2.11.3 https://github.com/composer/composer.git /tmp/composer +node scripts/import-composer.mjs /tmp/composer +``` + +导入时会给每个标题加上与 getcomposer.org 一致的锚点 `{#id}`(例如 `03-cli.md#update--u--upgrade`、`#composer_no_dev`),并把文章开头的 `tagline` 注释转为 frontmatter 的 `description`。升级版本后,需要同步更新 `.vitepress/config.mts` 中的侧边栏中文标题(`zhSidebarText`)和 `i18n/zh/index.md`。 + +## 翻译 + +见 [i18n/TRANSLATION-GUIDE.md](i18n/TRANSLATION-GUIDE.md)。部分中文译文来自早期版本的 Composer 文档,需要按新版原文重新翻译。 + +早期译文的贡献者见 [contributors.md](contributors.md)。 + +## 部署 + +Jenkins 多分支流水线(见 `Jenkinsfile`): + +- `main` 分支:部署到 Worker `composer-isharkfly-com` +- Tag:部署到 `production` 环境 +- 其他分支 / PR:上传 Preview 版本 diff --git a/_sidebar.md b/_sidebar.md deleted file mode 100644 index 7f07b2a..0000000 --- a/_sidebar.md +++ /dev/null @@ -1,11 +0,0 @@ -- HIS 医疗数据信息化 - - [Readme](README.md) - - [Contact](CONTACT.md) -- [FHIR In Action](fhir-in-action/index.md) -- [Week 2](week-2/index.md) -- [Week 3](week-3/index.md) -- [Week 4](week-4/_index.md) -- Week 5 -- Week 6 -- Week 7 -- [Links](LINKS.md) \ No newline at end of file diff --git a/cn-introduction/articles/handling-private-packages-with-satis.md b/cn-introduction/articles/handling-private-packages-with-satis.md deleted file mode 100644 index 6988441..0000000 --- a/cn-introduction/articles/handling-private-packages-with-satis.md +++ /dev/null @@ -1,202 +0,0 @@ - - -# 用 Satis 处理私有资源包 - -Satis is a static `composer` repository generator. It is a bit like an ultra- -lightweight, static file-based version of packagist and can be used to host the -metadata of your company's private packages, or your own. It basically acts as -a micro-packagist. You can get it from -[GitHub](http://github.com/composer/satis) or install via CLI: -`composer.phar create-project composer/satis --stability=dev`. - -Satis 是一个静态的 `composer` 代码库生成器。 - -## Setup - -For example let's assume you have a few packages you want to reuse across your -company but don't really want to open-source. You would first define a Satis -configuration: a json file with an arbitrary name that lists your curated -[repositories](../05-repositories.md). - -Here is an example configuration, you see that it holds a few VCS repositories, -but those could be any types of [repositories](../05-repositories.md). Then it -uses `"require-all": true` which selects all versions of all packages in the -repositories you defined. - -The default file Satis looks for is `satis.json` in the root of the repository. - -```json -{ - "name": "My Repository", - "homepage": "http://packages.example.org", - "repositories": [ - { "type": "vcs", "url": "http://github.com/mycompany/privaterepo" }, - { "type": "vcs", "url": "http://svn.example.org/private/repo" }, - { "type": "vcs", "url": "http://github.com/mycompany/privaterepo2" } - ], - "require-all": true -} -``` - -If you want to cherry pick which packages you want, you can list all the packages -you want to have in your satis repository inside the classic composer `require` key, -using a `"*"` constraint to make sure all versions are selected, or another -constraint if you want really specific versions. - -```json -{ - "repositories": [ - { "type": "vcs", "url": "http://github.com/mycompany/privaterepo" }, - { "type": "vcs", "url": "http://svn.example.org/private/repo" }, - { "type": "vcs", "url": "http://github.com/mycompany/privaterepo2" } - ], - "require": { - "company/package": "*", - "company/package2": "*", - "company/package3": "2.0.0" - } -} -``` - -Once you did this, you just run `php bin/satis build `. -For example `php bin/satis build config.json web/` would read the `config.json` -file and build a static repository inside the `web/` directory. - -When you ironed out that process, what you would typically do is run this -command as a cron job on a server. It would then update all your package info -much like Packagist does. - -Note that if your private packages are hosted on GitHub, your server should have -an ssh key that gives it access to those packages, and then you should add -the `--no-interaction` (or `-n`) flag to the command to make sure it falls back -to ssh key authentication instead of prompting for a password. This is also a -good trick for continuous integration servers. - -Set up a virtual-host that points to that `web/` directory, let's say it is -`packages.example.org`. Alternatively, with PHP >= 5.4.0, you can use the built-in -CLI server `php -S localhost:port -t satis-output-dir/` for a temporary solution. - -## Usage - -In your projects all you need to add now is your own composer repository using -the `packages.example.org` as URL, then you can require your private packages and -everything should work smoothly. You don't need to copy all your repositories -in every project anymore. Only that one unique repository that will update -itself. - -```json -{ - "repositories": [ { "type": "composer", "url": "http://packages.example.org/" } ], - "require": { - "company/package": "1.2.0", - "company/package2": "1.5.2", - "company/package3": "dev-master" - } -} -``` - -### Security - -To secure your private repository you can host it over SSH or SSL using a client -certificate. In your project you can use the `options` parameter to specify the -connection options for the server. - -Example using a custom repository using SSH (requires the SSH2 PECL extension): - -```json -{ - "repositories": [ - { - "type": "composer", - "url": "ssh2.sftp://example.org", - "options": { - "ssh2": { - "username": "composer", - "pubkey_file": "/home/composer/.ssh/id_rsa.pub", - "privkey_file": "/home/composer/.ssh/id_rsa" - } - } - } - ] -} -``` - -> **Tip:** See [ssh2 context options](http://www.php.net/manual/en/wrappers.ssh2.php#refsect1-wrappers.ssh2-options) for more information. - -Example using HTTP over SSL using a client certificate: - -```json -{ - "repositories": [ - { - "type": "composer", - "url": "https://example.org", - "options": { - "ssl": { - "local_cert": "/home/composer/.ssl/composer.pem" - } - } - } - ] -} -``` - -> **Tip:** See [ssl context options](http://www.php.net/manual/en/context.ssl.php) for more information. - -### Downloads - -When GitHub or BitBucket repositories are mirrored on your local satis, the build process will include -the location of the downloads these platforms make available. This means that the repository and your setup depend -on the availability of these services. - -At the same time, this implies that all code which is hosted somewhere else (on another service or for example in -Subversion) will not have downloads available and thus installations usually take a lot longer. - -To enable your satis installation to create downloads for all (Git, Mercurial and Subversion) your packages, add the -following to your `satis.json`: - -```json -{ - "archive": { - "directory": "dist", - "format": "tar", - "prefix-url": "https://amazing.cdn.example.org", - "skip-dev": true - } -} -``` - -#### Options explained - - * `directory`: the location of the dist files (inside the `output-dir`) - * `format`: optional, `zip` (default) or `tar` - * `prefix-url`: optional, location of the downloads, homepage (from `satis.json`) followed by `directory` by default - * `skip-dev`: optional, `false` by default, when enabled (`true`) satis will not create downloads for branches - -Once enabled, all downloads (include those from GitHub and BitBucket) will be replaced with a _local_ version. - -#### prefix-url - -Prefixing the URL with another host is especially helpful if the downloads end up in a private Amazon S3 -bucket or on a CDN host. A CDN would drastically improve download times and therefore package installation. - -Example: A `prefix-url` of `http://my-bucket.s3.amazonaws.com` (and `directory` set to `dist`) creates download URLs -which look like the following: `http://my-bucket.s3.amazonaws.com/dist/vendor-package-version-ref.zip`. - - -### Resolving dependencies - -It is possible to make satis automatically resolve and add all dependencies for your projects. This can be used -with the Downloads functionality to have a complete local mirror of packages. Just add the following -to your `satis.json`: - -```json -{ - "require-dependencies": true -} -``` - -When searching for packages, satis will attempt to resolve all the required packages from the listed repositories. -Therefore, if you are requiring a package from Packagist, you will need to define it in your `satis.json`. diff --git a/cn-introduction/articles/troubleshooting.md b/cn-introduction/articles/troubleshooting.md deleted file mode 100644 index 838b761..0000000 --- a/cn-introduction/articles/troubleshooting.md +++ /dev/null @@ -1,153 +0,0 @@ - -# Troubleshooting - -This is a list of common pitfalls on using Composer, and how to avoid them. - -## General - -1. Before asking anyone, run [`composer diagnose`](../03-cli.md#diagnose) to check - for common problems. If it all checks out, proceed to the next steps. - -2. When facing any kind of problems using Composer, be sure to **work with the - latest version**. See [self-update](../03-cli.md#self-update) for details. - -3. Make sure you have no problems with your setup by running the installer's - checks via `curl -sS https://getcomposer.org/installer | php -- --check`. - -4. Ensure you're **installing vendors straight from your `composer.json`** via - `rm -rf vendor && composer update -v` when troubleshooting, excluding any - possible interferences with existing vendor installations or `composer.lock` - entries. - -## Package not found - -1. Double-check you **don't have typos** in your `composer.json` or repository - branches and tag names. - -2. Be sure to **set the right - [minimum-stability](../04-schema.md#minimum-stability)**. To get started or be - sure this is no issue, set `minimum-stability` to "dev". - -3. Packages **not coming from [Packagist](https://packagist.org/)** should - always be **defined in the root package** (the package depending on all - vendors). - -4. Use the **same vendor and package name** throughout all branches and tags of - your repository, especially when maintaining a third party fork and using - `replace`. - -## Package not found on travis-ci.org - -1. Check the ["Package not found"](#package-not-found) item above. - -2. If the package tested is a dependency of one of its dependencies (cyclic - dependency), the problem might be that composer is not able to detect the version - of the package properly. If it is a git clone it is generally alright and Composer - will detect the version of the current branch, but travis does shallow clones so - that process can fail when testing pull requests and feature branches in general. - The best solution is to define the version you are on via an environment variable - called COMPOSER_ROOT_VERSION. You set it to `dev-master` for example to define - the root package's version as `dev-master`. - Use: `before_script: COMPOSER_ROOT_VERSION=dev-master composer install` to export - the variable for the call to composer. - -## Need to override a package version - -Let say your project depends on package A which in turn depends on a specific -version of package B (say 0.1) and you need a different version of that -package - version 0.11. - -You can fix this by aliasing version 0.11 to 0.1: - -composer.json: - -```json -{ - "require": { - "A": "0.2", - "B": "0.11 as 0.1" - } -} -``` - -See [aliases](aliases.md) for more information. - -## Memory limit errors - -If composer shows memory errors on some commands: - -`PHP Fatal error: Allowed memory size of XXXXXX bytes exhausted <...>` - -The PHP `memory_limit` should be increased. - -> **Note:** Composer internally increases the `memory_limit` to `512M`. -> If you have memory issues when using composer, please consider [creating -> an issue ticket](https://github.com/composer/composer/issues) so we can look into it. - -To get the current `memory_limit` value, run: - -```sh -php -r "echo ini_get('memory_limit').PHP_EOL;" -``` - -Try increasing the limit in your `php.ini` file (ex. `/etc/php5/cli/php.ini` for -Debian-like systems): - -```ini -; Use -1 for unlimited or define an explicit value like 512M -memory_limit = -1 -``` - -Or, you can increase the limit with a command-line argument: - -```sh -php -d memory_limit=-1 composer.phar <...> -``` - -## "The system cannot find the path specified" (Windows) - -1. Open regedit. -2. Search for an ```AutoRun``` key inside ```HKEY_LOCAL_MACHINE\Software\Microsoft\Command Processor``` - or ```HKEY_CURRENT_USER\Software\Microsoft\Command Processor```. -3. Check if it contains any path to non-existent file, if it's the case, just remove them. - -## API rate limit and OAuth tokens - -Because of GitHub's rate limits on their API it can happen that Composer prompts -for authentication asking your username and password so it can go ahead with its work. - -If you would prefer not to provide your GitHub credentials to Composer you can -manually create a token using the following procedure: - -1. [Create](https://github.com/settings/applications) an OAuth token on GitHub. -[Read more](https://github.com/blog/1509-personal-api-tokens) on this. - -2. Add it to the configuration running `composer config -g github-oauth.github.com ` - -Now Composer should install/update without asking for authentication. - -## proc_open(): fork failed errors -If composer shows proc_open() fork failed on some commands: - -`PHP Fatal error: Uncaught exception 'ErrorException' with message 'proc_open(): fork failed - Cannot allocate memory' in phar` - -This could be happening because the VPS runs out of memory and has no Swap space enabled. - -```sh -free -m - -total used free shared buffers cached -Mem: 2048 357 1690 0 0 237 --/+ buffers/cache: 119 1928 -Swap: 0 0 0 -``` - -To enable the swap you can use for example: - -```sh -/bin/dd if=/dev/zero of=/var/swap.1 bs=1M count=1024 -/sbin/mkswap /var/swap.1 -/sbin/swapon /var/swap.1 -``` diff --git a/cn-introduction/faqs/why-are-unbound-version-constraints-a-bad-idea.md b/cn-introduction/faqs/why-are-unbound-version-constraints-a-bad-idea.md deleted file mode 100644 index 1834039..0000000 --- a/cn-introduction/faqs/why-are-unbound-version-constraints-a-bad-idea.md +++ /dev/null @@ -1,21 +0,0 @@ -# Why are unbound version constraints a bad idea? - -A version constraint without an upper bound such as `*`, `>=3.4` or -`dev-master` will allow updates to any future version of the dependency. -This includes major versions breaking backward compatibility. - -Once a release of your package is tagged, you cannot tweak its dependencies -anymore in case a dependency breaks BC - you have to do a new release but the -previous one stays broken. - -The only good alternative is to define an upper bound on your constraints, -which you can increase in a new release after testing that your package is -compatible with the new major version of your dependency. - -For example instead of using `>=3.4` you should use `~3.4` which allows all -versions up to `3.999` but does not include `4.0` and above. The `~` operator -works very well with libraries follow [semantic versioning](http://semver.org). - -**Note:** As a package maintainer, you can make the life of your users easier -by providing an [alias version](../articles/aliases.md) for your development -branch to allow it to match bound constraints. diff --git a/en-back/00-intro.md b/en-back/00-intro.md deleted file mode 100644 index d984eb7..0000000 --- a/en-back/00-intro.md +++ /dev/null @@ -1,171 +0,0 @@ -# Introduction - -Composer is a tool for dependency management in PHP. It allows you to declare -the libraries your project depends on and it will manage (install/update) them -for you. - -## Dependency management - -Composer is **not** a package manager in the same sense as Yum or Apt are. Yes, -it deals with "packages" or libraries, but it manages them on a per-project -basis, installing them in a directory (e.g. `vendor`) inside your project. By -default it will never install anything globally. Thus, it is a dependency -manager. - -This idea is not new and Composer is strongly inspired by node's -[npm](https://npmjs.org/) and ruby's [bundler](http://bundler.io/). - -Suppose: - -a) You have a project that depends on a number of libraries. - -b) Some of those libraries depend on other libraries. - -Composer: - -c) Enables you to declare the libraries you depend on. - -d) Finds out which versions of which packages can and need to be installed, and - installs them (meaning it downloads them into your project). - -See the [Basic usage](01-basic-usage.md) chapter for more details on declaring -dependencies. - -## System Requirements - -Composer requires PHP 5.3.2+ to run. A few sensitive php settings and compile -flags are also required, but when using the installer you will be warned about -any incompatibilities. - -To install packages from sources instead of simple zip archives, you will need -git, svn or hg depending on how the package is version-controlled. - -Composer is multi-platform and we strive to make it run equally well on Windows, -Linux and OSX. - -## Installation - Linux / Unix / OSX - -### Downloading the Composer Executable - -Composer offers a convenient installer that you can execute directly from the -commandline. Feel free to [download this file](https://getcomposer.org/installer) -or review it on [GitHub](https://github.com/composer/getcomposer.org/blob/master/web/installer) -if you wish to know more about the inner workings of the installer. The source -is plain PHP. - -There are in short, two ways to install Composer. Locally as part of your -project, or globally as a system wide executable. - -#### Locally - -Installing Composer locally is a matter of just running the installer in your -project directory: - -```sh -curl -sS https://getcomposer.org/installer | php -``` - -> **Note:** If the above fails for some reason, you can download the installer -> with `php` instead: - -```sh -php -r "readfile('https://getcomposer.org/installer');" | php -``` - -The installer will just check a few PHP settings and then download -`composer.phar` to your working directory. This file is the Composer binary. It -is a PHAR (PHP archive), which is an archive format for PHP which can be run on -the command line, amongst other things. - -Now just run `php composer.phar` in order to run Composer. - -You can install Composer to a specific directory by using the `--install-dir` -option and additionally (re)name it as well using the `--filename` option: - -```sh -curl -sS https://getcomposer.org/installer | php -- --install-dir=bin --filename=composer -``` - -Now just run `php bin/composer` in order to run Composer. - -#### Globally - -You can place the Composer PHAR anywhere you wish. If you put it in a directory -that is part of your `PATH`, you can access it globally. On unixy systems you -can even make it executable and invoke it without directly using the `php` -interpreter. - -Run these commands to globally install `composer` on your system: - -```sh -curl -sS https://getcomposer.org/installer | php -mv composer.phar /usr/local/bin/composer -``` - -> **Note:** If the above fails due to permissions, run the `mv` line again -> with sudo. - -A quick copy-paste version including sudo: - -```sh -curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer -``` - -> **Note:** On some versions of OSX the `/usr` directory does not exist by -> default. If you receive the error "/usr/local/bin/composer: No such file or -> directory" then you must create the directory manually before proceeding: -> `mkdir -p /usr/local/bin`. - -> **Note:** For information on changing your PATH, please read the -> [Wikipedia article](https://en.wikipedia.org/wiki/PATH_(variable)) and/or use Google. - -Now just run `composer` in order to run Composer instead of `php composer.phar`. - -## Installation - Windows - -### Using the Installer - -This is the easiest way to get Composer set up on your machine. - -Download and run -[Composer-Setup.exe](https://getcomposer.org/Composer-Setup.exe). It will -install the latest Composer version and set up your PATH so that you can just -call `composer` from any directory in your command line. - -> **Note:** Close your current terminal. Test usage with a new terminal: This is -> important since the PATH only gets loaded when the terminal starts. - -### Manual Installation - -Change to a directory on your `PATH` and run the install snippet to download -`composer.phar`: - -```sh -C:\Users\username>cd C:\bin -C:\bin>php -r "readfile('https://getcomposer.org/installer');" | php -``` - -> **Note:** If the above fails due to readfile, use the `http` url or enable -> php_openssl.dll in php.ini - -Create a new `composer.bat` file alongside `composer.phar`: - -```sh -C:\bin>echo @php "%~dp0composer.phar" %*>composer.bat -``` - -Add the directory to your PATH environment variable if it isn't already. - -Close your current terminal. Test usage with a new terminal: - -```sh -C:\Users\username>composer -V -Composer version 27d8904 -``` - -## Using Composer - -Now that you've installed Composer, you are ready to use it! Head on over to the -next chapter for a short and simple demonstration. - -[Basic usage](01-basic-usage.md) → diff --git a/en-back/01-basic-usage.md b/en-back/01-basic-usage.md deleted file mode 100644 index b33f06a..0000000 --- a/en-back/01-basic-usage.md +++ /dev/null @@ -1,207 +0,0 @@ -# Basic usage - -## Introduction - -For our basic usage introduction, we will be installing `monolog/monolog`, -a logging library. If you have not yet installed Composer, refer to the -[Intro](00-intro.md) chapter. - -> **Note:** for the sake of simplicity, this introduction will assume you -> have performed a [local](00-intro.md#locally) install of Composer. - -## `composer.json`: Project Setup - -To start using Composer in your project, all you need is a `composer.json` -file. This file describes the dependencies of your project and may contain -other metadata as well. - -### The `require` Key - -The first (and often only) thing you specify in `composer.json` is the -[`require`](04-schema.md#require) key. You're simply telling Composer which -packages your project depends on. - -```json -{ - "require": { - "monolog/monolog": "1.0.*" - } -} -``` - -As you can see, [`require`](04-schema.md#require) takes an object that maps -**package names** (e.g. `monolog/monolog`) to **version constraints** (e.g. -`1.0.*`). - -### Package Names - -The package name consists of a vendor name and the project's name. Often these -will be identical - the vendor name just exists to prevent naming clashes. It -allows two different people to create a library named `json`, which would then -just be named `igorw/json` and `seldaek/json`. - -Here we are requiring `monolog/monolog`, so the vendor name is the same as the -project's name. For projects with a unique name this is recommended. It also -allows adding more related projects under the same namespace later on. If you -are maintaining a library, this would make it really easy to split it up into -smaller decoupled parts. - -### Package Versions - -In the previous example we were requiring version -[`1.0.*`](http://semver.mwl.be/#?package=monolog%2Fmonolog&version=1.0.*) of -Monolog. This means any version in the `1.0` development branch. It is the -equivalent of saying versions that match `>=1.0 <1.1`. - -Version constraints can be specified in several ways, read -[versions](articles/versions.md) for more in-depth information on this topic. - -### Stability - -By default only stable releases are taken into consideration. If you would -like to also get RC, beta, alpha or dev versions of your dependencies you can -do so using [stability flags](04-schema.md#package-links). To change that for -all packages instead of doing per dependency you can also use the -[minimum-stability](04-schema.md#minimum-stability) setting. - -## Installing Dependencies - -To install the defined dependencies for your project, just run the -[`install`](03-cli.md#install) command. - -```sh -php composer.phar install -``` - -This will find the latest version of `monolog/monolog` that matches the -supplied version constraint and download it into the `vendor` directory. -It's a convention to put third party code into a directory named `vendor`. -In case of Monolog it will put it into `vendor/monolog/monolog`. - -> **Tip:** If you are using git for your project, you probably want to add -> `vendor` in your `.gitignore`. You really don't want to add all of that -> code to your repository. - -You will notice the [`install`](03-cli.md#install) command also created a -`composer.lock` file. - -## `composer.lock` - The Lock File - -After installing the dependencies, Composer writes the list of the exact -versions it installed into a `composer.lock` file. This locks the project -to those specific versions. - -**Commit your application's `composer.lock` (along with `composer.json`) -into version control.** - -This is important because the [`install`](03-cli.md#install) command checks -if a lock file is present, and if it is, it downloads the versions specified -there (regardless of what `composer.json` says). - -This means that anyone who sets up the project will download the exact same -version of the dependencies. Your CI server, production machines, other -developers in your team, everything and everyone runs on the same dependencies, -which mitigates the potential for bugs affecting only some parts of the -deployments. Even if you develop alone, in six months when reinstalling the -project you can feel confident the dependencies installed are still working even -if your dependencies released many new versions since then. - -If no `composer.lock` file exists, Composer will read the dependencies and -versions from `composer.json` and create the lock file after executing the -[`update`](03-cli.md#update) or the [`install`](03-cli.md#install) command. - -This means that if any of the dependencies get a new version, you won't get the -updates automatically. To update to the new version, use the -[`update`](03-cli.md#update) command. This will fetch the latest matching -versions (according to your `composer.json` file) and also update the lock file -with the new version. - -```sh -php composer.phar update -``` -> **Note:** Composer will display a Warning when executing an `install` command -> if `composer.lock` and `composer.json` are not synchronized. - -If you only want to install or update one dependency, you can whitelist them: - -```sh -php composer.phar update monolog/monolog [...] -``` - -> **Note:** For libraries it is not necessary to commit the lock -> file, see also: [Libraries - Lock file](02-libraries.md#lock-file). - -## Packagist - -[Packagist](https://packagist.org/) is the main Composer repository. A Composer -repository is basically a package source: a place where you can get packages -from. Packagist aims to be the central repository that everybody uses. This -means that you can automatically `require` any package that is available there. - -If you go to the [Packagist website](https://packagist.org/) (packagist.org), -you can browse and search for packages. - -Any open source project using Composer is recommended to publish their packages -on Packagist. A library doesn't need to be on Packagist to be used by Composer, -but it enables discovery and adoption by other developers more quickly. - -## Autoloading - -For libraries that specify autoload information, Composer generates a -`vendor/autoload.php` file. You can simply include this file and you will get -autoloading for free. - -```php -require __DIR__ . '/vendor/autoload.php'; -``` - -This makes it really easy to use third party code. For example: If your project -depends on Monolog, you can just start using classes from it, and they will be -autoloaded. - -```php -$log = new Monolog\Logger('name'); -$log->pushHandler(new Monolog\Handler\StreamHandler('app.log', Monolog\Logger::WARNING)); -$log->addWarning('Foo'); -``` - -You can even add your own code to the autoloader by adding an -[`autoload`](04-schema.md#autoload) field to `composer.json`. - -```json -{ - "autoload": { - "psr-4": {"Acme\\": "src/"} - } -} -``` - -Composer will register a [PSR-4](http://www.php-fig.org/psr/psr-4/) autoloader -for the `Acme` namespace. - -You define a mapping from namespaces to directories. The `src` directory would -be in your project root, on the same level as `vendor` directory is. An example -filename would be `src/Foo.php` containing an `Acme\Foo` class. - -After adding the [`autoload`](04-schema.md#autoload) field, you have to re-run -[`dump-autoload`](03-cli.md#dump-autoload) to re-generate the -`vendor/autoload.php` file. - -Including that file will also return the autoloader instance, so you can store -the return value of the include call in a variable and add more namespaces. -This can be useful for autoloading classes in a test suite, for example. - -```php -$loader = require __DIR__ . '/vendor/autoload.php'; -$loader->add('Acme\\Test\\', __DIR__); -``` - -In addition to PSR-4 autoloading, Composer also supports PSR-0, classmap and -files autoloading. See the [`autoload`](04-schema.md#autoload) reference for -more information. - -> **Note:** Composer provides its own autoloader. If you don't want to use that -> one, you can just include `vendor/composer/autoload_*.php` files, which return -> associative arrays allowing you to configure your own autoloader. - -← [Intro](00-intro.md) | [Libraries](02-libraries.md) → diff --git a/en-back/02-libraries.md b/en-back/02-libraries.md deleted file mode 100644 index da5725e..0000000 --- a/en-back/02-libraries.md +++ /dev/null @@ -1,212 +0,0 @@ -# Libraries - -This chapter will tell you how to make your library installable through -Composer. - -## Every project is a package - -As soon as you have a `composer.json` in a directory, that directory is a -package. When you add a [`require`](04-schema.md#require) to a project, you are -making a package that depends on other packages. The only difference between -your project and libraries is that your project is a package without a name. - -In order to make that package installable you need to give it a name. You do -this by adding the [`name`](04-schema.md#name) property in `composer.json`: - -```json -{ - "name": "acme/hello-world", - "require": { - "monolog/monolog": "1.0.*" - } -} -``` - -In this case the project name is `acme/hello-world`, where `acme` is the vendor -name. Supplying a vendor name is mandatory. - -> **Note:** If you don't know what to use as a vendor name, your GitHub -> username is usually a good bet. While package names are case insensitive, the -> convention is all lowercase and dashes for word separation. - -## Platform packages - -Composer has platform packages, which are virtual packages for things that are -installed on the system but are not actually installable by Composer. This -includes PHP itself, PHP extensions and some system libraries. - -* `php` represents the PHP version of the user, allowing you to apply - constraints, e.g. `>=5.4.0`. To require a 64bit version of php, you can - require the `php-64bit` package. - -* `hhvm` represents the version of the HHVM runtime (aka HipHop Virtual - Machine) and allows you to apply a constraint, e.g., '>=2.3.3'. - -* `ext-` allows you to require PHP extensions (includes core - extensions). Versioning can be quite inconsistent here, so it's often - a good idea to just set the constraint to `*`. An example of an extension - package name is `ext-gd`. - -* `lib-` allows constraints to be made on versions of libraries used by - PHP. The following are available: `curl`, `iconv`, `icu`, `libxml`, - `openssl`, `pcre`, `uuid`, `xsl`. - -You can use [`show --platform`](03-cli.md#show) to get a list of your locally -available platform packages. - -## Specifying the version - -When you publish your package on Packagist, it is able to infer the version -from the VCS (git, svn, hg) information. This means you don't have to -explicitly declare it. Read [tags](#tags) and [branches](#branches) to see how -version numbers are extracted from these. - -If you are creating packages by hand and really have to specify it explicitly, -you can just add a `version` field: - -```json -{ - "version": "1.0.0" -} -``` - -> **Note:** You should avoid specifying the version field explicitly, because -> for tags the value must match the tag name. - -### Tags - -For every tag that looks like a version, a package version of that tag will be -created. It should match 'X.Y.Z' or 'vX.Y.Z', with an optional suffix of -`-patch` (`-p`), `-alpha` (`-a`), `-beta` (`-b`) or `-RC`. The suffix can also -be followed by a number. - -Here are a few examples of valid tag names: - -- 1.0.0 -- v1.0.0 -- 1.10.5-RC1 -- v4.4.4-beta2 -- v2.0.0-alpha -- v2.0.4-p1 - -> **Note:** Even if your tag is prefixed with `v`, a -> [version constraint](01-basic-usage.md#package-versions) in a `require` -> statement has to be specified without prefix (e.g. tag `v1.0.0` will result -> in version `1.0.0`). - -### Branches - -For every branch, a package development version will be created. If the branch -name looks like a version, the version will be `{branchname}-dev`. For example, -the branch `2.0` will get the `2.0.x-dev` version (the `.x` is added for -technical reasons, to make sure it is recognized as a branch). The `2.0.x` -branch would also be valid and be turned into `2.0.x-dev` as well. If the -branch does not look like a version, it will be `dev-{branchname}`. `master` -results in a `dev-master` version. - -Here are some examples of version branch names: - -- 1.x -- 1.0 (equals 1.0.x) -- 1.1.x - -> **Note:** When you install a development version, it will be automatically -> pulled from its `source`. See the [`install`](03-cli.md#install) command -> for more details. - -### Aliases - -It is possible to alias branch names to versions. For example, you could alias -`dev-master` to `1.0.x-dev`, which would allow you to require `1.0.x-dev` in -all the packages. - -See [Aliases](articles/aliases.md) for more information. - -## Lock file - -For your library you may commit the `composer.lock` file if you want to. This -can help your team to always test against the same dependency versions. -However, this lock file will not have any effect on other projects that depend -on it. It only has an effect on the main project. - -If you do not want to commit the lock file and you are using git, add it to -the `.gitignore`. - -## Publishing to a VCS - -Once you have a VCS repository (version control system, e.g. git) containing a -`composer.json` file, your library is already composer-installable. In this -example we will publish the `acme/hello-world` library on GitHub under -`github.com/username/hello-world`. - -Now, to test installing the `acme/hello-world` package, we create a new -project locally. We will call it `acme/blog`. This blog will depend on -`acme/hello-world`, which in turn depends on `monolog/monolog`. We can -accomplish this by creating a new `blog` directory somewhere, containing a -`composer.json`: - -```json -{ - "name": "acme/blog", - "require": { - "acme/hello-world": "dev-master" - } -} -``` - -The name is not needed in this case, since we don't want to publish the blog -as a library. It is added here to clarify which `composer.json` is being -described. - -Now we need to tell the blog app where to find the `hello-world` dependency. -We do this by adding a package repository specification to the blog's -`composer.json`: - -```json -{ - "name": "acme/blog", - "repositories": [ - { - "type": "vcs", - "url": "https://github.com/username/hello-world" - } - ], - "require": { - "acme/hello-world": "dev-master" - } -} -``` - -For more details on how package repositories work and what other types are -available, see [Repositories](05-repositories.md). - -That's all. You can now install the dependencies by running Composer's -[`install`](03-cli.md#install) command! - -**Recap:** Any git/svn/hg repository containing a `composer.json` can be added -to your project by specifying the package repository and declaring the -dependency in the [`require`](04-schema.md#require) field. - -## Publishing to packagist - -Alright, so now you can publish packages. But specifying the VCS repository -every time is cumbersome. You don't want to force all your users to do that. - -The other thing that you may have noticed is that we did not specify a package -repository for `monolog/monolog`. How did that work? The answer is Packagist. - -[Packagist](https://packagist.org/) is the main package repository for -Composer, and it is enabled by default. Anything that is published on -Packagist is available automatically through Composer. Since -[Monolog is on Packagist](https://packagist.org/packages/monolog/monolog), we -can depend on it without having to specify any additional repositories. - -If we wanted to share `hello-world` with the world, we would publish it on -Packagist as well. Doing so is really easy. - -You simply visit [Packagist](https://packagist.org) and hit the "Submit". This -will prompt you to sign up if you haven't already, and then allows you to -submit the URL to your VCS repository, at which point Packagist will start -crawling it. Once it is done, your package will be available to anyone! - -← [Basic usage](01-basic-usage.md) | [Command-line interface](03-cli.md) → diff --git a/en-back/03-cli.md b/en-back/03-cli.md deleted file mode 100644 index b5f066c..0000000 --- a/en-back/03-cli.md +++ /dev/null @@ -1,701 +0,0 @@ -# Command-line interface / Commands - -You've already learned how to use the command-line interface to do some -things. This chapter documents all the available commands. - -To get help from the command-line, simply call `composer` or `composer list` -to see the complete list of commands, then `--help` combined with any of those -can give you more information. - -## Global Options - -The following options are available with every command: - -* **--verbose (-v):** Increase verbosity of messages. -* **--help (-h):** Display help information. -* **--quiet (-q):** Do not output any message. -* **--no-interaction (-n):** Do not ask any interactive question. -* **--working-dir (-d):** If specified, use the given directory as working directory. -* **--profile:** Display timing and memory usage information -* **--ansi:** Force ANSI output. -* **--no-ansi:** Disable ANSI output. -* **--version (-V):** Display this application version. - -## Process Exit Codes - -* **0:** OK -* **1:** Generic/unknown error code -* **2:** Dependency solving error code - -## init - -In the [Libraries](02-libraries.md) chapter we looked at how to create a -`composer.json` by hand. There is also an `init` command available that makes -it a bit easier to do this. - -When you run the command it will interactively ask you to fill in the fields, -while using some smart defaults. - -```sh -php composer.phar init -``` - -### Options - -* **--name:** Name of the package. -* **--description:** Description of the package. -* **--author:** Author name of the package. -* **--homepage:** Homepage of the package. -* **--require:** Package to require with a version constraint. Should be - in format `foo/bar:1.0.0`. -* **--require-dev:** Development requirements, see **--require**. -* **--stability (-s):** Value for the `minimum-stability` field. - -## install - -The `install` command reads the `composer.json` file from the current -directory, resolves the dependencies, and installs them into `vendor`. - -```sh -php composer.phar install -``` - -If there is a `composer.lock` file in the current directory, it will use the -exact versions from there instead of resolving them. This ensures that -everyone using the library will get the same versions of the dependencies. - -If there is no `composer.lock` file, Composer will create one after dependency -resolution. - -### Options - -* **--prefer-source:** There are two ways of downloading a package: `source` - and `dist`. For stable versions Composer will use the `dist` by default. - The `source` is a version control repository. If `--prefer-source` is - enabled, Composer will install from `source` if there is one. This is - useful if you want to make a bugfix to a project and get a local git - clone of the dependency directly. -* **--prefer-dist:** Reverse of `--prefer-source`, Composer will install - from `dist` if possible. This can speed up installs substantially on build - servers and other use cases where you typically do not run updates of the - vendors. It is also a way to circumvent problems with git if you do not - have a proper setup. -* **--ignore-platform-reqs:** ignore `php`, `hhvm`, `lib-*` and `ext-*` - requirements and force the installation even if the local machine does not - fulfill these. See also the [`platform`](06-config.md#platform) config option. -* **--dry-run:** If you want to run through an installation without actually - installing a package, you can use `--dry-run`. This will simulate the - installation and show you what would happen. -* **--dev:** Install packages listed in `require-dev` (this is the default behavior). -* **--no-dev:** Skip installing packages listed in `require-dev`. The autoloader - generation skips the `autoload-dev` rules. -* **--no-autoloader:** Skips autoloader generation. -* **--no-scripts:** Skips execution of scripts defined in `composer.json`. -* **--no-plugins:** Disables plugins. -* **--no-progress:** Removes the progress display that can mess with some - terminals or scripts which don't handle backspace characters. -* **--optimize-autoloader (-o):** Convert PSR-0/4 autoloading to classmap to get a faster - autoloader. This is recommended especially for production, but can take - a bit of time to run so it is currently not done by default. -* **--classmap-authoritative (-a):** Autoload classes from the classmap only. - Implicitly enables `--optimize-autoloader`. - -## update - -In order to get the latest versions of the dependencies and to update the -`composer.lock` file, you should use the `update` command. - -```sh -php composer.phar update -``` - -This will resolve all dependencies of the project and write the exact versions -into `composer.lock`. - -If you just want to update a few packages and not all, you can list them as such: - -```sh -php composer.phar update vendor/package vendor/package2 -``` - -You can also use wildcards to update a bunch of packages at once: - -```sh -php composer.phar update vendor/* -``` - -### Options - -* **--prefer-source:** Install packages from `source` when available. -* **--prefer-dist:** Install packages from `dist` when available. -* **--ignore-platform-reqs:** ignore `php`, `hhvm`, `lib-*` and `ext-*` - requirements and force the installation even if the local machine does not - fulfill these. See also the [`platform`](06-config.md#platform) config option. -* **--dry-run:** Simulate the command without actually doing anything. -* **--dev:** Install packages listed in `require-dev` (this is the default behavior). -* **--no-dev:** Skip installing packages listed in `require-dev`. The autoloader generation skips the `autoload-dev` rules. -* **--no-autoloader:** Skips autoloader generation. -* **--no-scripts:** Skips execution of scripts defined in `composer.json`. -* **--no-plugins:** Disables plugins. -* **--no-progress:** Removes the progress display that can mess with some - terminals or scripts which don't handle backspace characters. -* **--optimize-autoloader (-o):** Convert PSR-0/4 autoloading to classmap to get a faster - autoloader. This is recommended especially for production, but can take - a bit of time to run so it is currently not done by default. -* **--classmap-authoritative (-a):** Autoload classes from the classmap only. - Implicitly enables `--optimize-autoloader`. -* **--lock:** Only updates the lock file hash to suppress warning about the - lock file being out of date. -* **--with-dependencies:** Add also all dependencies of whitelisted packages to the whitelist. -* **--prefer-stable:** Prefer stable versions of dependencies. -* **--prefer-lowest:** Prefer lowest versions of dependencies. Useful for testing minimal - versions of requirements, generally used with `--prefer-stable`. - -## require - -The `require` command adds new packages to the `composer.json` file from -the current directory. If no file exists one will be created on the fly. - -```sh -php composer.phar require -``` - -After adding/changing the requirements, the modified requirements will be -installed or updated. - -If you do not want to choose requirements interactively, you can just pass them -to the command. - -```sh -php composer.phar require vendor/package:2.* vendor/package2:dev-master -``` - -### Options - -* **--prefer-source:** Install packages from `source` when available. -* **--prefer-dist:** Install packages from `dist` when available. -* **--ignore-platform-reqs:** ignore `php`, `hhvm`, `lib-*` and `ext-*` - requirements and force the installation even if the local machine does not - fulfill these. See also the [`platform`](06-config.md#platform) config option. -* **--dev:** Add packages to `require-dev`. -* **--no-update:** Disables the automatic update of the dependencies. -* **--no-progress:** Removes the progress display that can mess with some - terminals or scripts which don't handle backspace characters. -* **--update-no-dev:** Run the dependency update with the `--no-dev` option. -* **--update-with-dependencies:** Also update dependencies of the newly - required packages. -* **--sort-packages:** Keep packages sorted in `composer.json`. -* **--optimize-autoloader (-o):** Convert PSR-0/4 autoloading to classmap to - get a faster autoloader. This is recommended especially for production, but - can take a bit of time to run so it is currently not done by default. -* **--classmap-authoritative (-a):** Autoload classes from the classmap only. - Implicitly enables `--optimize-autoloader`. - -## remove - -The `remove` command removes packages from the `composer.json` file from -the current directory. - -```sh -php composer.phar remove vendor/package vendor/package2 -``` - -After removing the requirements, the modified requirements will be -uninstalled. - -### Options -* **--ignore-platform-reqs:** ignore `php`, `hhvm`, `lib-*` and `ext-*` - requirements and force the installation even if the local machine does not - fulfill these. See also the [`platform`](06-config.md#platform) config option. -* **--dev:** Remove packages from `require-dev`. -* **--no-update:** Disables the automatic update of the dependencies. -* **--no-progress:** Removes the progress display that can mess with some - terminals or scripts which don't handle backspace characters. -* **--update-no-dev:** Run the dependency update with the --no-dev option. -* **--update-with-dependencies:** Also update dependencies of the removed packages. -* **--optimize-autoloader (-o):** Convert PSR-0/4 autoloading to classmap to - get a faster autoloader. This is recommended especially for production, but - can take a bit of time to run so it is currently not done by default. -* **--classmap-authoritative (-a):** Autoload classes from the classmap only. - Implicitly enables `--optimize-autoloader`. - -## global - -The global command allows you to run other commands like `install`, `require` -or `update` as if you were running them from the [COMPOSER_HOME](#composer-home) -directory. - -This can be used to install CLI utilities globally and if you add -`$COMPOSER_HOME/vendor/bin` to your `$PATH` environment variable. Here is an -example: - -```sh -php composer.phar global require fabpot/php-cs-fixer:dev-master -``` - -Now the `php-cs-fixer` binary is available globally (assuming you adjusted -your PATH). If you wish to update the binary later on you can just run a -global update: - -```sh -php composer.phar global update -``` - -## search - -The search command allows you to search through the current project's package -repositories. Usually this will be just packagist. You simply pass it the -terms you want to search for. - -```sh -php composer.phar search monolog -``` - -You can also search for more than one term by passing multiple arguments. - -### Options - -* **--only-name (-N):** Search only in name. - -## show - -To list all of the available packages, you can use the `show` command. - -```sh -php composer.phar show -``` - -If you want to see the details of a certain package, you can pass the package -name. - -```sh -php composer.phar show monolog/monolog - -name : monolog/monolog -versions : master-dev, 1.0.2, 1.0.1, 1.0.0, 1.0.0-RC1 -type : library -names : monolog/monolog -source : [git] https://github.com/Seldaek/monolog.git 3d4e60d0cbc4b888fe5ad223d77964428b1978da -dist : [zip] https://github.com/Seldaek/monolog/zipball/3d4e60d0cbc4b888fe5ad223d77964428b1978da 3d4e60d0cbc4b888fe5ad223d77964428b1978da -license : MIT - -autoload -psr-0 -Monolog : src/ - -requires -php >=5.3.0 -``` - -You can even pass the package version, which will tell you the details of that -specific version. - -```sh -php composer.phar show monolog/monolog 1.0.2 -``` - -### Options - -* **--installed (-i):** List the packages that are installed. -* **--platform (-p):** List only platform packages (php & extensions). -* **--self (-s):** List the root package info. -* **--tree (-t):** List the dependencies as a tree. Only usable when giving a single package name or combined with `-i`. - -## browse / home - -The `browse` (aliased to `home`) opens a package's repository URL or homepage -in your browser. - -### Options - -* **--homepage (-H):** Open the homepage instead of the repository URL. - -## suggests - -Lists all packages suggested by currently installed set of packages. You can -optionally pass one or multiple package names in the format of `vendor/package` -to limit output to suggestions made by those packages only. - -### Options - -* **--no-dev:** Excludes suggestions from `require-dev` packages. -* **--verbose (-v):** Increased verbosity adds suggesting package name and - reason for suggestion. - -## depends - -The `depends` command tells you which other packages depend on a certain -package. You can specify which link types (`require`, `require-dev`) -should be included in the listing. By default both are used. - -```sh -php composer.phar depends --link-type=require monolog/monolog - -nrk/monolog-fluent requires monolog/monolog (~1.8) -poc/poc requires monolog/monolog (^1.6) -propel/propel requires monolog/monolog (1.*) -symfony/monolog-bridge requires monolog/monolog (>=1.2) -symfony/symfony requires monolog/monolog (~1) -``` - -### Options - -* **--link-type:** The link types to match on, can be specified multiple - times. - -## validate - -You should always run the `validate` command before you commit your -`composer.json` file, and before you tag a release. It will check if your -`composer.json` is valid. - -```sh -php composer.phar validate -``` - -### Options - -* **--no-check-all:** Do not emit a warning if requirements in `composer.json` use unbound version constraints. -* **--no-check-lock:** Do not emit an error if `composer.lock` exists and is not up to date. -* **--no-check-publish:** Do not emit an error if `composer.json` is unsuitable for publishing as a package on Packagist but is otherwise valid. - -## status - -If you often need to modify the code of your dependencies and they are -installed from source, the `status` command allows you to check if you have -local changes in any of them. - -```sh -php composer.phar status -``` - -With the `--verbose` option you get some more information about what was -changed: - -```sh -php composer.phar status -v - -You have changes in the following dependencies: -vendor/seld/jsonlint: - M README.mdown -``` - -## self-update - -To update Composer itself to the latest version, just run the `self-update` -command. It will replace your `composer.phar` with the latest version. - -```sh -php composer.phar self-update -``` - -If you would like to instead update to a specific release simply specify it: - -```sh -php composer.phar self-update 1.0.0-alpha7 -``` - -If you have installed Composer for your entire system (see [global installation](00-intro.md#globally)), -you may have to run the command with `root` privileges - -```sh -sudo composer self-update -``` - -### Options - -* **--rollback (-r):** Rollback to the last version you had installed. -* **--clean-backups:** Delete old backups during an update. This makes the - current version of Composer the only backup available after the update. - -## config - -The `config` command allows you to edit some basic Composer settings in either -the local composer.json file or the global config.json file. - -```sh -php composer.phar config --list -``` - -### Usage - -`config [options] [setting-key] [setting-value1] ... [setting-valueN]` - -`setting-key` is a configuration option name and `setting-value1` is a -configuration value. For settings that can take an array of values (like -`github-protocols`), more than one setting-value arguments are allowed. - -See the [Config](06-config.md) chapter for valid configuration options. - -### Options - -* **--global (-g):** Operate on the global config file located at - `$COMPOSER_HOME/config.json` by default. Without this option, this command - affects the local composer.json file or a file specified by `--file`. -* **--editor (-e):** Open the local composer.json file using in a text editor as - defined by the `EDITOR` env variable. With the `--global` option, this opens - the global config file. -* **--unset:** Remove the configuration element named by `setting-key`. -* **--list (-l):** Show the list of current config variables. With the `--global` - option this lists the global configuration only. -* **--file="..." (-f):** Operate on a specific file instead of composer.json. Note - that this cannot be used in conjunction with the `--global` option. -* **--absolute:** Returns absolute paths when fetching *-dir config values - instead of relative. - -### Modifying Repositories - -In addition to modifying the config section, the `config` command also supports making -changes to the repositories section by using it the following way: - -```sh -php composer.phar config repositories.foo vcs https://github.com/foo/bar -``` - -## create-project - -You can use Composer to create new projects from an existing package. This is -the equivalent of doing a git clone/svn checkout followed by a "composer install" -of the vendors. - -There are several applications for this: - -1. You can deploy application packages. -2. You can check out any package and start developing on patches for example. -3. Projects with multiple developers can use this feature to bootstrap the - initial application for development. - -To create a new project using Composer you can use the "create-project" command. -Pass it a package name, and the directory to create the project in. You can also -provide a version as third argument, otherwise the latest version is used. - -If the directory does not currently exist, it will be created during installation. - -```sh -php composer.phar create-project doctrine/orm path 2.2.* -``` - -It is also possible to run the command without params in a directory with an -existing `composer.json` file to bootstrap a project. - -By default the command checks for the packages on packagist.org. - -### Options - -* **--repository-url:** Provide a custom repository to search for the package, - which will be used instead of packagist. Can be either an HTTP URL pointing - to a `composer` repository, or a path to a local `packages.json` file. -* **--stability (-s):** Minimum stability of package. Defaults to `stable`. -* **--prefer-source:** Install packages from `source` when available. -* **--prefer-dist:** Install packages from `dist` when available. -* **--dev:** Install packages listed in `require-dev`. -* **--no-install:** Disables installation of the vendors. -* **--no-plugins:** Disables plugins. -* **--no-scripts:** Disables the execution of the scripts defined in the root - package. -* **--no-progress:** Removes the progress display that can mess with some - terminals or scripts which don't handle backspace characters. -* **--keep-vcs:** Skip the deletion of the VCS metadata for the created - project. This is mostly useful if you run the command in non-interactive - mode. -* **--ignore-platform-reqs:** ignore `php`, `hhvm`, `lib-*` and `ext-*` - requirements and force the installation even if the local machine does not - fulfill these. - -## dump-autoload - -If you need to update the autoloader because of new classes in a classmap -package for example, you can use "dump-autoload" to do that without having to -go through an install or update. - -Additionally, it can dump an optimized autoloader that converts PSR-0/4 packages -into classmap ones for performance reasons. In large applications with many -classes, the autoloader can take up a substantial portion of every request's -time. Using classmaps for everything is less convenient in development, but -using this option you can still use PSR-0/4 for convenience and classmaps for -performance. - -### Options - -* **--optimize (-o):** Convert PSR-0/4 autoloading to classmap to get a faster - autoloader. This is recommended especially for production, but can take - a bit of time to run so it is currently not done by default. -* **--classmap-authoritative (-a):** Autoload classes from the classmap only. - Implicitly enables `--optimize`. -* **--no-dev:** Disables autoload-dev rules. - -## clear-cache - -Deletes all content from Composer's cache directories. - -## licenses - -Lists the name, version and license of every package installed. Use -`--format=json` to get machine readable output. - -### Options - -* **--no-dev:** Remove dev dependencies from the output -* **--format:** Format of the output: text or json (default: "text") - -## run-script - -### Options - -* **--no-dev:** Disable dev mode -* **--list:** List user defined scripts - -To run [scripts](articles/scripts.md) manually you can use this command, -just give it the script name and optionally any required arguments. - -## diagnose - -If you think you found a bug, or something is behaving strangely, you might -want to run the `diagnose` command to perform automated checks for many common -problems. - -```sh -php composer.phar diagnose -``` - -## archive - -This command is used to generate a zip/tar archive for a given package in a -given version. It can also be used to archive your entire project without -excluded/ignored files. - -```sh -php composer.phar archive vendor/package 2.0.21 --format=zip -``` - -### Options - -* **--format (-f):** Format of the resulting archive: tar or zip (default: - "tar") -* **--dir:** Write the archive to this directory (default: ".") - -## help - -To get more information about a certain command, just use `help`. - -```sh -php composer.phar help install -``` - -## Environment variables - -You can set a number of environment variables that override certain settings. -Whenever possible it is recommended to specify these settings in the `config` -section of `composer.json` instead. It is worth noting that the env vars will -always take precedence over the values specified in `composer.json`. - -### COMPOSER - -By setting the `COMPOSER` env variable it is possible to set the filename of -`composer.json` to something else. - -For example: - -```sh -COMPOSER=composer-other.json php composer.phar install -``` - -The generated lock file will use the same name: `composer-other.lock` in this example. - -### COMPOSER_ROOT_VERSION - -By setting this var you can specify the version of the root package, if it can -not be guessed from VCS info and is not present in `composer.json`. - -### COMPOSER_VENDOR_DIR - -By setting this var you can make Composer install the dependencies into a -directory other than `vendor`. - -### COMPOSER_BIN_DIR - -By setting this option you can change the `bin` ([Vendor Binaries](articles/vendor-binaries.md)) -directory to something other than `vendor/bin`. - -### http_proxy or HTTP_PROXY - -If you are using Composer from behind an HTTP proxy, you can use the standard -`http_proxy` or `HTTP_PROXY` env vars. Simply set it to the URL of your proxy. -Many operating systems already set this variable for you. - -Using `http_proxy` (lowercased) or even defining both might be preferable since -some tools like git or curl will only use the lower-cased `http_proxy` version. -Alternatively you can also define the git proxy using -`git config --global http.proxy `. - -### no_proxy - -If you are behind a proxy and would like to disable it for certain domains, you -can use the `no_proxy` env var. Simply set it to a comma separated list of -domains the proxy should *not* be used for. - -The env var accepts domains, IP addresses, and IP address blocks in CIDR -notation. You can restrict the filter to a particular port (e.g. `:80`). You -can also set it to `*` to ignore the proxy for all HTTP requests. - -### HTTP_PROXY_REQUEST_FULLURI - -If you use a proxy but it does not support the request_fulluri flag, then you -should set this env var to `false` or `0` to prevent Composer from setting the -request_fulluri option. - -### HTTPS_PROXY_REQUEST_FULLURI - -If you use a proxy but it does not support the request_fulluri flag for HTTPS -requests, then you should set this env var to `false` or `0` to prevent Composer -from setting the request_fulluri option. - -### COMPOSER_HOME - -The `COMPOSER_HOME` var allows you to change the Composer home directory. This -is a hidden, global (per-user on the machine) directory that is shared between -all projects. - -By default it points to `/home//.composer` on \*nix, -`/Users//.composer` on OSX and -`C:\Users\\AppData\Roaming\Composer` on Windows. - -#### COMPOSER_HOME/config.json - -You may put a `config.json` file into the location which `COMPOSER_HOME` points -to. Composer will merge this configuration with your project's `composer.json` -when you run the `install` and `update` commands. - -This file allows you to set [repositories](05-repositories.md) and -[configuration](06-config.md) for the user's projects. - -In case global configuration matches _local_ configuration, the _local_ -configuration in the project's `composer.json` always wins. - -### COMPOSER_CACHE_DIR - -The `COMPOSER_CACHE_DIR` var allows you to change the Composer cache directory, -which is also configurable via the [`cache-dir`](06-config.md#cache-dir) option. - -By default it points to $COMPOSER_HOME/cache on \*nix and OSX, and -`C:\Users\\AppData\Local\Composer` (or `%LOCALAPPDATA%/Composer`) on Windows. - -### COMPOSER_PROCESS_TIMEOUT - -This env var controls the time Composer waits for commands (such as git -commands) to finish executing. The default value is 300 seconds (5 minutes). - -### COMPOSER_DISCARD_CHANGES - -This env var controls the [`discard-changes`](06-config.md#discard-changes) config option. - -### COMPOSER_NO_INTERACTION - -If set to 1, this env var will make Composer behave as if you passed the -`--no-interaction` flag to every command. This can be set on build boxes/CI. - -### COMPOSER_DISABLE_XDEBUG_WARN - -If set to 1, this env disables the warning about having xdebug enabled. - -← [Libraries](02-libraries.md) | [Schema](04-schema.md) → diff --git a/en-back/05-repositories.md b/en-back/05-repositories.md deleted file mode 100644 index 7541f2a..0000000 --- a/en-back/05-repositories.md +++ /dev/null @@ -1,667 +0,0 @@ -# Repositories - -This chapter will explain the concept of packages and repositories, what kinds -of repositories are available, and how they work. - -## Concepts - -Before we look at the different types of repositories that exist, we need to -understand some of the basic concepts that Composer is built on. - -### Package - -Composer is a dependency manager. It installs packages locally. A package is -essentially just a directory containing something. In this case it is PHP -code, but in theory it could be anything. And it contains a package -description which has a name and a version. The name and the version are used -to identify the package. - -In fact, internally Composer sees every version as a separate package. While -this distinction does not matter when you are using Composer, it's quite -important when you want to change it. - -In addition to the name and the version, there is useful metadata. The information -most relevant for installation is the source definition, which describes where -to get the package contents. The package data points to the contents of the -package. And there are two options here: dist and source. - -**Dist:** The dist is a packaged version of the package data. Usually a -released version, usually a stable release. - -**Source:** The source is used for development. This will usually originate -from a source code repository, such as git. You can fetch this when you want -to modify the downloaded package. - -Packages can supply either of these, or even both. Depending on certain -factors, such as user-supplied options and stability of the package, one will -be preferred. - -### Repository - -A repository is a package source. It's a list of packages/versions. Composer -will look in all your repositories to find the packages your project requires. - -By default only the Packagist repository is registered in Composer. You can -add more repositories to your project by declaring them in `composer.json`. - -Repositories are only available to the root package and the repositories -defined in your dependencies will not be loaded. Read the -[FAQ entry](faqs/why-can't-composer-load-repositories-recursively.md) if you -want to learn why. - -## Types - -### Composer - -The main repository type is the `composer` repository. It uses a single -`packages.json` file that contains all of the package metadata. - -This is also the repository type that packagist uses. To reference a -`composer` repository, just supply the path before the `packages.json` file. -In case of packagist, that file is located at `/packages.json`, so the URL of -the repository would be `packagist.org`. For `example.org/packages.json` the -repository URL would be `example.org`. - -#### packages - -The only required field is `packages`. The JSON structure is as follows: - -```json -{ - "packages": { - "vendor/package-name": { - "dev-master": { @composer.json }, - "1.0.x-dev": { @composer.json }, - "0.0.1": { @composer.json }, - "1.0.0": { @composer.json } - } - } -} -``` - -The `@composer.json` marker would be the contents of the `composer.json` from -that package version including as a minimum: - -* name -* version -* dist or source - -Here is a minimal package definition: - -```json -{ - "name": "smarty/smarty", - "version": "3.1.7", - "dist": { - "url": "http://www.smarty.net/files/Smarty-3.1.7.zip", - "type": "zip" - } -} -``` - -It may include any of the other fields specified in the [schema](04-schema.md). - -#### notify-batch - -The `notify-batch` field allows you to specify a URL that will be called -every time a user installs a package. The URL can be either an absolute path -(that will use the same domain as the repository) or a fully qualified URL. - -An example value: - -```json -{ - "notify-batch": "/downloads/" -} -``` - -For `example.org/packages.json` containing a `monolog/monolog` package, this -would send a `POST` request to `example.org/downloads/` with following -JSON request body: - -```json -{ - "downloads": [ - {"name": "monolog/monolog", "version": "1.2.1.0"} - ] -} -``` - -The version field will contain the normalized representation of the version -number. - -This field is optional. - -#### includes - -For larger repositories it is possible to split the `packages.json` into -multiple files. The `includes` field allows you to reference these additional -files. - -An example: - -```json -{ - "includes": { - "packages-2011.json": { - "sha1": "525a85fb37edd1ad71040d429928c2c0edec9d17" - }, - "packages-2012-01.json": { - "sha1": "897cde726f8a3918faf27c803b336da223d400dd" - }, - "packages-2012-02.json": { - "sha1": "26f911ad717da26bbcac3f8f435280d13917efa5" - } - } -} -``` - -The SHA-1 sum of the file allows it to be cached and only re-requested if the -hash changed. - -This field is optional. You probably don't need it for your own custom -repository. - -#### provider-includes and providers-url - -For very large repositories like packagist.org using the so-called provider -files is the preferred method. The `provider-includes` field allows you to -list a set of files that list package names provided by this repository. The -hash should be a sha256 of the files in this case. - -The `providers-url` describes how provider files are found on the server. It -is an absolute path from the repository root. - -An example: - -```json -{ - "provider-includes": { - "providers-a.json": { - "sha256": "f5b4bc0b354108ef08614e569c1ed01a2782e67641744864a74e788982886f4c" - }, - "providers-b.json": { - "sha256": "b38372163fac0573053536f5b8ef11b86f804ea8b016d239e706191203f6efac" - } - }, - "providers-url": "/p/%package%$%hash%.json" -} -``` - -Those files contain lists of package names and hashes to verify the file -integrity, for example: - -```json -{ - "providers": { - "acme/foo": { - "sha256": "38968de1305c2e17f4de33aea164515bc787c42c7e2d6e25948539a14268bb82" - }, - "acme/bar": { - "sha256": "4dd24c930bd6e1103251306d6336ac813b563a220d9ca14f4743c032fb047233" - } - } -} -``` - -The file above declares that acme/foo and acme/bar can be found in this -repository, by loading the file referenced by `providers-url`, replacing -`%package%` by the package name and `%hash%` by the sha256 field. Those files -themselves just contain package definitions as described [above](#packages). - -This field is optional. You probably don't need it for your own custom -repository. - -#### stream options - -The `packages.json` file is loaded using a PHP stream. You can set extra options -on that stream using the `options` parameter. You can set any valid PHP stream -context option. See [Context options and parameters](https://php.net/manual/en/context.php) -for more information. - -### VCS - -VCS stands for version control system. This includes versioning systems like -git, svn or hg. Composer has a repository type for installing packages from -these systems. - -#### Loading a package from a VCS repository - -There are a few use cases for this. The most common one is maintaining your -own fork of a third party library. If you are using a certain library for your -project and you decide to change something in the library, you will want your -project to use the patched version. If the library is on GitHub (this is the -case most of the time), you can simply fork it there and push your changes to -your fork. After that you update the project's `composer.json`. All you have -to do is add your fork as a repository and update the version constraint to -point to your custom branch. Your custom branch name must be prefixed with `"dev-"`. For version constraint naming conventions see -[Libraries](02-libraries.md) for more information. - -Example assuming you patched monolog to fix a bug in the `bugfix` branch: - -```json -{ - "repositories": [ - { - "type": "vcs", - "url": "https://github.com/igorw/monolog" - } - ], - "require": { - "monolog/monolog": "dev-bugfix" - } -} -``` - -When you run `php composer.phar update`, you should get your modified version -of `monolog/monolog` instead of the one from packagist. - -Note that you should not rename the package unless you really intend to fork -it in the long term, and completely move away from the original package. -Composer will correctly pick your package over the original one since the -custom repository has priority over packagist. If you want to rename the -package, you should do so in the default (often master) branch and not in a -feature branch, since the package name is taken from the default branch. - -Also note that the override will not work if you change the `name` property -in your forked repository's composer.json file as this needs to match the -original for the override to work. - -If other dependencies rely on the package you forked, it is possible to -inline-alias it so that it matches a constraint that it otherwise would not. -For more information [see the aliases article](articles/aliases.md). - -#### Using private repositories - -Exactly the same solution allows you to work with your private repositories at -GitHub and BitBucket: - -```json -{ - "require": { - "vendor/my-private-repo": "dev-master" - }, - "repositories": [ - { - "type": "vcs", - "url": "git@bitbucket.org:vendor/my-private-repo.git" - } - ] -} -``` - -The only requirement is the installation of SSH keys for a git client. - -#### Git alternatives - -Git is not the only version control system supported by the VCS repository. -The following are supported: - -* **Git:** [git-scm.com](https://git-scm.com) -* **Subversion:** [subversion.apache.org](https://subversion.apache.org) -* **Mercurial:** [mercurial.selenic.com](http://mercurial.selenic.com) - -To get packages from these systems you need to have their respective clients -installed. That can be inconvenient. And for this reason there is special -support for GitHub and BitBucket that use the APIs provided by these sites, to -fetch the packages without having to install the version control system. The -VCS repository provides `dist`s for them that fetch the packages as zips. - -* **GitHub:** [github.com](https://github.com) (Git) -* **BitBucket:** [bitbucket.org](https://bitbucket.org) (Git and Mercurial) - -The VCS driver to be used is detected automatically based on the URL. However, -should you need to specify one for whatever reason, you can use `git`, `svn` or -`hg` as the repository type instead of `vcs`. - -If you set the `no-api` key to `true` on a github repository it will clone the -repository as it would with any other git repository instead of using the -GitHub API. But unlike using the `git` driver directly, Composer will still -attempt to use github's zip files. - -#### Subversion Options - -Since Subversion has no native concept of branches and tags, Composer assumes -by default that code is located in `$url/trunk`, `$url/branches` and -`$url/tags`. If your repository has a different layout you can change those -values. For example if you used capitalized names you could configure the -repository like this: - -```json -{ - "repositories": [ - { - "type": "vcs", - "url": "http://svn.example.org/projectA/", - "trunk-path": "Trunk", - "branches-path": "Branches", - "tags-path": "Tags" - } - ] -} -``` - -If you have no branches or tags directory you can disable them entirely by -setting the `branches-path` or `tags-path` to `false`. - -If the package is in a sub-directory, e.g. `/trunk/foo/bar/composer.json` and -`/tags/1.0/foo/bar/composer.json`, then you can make Composer access it by -setting the `"package-path"` option to the sub-directory, in this example it -would be `"package-path": "foo/bar/"`. - -If you have a private Subversion repository you can save credentials in the -http-basic section of your config (See [Schema](04-schema.md)): - -```json -{ - "http-basic": { - "svn.example.org": { - "username": "username", - "password": "password" - } - } -} -``` - -If your Subversion client is configured to store credentials by default these -credentials will be saved for the current user and existing saved credentials -for this server will be overwritten. To change this behavior by setting the -`"svn-cache-credentials"` option in your repository configuration: - -```json -{ - "repositories": [ - { - "type": "vcs", - "url": "http://svn.example.org/projectA/", - "svn-cache-credentials": false - } - ] -} -``` - -### PEAR - -It is possible to install packages from any PEAR channel by using the `pear` -repository. Composer will prefix all package names with `pear-{channelName}/` to -avoid conflicts. All packages are also aliased with prefix `pear-{channelAlias}/` - -Example using `pear2.php.net`: - -```json -{ - "repositories": [ - { - "type": "pear", - "url": "https://pear2.php.net" - } - ], - "require": { - "pear-pear2.php.net/PEAR2_Text_Markdown": "*", - "pear-pear2/PEAR2_HTTP_Request": "*" - } -} -``` - -In this case the short name of the channel is `pear2`, so the -`PEAR2_HTTP_Request` package name becomes `pear-pear2/PEAR2_HTTP_Request`. - -> **Note:** The `pear` repository requires doing quite a few requests per -> package, so this may considerably slow down the installation process. - -#### Custom vendor alias - -It is possible to alias PEAR channel packages with a custom vendor name. - -Example: - -Suppose you have a private PEAR repository and wish to use Composer to -incorporate dependencies from a VCS. Your PEAR repository contains the -following packages: - - * `BasePackage` - * `IntermediatePackage`, which depends on `BasePackage` - * `TopLevelPackage1` and `TopLevelPackage2` which both depend on `IntermediatePackage` - -Without a vendor alias, Composer will use the PEAR channel name as the -vendor portion of the package name: - - * `pear-pear.foobar.repo/BasePackage` - * `pear-pear.foobar.repo/IntermediatePackage` - * `pear-pear.foobar.repo/TopLevelPackage1` - * `pear-pear.foobar.repo/TopLevelPackage2` - -Suppose at a later time you wish to migrate your PEAR packages to a -Composer repository and naming scheme, and adopt the vendor name of `foobar`. -Projects using your PEAR packages would not see the updated packages, since -they have a different vendor name (`foobar/IntermediatePackage` vs -`pear-pear.foobar.repo/IntermediatePackage`). - -By specifying `vendor-alias` for the PEAR repository from the start, you can -avoid this scenario and future-proof your package names. - -To illustrate, the following example would get the `BasePackage`, -`TopLevelPackage1`, and `TopLevelPackage2` packages from your PEAR repository -and `IntermediatePackage` from a Github repository: - -```json -{ - "repositories": [ - { - "type": "git", - "url": "https://github.com/foobar/intermediate.git" - }, - { - "type": "pear", - "url": "http://pear.foobar.repo", - "vendor-alias": "foobar" - } - ], - "require": { - "foobar/TopLevelPackage1": "*", - "foobar/TopLevelPackage2": "*" - } -} -``` - -### Package - -If you want to use a project that does not support Composer through any of the -means above, you still can define the package yourself by using a `package` -repository. - -Basically, you define the same information that is included in the `composer` -repository's `packages.json`, but only for a single package. Again, the -minimum required fields are `name`, `version`, and either of `dist` or -`source`. - -Here is an example for the smarty template engine: - -```json -{ - "repositories": [ - { - "type": "package", - "package": { - "name": "smarty/smarty", - "version": "3.1.7", - "dist": { - "url": "http://www.smarty.net/files/Smarty-3.1.7.zip", - "type": "zip" - }, - "source": { - "url": "http://smarty-php.googlecode.com/svn/", - "type": "svn", - "reference": "tags/Smarty_3_1_7/distribution/" - }, - "autoload": { - "classmap": ["libs/"] - } - } - } - ], - "require": { - "smarty/smarty": "3.1.*" - } -} -``` - -Typically you would leave the source part off, as you don't really need it. - -> **Note**: This repository type has a few limitations and should be avoided -> whenever possible: -> -> - Composer will not update the package unless you change the `version` field. -> - Composer will not update the commit references, so if you use `master` as -> reference you will have to delete the package to force an update, and will -> have to deal with an unstable lock file. - -## Hosting your own - -While you will probably want to put your packages on packagist most of the time, -there are some use cases for hosting your own repository. - -* **Private company packages:** If you are part of a company that uses Composer - for their packages internally, you might want to keep those packages private. - -* **Separate ecosystem:** If you have a project which has its own ecosystem, - and the packages aren't really reusable by the greater PHP community, you - might want to keep them separate to packagist. An example of this would be - wordpress plugins. - -For hosting your own packages, a native `composer` type of repository is -recommended, which provides the best performance. - -There are a few tools that can help you create a `composer` repository. - -### Packagist - -The underlying application used by packagist is open source. This means that you -can technically install your own copy of packagist. However it is not a -supported use case and changes will happen without caring for third parties -using the code. - -Packagist is a Symfony2 application, and it is [available on -GitHub](https://github.com/composer/packagist). It uses Composer internally and -acts as a proxy between VCS repositories and the Composer users. It holds a list -of all VCS packages, periodically re-crawls them, and exposes them as a Composer -repository. - -### Toran Proxy - -[Toran Proxy](https://toranproxy.com/) is a web app much like Packagist but -providing private package hosting as well as mirroring/proxying of GitHub and -packagist.org. Check its homepage and the [Satis/Toran Proxy article](articles/handling-private-packages-with-satis.md) -for more information. - -### Satis - -Satis is a static `composer` repository generator. It is a bit like an ultra- -lightweight, static file-based version of packagist. - -You give it a `composer.json` containing repositories, typically VCS and -package repository definitions. It will fetch all the packages that are -`require`d and dump a `packages.json` that is your `composer` repository. - -Check [the satis GitHub repository](https://github.com/composer/satis) and -the [Satis article](articles/handling-private-packages-with-satis.md) for more -information. - -### Artifact - -There are some cases, when there is no ability to have one of the previously -mentioned repository types online, even the VCS one. Typical example could be -cross-organisation library exchange through built artifacts. Of course, most -of the times they are private. To simplify maintenance, one can simply use a -repository of type `artifact` with a folder containing ZIP archives of those -private packages: - -```json -{ - "repositories": [ - { - "type": "artifact", - "url": "path/to/directory/with/zips/" - } - ], - "require": { - "private-vendor-one/core": "15.6.2", - "private-vendor-two/connectivity": "*", - "acme-corp/parser": "10.3.5" - } -} -``` - -Each zip artifact is just a ZIP archive with `composer.json` in root folder: - -```sh -unzip -l acme-corp-parser-10.3.5.zip - -composer.json -... -``` - -If there are two archives with different versions of a package, they are both -imported. When an archive with a newer version is added in the artifact folder -and you run `update`, that version will be imported as well and Composer will -update to the latest version. - -### Path - -In addition to the artifact repository, you can use the path one, which allows -you to depend on a relative directory. This can be especially useful when dealing -with monolith repositories. - -For instance, if you have the following directory structure in your repository: -``` -- apps -\_ my-app - \_ composer.json -- packages -\_ my-package - \_ composer.json -``` - -Then, to add the package `my/package` as a dependency, in your `apps/my-app/composer.json` -file, you can use the following configuration: - -```json -{ - "repositories": [ - { - "type": "path", - "url": "../../packages/my-package" - } - ], - "require": { - "my/package": "*" - } -} -``` - -The local package will be symlinked if possible, in which case the output in -the console will read `Symlinked from ../../packages/my-package`. If symlinking -is _not_ possible the package will be copied. In that case, the console will -output `Mirrored from ../../packages/my-package`. - -Instead of using a relative path, an absolute path can also be used. - -> **Note:** Repository paths can also contain wildcards like ``*`` and ``?``. -> For details, see the [PHP glob function](http://php.net/glob). - -## Disabling Packagist - -You can disable the default Packagist repository by adding this to your -`composer.json`: - -```json -{ - "repositories": [ - { - "packagist": false - } - ] -} -``` - -← [Schema](04-schema.md) | [Config](06-config.md) → diff --git a/en-back/06-config.md b/en-back/06-config.md deleted file mode 100644 index ec1203d..0000000 --- a/en-back/06-config.md +++ /dev/null @@ -1,189 +0,0 @@ -# Config - -This chapter will describe the `config` section of the `composer.json` -[schema](04-schema.md). - -## process-timeout - -Defaults to `300`. The duration processes like git clones can run before -Composer assumes they died out. You may need to make this higher if you have a -slow connection or huge vendors. - -## use-include-path - -Defaults to `false`. If `true`, the Composer autoloader will also look for classes -in the PHP include path. - -## preferred-install - -Defaults to `auto` and can be any of `source`, `dist` or `auto`. This option -allows you to set the install method Composer will prefer to use. - -## store-auths - -What to do after prompting for authentication, one of: `true` (always store), -`false` (do not store) and `"prompt"` (ask every time), defaults to `"prompt"`. - -## github-protocols - -Defaults to `["git", "https", "ssh"]`. A list of protocols to use when cloning -from github.com, in priority order. You can reconfigure it to for example -prioritize the https protocol if you are behind a proxy or have somehow bad -performances with the git protocol. - -## github-oauth - -A list of domain names and oauth keys. For example using `{"github.com": -"oauthtoken"}` as the value of this option will use `oauthtoken` to access -private repositories on github and to circumvent the low IP-based rate limiting -of their API. [Read -more](articles/troubleshooting.md#api-rate-limit-and-oauth-tokens) on how to get -an OAuth token for GitHub. - -## http-basic - -A list of domain names and username/passwords to authenticate against them. For -example using `{"example.org": {"username": "alice", "password": "foo"}` as the -value of this option will let Composer authenticate against example.org. - -> **Note:** Authentication-related config options like `http-basic` and -> `github-oauth` can also be specified inside a `auth.json` file that goes -> besides your `composer.json`. That way you can gitignore it and every -> developer can place their own credentials in there. - -## platform - -Lets you fake platform packages (PHP and extensions) so that you can emulate a -production env or define your target platform in the config. Example: `{"php": -"5.4", "ext-something": "4.0"}`. - -## vendor-dir - -Defaults to `vendor`. You can install dependencies into a different directory if -you want to. `$HOME` and `~` will be replaced by your home directory's path in -vendor-dir and all `*-dir` options below. - -## bin-dir - -Defaults to `vendor/bin`. If a project includes binaries, they will be symlinked -into this directory. - -## cache-dir - -Defaults to `$COMPOSER_HOME/cache` on unix systems and -`C:\Users\\AppData\Local\Composer` on Windows. Stores all the caches used -by Composer. See also [COMPOSER_HOME](03-cli.md#composer-home). - -## cache-files-dir - -Defaults to `$cache-dir/files`. Stores the zip archives of packages. - -## cache-repo-dir - -Defaults to `$cache-dir/repo`. Stores repository metadata for the `composer` -type and the VCS repos of type `svn`, `github` and `bitbucket`. - -## cache-vcs-dir - -Defaults to `$cache-dir/vcs`. Stores VCS clones for loading VCS repository -metadata for the `git`/`hg` types and to speed up installs. - -## cache-files-ttl - -Defaults to `15552000` (6 months). Composer caches all dist (zip, tar, ..) -packages that it downloads. Those are purged after six months of being unused by -default. This option allows you to tweak this duration (in seconds) or disable -it completely by setting it to 0. - -## cache-files-maxsize - -Defaults to `300MiB`. Composer caches all dist (zip, tar, ..) packages that it -downloads. When the garbage collection is periodically ran, this is the maximum -size the cache will be able to use. Older (less used) files will be removed -first until the cache fits. - -## bin-compat - -Defaults to `auto`. Determines the compatibility of the binaries to be installed. -If it is `auto` then Composer only installs .bat proxy files when on Windows. If -set to `full` then both .bat files for Windows and scripts for Unix-based -operating systems will be installed for each binary. This is mainly useful if you -run Composer inside a linux VM but still want the .bat proxies available for use -in the Windows host OS. - -## prepend-autoloader - -Defaults to `true`. If `false`, the Composer autoloader will not be prepended to -existing autoloaders. This is sometimes required to fix interoperability issues -with other autoloaders. - -## autoloader-suffix - -Defaults to `null`. String to be used as a suffix for the generated Composer -autoloader. When null a random one will be generated. - -## optimize-autoloader - -Defaults to `false`. If `true`, always optimize when dumping the autoloader. - -## sort-packages - -Defaults to `false`. If `true`, the `require` command keeps packages sorted -by name in `composer.json` when adding a new package. - -## classmap-authoritative - -Defaults to `false`. If `true`, the Composer autoloader will only load classes -from the classmap. Implies `optimize-autoloader`. - -## github-domains - -Defaults to `["github.com"]`. A list of domains to use in github mode. This is -used for GitHub Enterprise setups. - -## github-expose-hostname - -Defaults to `true`. If `false`, the OAuth tokens created to access the -github API will have a date instead of the machine hostname. - -## gitlab-domains - -Defaults to `["gitlab.com"]`. A list of domains of GitLab servers. -This is used if you use the `gitlab` repository type. - -## notify-on-install - -Defaults to `true`. Composer allows repositories to define a notification URL, -so that they get notified whenever a package from that repository is installed. -This option allows you to disable that behaviour. - -## discard-changes - -Defaults to `false` and can be any of `true`, `false` or `"stash"`. This option -allows you to set the default style of handling dirty updates when in -non-interactive mode. `true` will always discard changes in vendors, while -`"stash"` will try to stash and reapply. Use this for CI servers or deploy -scripts if you tend to have modified vendors. - -## archive-format - -Defaults to `tar`. Composer allows you to add a default archive format when the -workflow needs to create a dedicated archiving format. - -## archive-dir - -Defaults to `.`. Composer allows you to add a default archive directory when the -workflow needs to create a dedicated archiving format. Or for easier development -between modules. - -Example: - -```json -{ - "config": { - "archive-dir": "/home/user/.composer/repo" - } -} -``` - -← [Repositories](05-repositories.md) | [Community](07-community.md) → diff --git a/en-back/07-community.md b/en-back/07-community.md deleted file mode 100644 index d5bfc55..0000000 --- a/en-back/07-community.md +++ /dev/null @@ -1,35 +0,0 @@ -# Community - -There are many people using Composer already, and quite a few of them are -contributing. - -## Contributing - -If you would like to contribute to Composer, please read the -[README](https://github.com/composer/composer) and -[CONTRIBUTING](https://github.com//composer/composer/blob/master/CONTRIBUTING.md) -documents. - -The most important guidelines are described as follows: - -> All code contributions - including those of people having commit access - must -> go through a pull request and approved by a core developer before being -> merged. This is to ensure proper review of all the code. -> -> Fork the project, create a feature branch, and send us a pull request. -> -> To ensure a consistent code base, you should make sure the code follows -> the [PSR-2 Coding Standards](http://www.php-fig.org/psr/psr-2/). - -## IRC / mailing list - -Mailing lists for [user support](https://groups.google.com/group/composer-users) and -[development](https://groups.google.com/group/composer-dev). - -IRC channels are on irc.freenode.org: [#composer](irc://irc.freenode.org/composer) -for users and [#composer-dev](irc://irc.freenode.org/composer-dev) for development. - -Stack Overflow has a growing collection of -[Composer related questions](https://stackoverflow.com/questions/tagged/composer-php). - -← [Config](06-config.md) diff --git a/en-back/articles/aliases.md b/en-back/articles/aliases.md deleted file mode 100644 index 2b43632..0000000 --- a/en-back/articles/aliases.md +++ /dev/null @@ -1,100 +0,0 @@ - - -# Aliases - -## Why aliases? - -When you are using a VCS repository, you will only get comparable versions for -branches that look like versions, such as `2.0` or `2.0.x`. For your `master` branch, you -will get a `dev-master` version. For your `bugfix` branch, you will get a -`dev-bugfix` version. - -If your `master` branch is used to tag releases of the `1.0` development line, -i.e. `1.0.1`, `1.0.2`, `1.0.3`, etc., any package depending on it will -probably require version `1.0.*`. - -If anyone wants to require the latest `dev-master`, they have a problem: Other -packages may require `1.0.*`, so requiring that dev version will lead to -conflicts, since `dev-master` does not match the `1.0.*` constraint. - -Enter aliases. - -## Branch alias - -The `dev-master` branch is one in your main VCS repo. It is rather common that -someone will want the latest master dev version. Thus, Composer allows you to -alias your `dev-master` branch to a `1.0.x-dev` version. It is done by -specifying a `branch-alias` field under `extra` in `composer.json`: - -```json -{ - "extra": { - "branch-alias": { - "dev-master": "1.0.x-dev" - } - } -} -``` - -The branch version must begin with `dev-` (non-comparable version), the alias -must be a comparable dev version (i.e. start with numbers, and end with -`.x-dev`). The `branch-alias` must be present on the branch that it references. -For `dev-master`, you need to commit it on the `master` branch. - -As a result, anyone can now require `1.0.*` and it will happily install -`dev-master`. - -In order to use branch aliasing, you must own the repository of the package -being aliased. If you want to alias a third party package without maintaining -a fork of it, use inline aliases as described below. - -## Require inline alias - -Branch aliases are great for aliasing main development lines. But in order to -use them you need to have control over the source repository, and you need to -commit changes to version control. - -This is not really fun when you just want to try a bugfix of some library that -is a dependency of your local project. - -For this reason, you can alias packages in your `require` and `require-dev` -fields. Let's say you found a bug in the `monolog/monolog` package. You cloned -[Monolog](https://github.com/Seldaek/monolog) on GitHub and fixed the issue in -a branch named `bugfix`. Now you want to install that version of monolog in your -local project. - -You are using `symfony/monolog-bundle` which requires `monolog/monolog` version -`1.*`. So you need your `dev-bugfix` to match that constraint. - -Just add this to your project's root `composer.json`: - -```json -{ - "repositories": [ - { - "type": "vcs", - "url": "https://github.com/you/monolog" - } - ], - "require": { - "symfony/monolog-bundle": "2.0", - "monolog/monolog": "dev-bugfix as 1.0.x-dev" - } -} -``` - -That will fetch the `dev-bugfix` version of `monolog/monolog` from your GitHub -and alias it to `1.0.x-dev`. - -> **Note:** If a package with inline aliases is required, the alias (right of -> the `as`) is used as the version constraint. The part left of the `as` is -> discarded. As a consequence, if A requires B and B requires `monolog/monolog` -> version `dev-bugfix as 1.0.x-dev`, installing A will make B require -> `1.0.x-dev`, which may exist as a branch alias or an actual `1.0` branch. If -> it does not, it must be re-inline-aliased in A's `composer.json`. - -> **Note:** Inline aliasing should be avoided, especially for published -> packages. If you found a bug, try and get your fix merged upstream. This -> helps to avoid issues for users of your package. diff --git a/en-back/articles/handling-private-packages-with-satis.md b/en-back/articles/handling-private-packages-with-satis.md deleted file mode 100644 index 69da381..0000000 --- a/en-back/articles/handling-private-packages-with-satis.md +++ /dev/null @@ -1,200 +0,0 @@ - - -# Handling private packages with Satis - -Satis is a static `composer` repository generator. It is a bit like an ultra- -lightweight, static file-based version of packagist and can be used to host the -metadata of your company's private packages, or your own. It basically acts as -a micro-packagist. You can get it from -[GitHub](http://github.com/composer/satis) or install via CLI: -`composer.phar create-project composer/satis --stability=dev`. - -## Setup - -For example let's assume you have a few packages you want to reuse across your -company but don't really want to open-source. You would first define a Satis -configuration: a json file with an arbitrary name that lists your curated -[repositories](../05-repositories.md). - -Here is an example configuration, you see that it holds a few VCS repositories, -but those could be any types of [repositories](../05-repositories.md). Then it -uses `"require-all": true` which selects all versions of all packages in the -repositories you defined. - -The default file Satis looks for is `satis.json` in the root of the repository. - -```json -{ - "name": "My Repository", - "homepage": "http://packages.example.org", - "repositories": [ - { "type": "vcs", "url": "http://github.com/mycompany/privaterepo" }, - { "type": "vcs", "url": "http://svn.example.org/private/repo" }, - { "type": "vcs", "url": "http://github.com/mycompany/privaterepo2" } - ], - "require-all": true -} -``` - -If you want to cherry pick which packages you want, you can list all the packages -you want to have in your satis repository inside the classic composer `require` key, -using a `"*"` constraint to make sure all versions are selected, or another -constraint if you want really specific versions. - -```json -{ - "repositories": [ - { "type": "vcs", "url": "http://github.com/mycompany/privaterepo" }, - { "type": "vcs", "url": "http://svn.example.org/private/repo" }, - { "type": "vcs", "url": "http://github.com/mycompany/privaterepo2" } - ], - "require": { - "company/package": "*", - "company/package2": "*", - "company/package3": "2.0.0" - } -} -``` - -Once you did this, you just run `php bin/satis build `. -For example `php bin/satis build config.json web/` would read the `config.json` -file and build a static repository inside the `web/` directory. - -When you ironed out that process, what you would typically do is run this -command as a cron job on a server. It would then update all your package info -much like Packagist does. - -Note that if your private packages are hosted on GitHub, your server should have -an ssh key that gives it access to those packages, and then you should add -the `--no-interaction` (or `-n`) flag to the command to make sure it falls back -to ssh key authentication instead of prompting for a password. This is also a -good trick for continuous integration servers. - -Set up a virtual-host that points to that `web/` directory, let's say it is -`packages.example.org`. Alternatively, with PHP >= 5.4.0, you can use the built-in -CLI server `php -S localhost:port -t satis-output-dir/` for a temporary solution. - -## Usage - -In your projects all you need to add now is your own composer repository using -the `packages.example.org` as URL, then you can require your private packages and -everything should work smoothly. You don't need to copy all your repositories -in every project anymore. Only that one unique repository that will update -itself. - -```json -{ - "repositories": [ { "type": "composer", "url": "http://packages.example.org/" } ], - "require": { - "company/package": "1.2.0", - "company/package2": "1.5.2", - "company/package3": "dev-master" - } -} -``` - -### Security - -To secure your private repository you can host it over SSH or SSL using a client -certificate. In your project you can use the `options` parameter to specify the -connection options for the server. - -Example using a custom repository using SSH (requires the SSH2 PECL extension): - -```json -{ - "repositories": [ - { - "type": "composer", - "url": "ssh2.sftp://example.org", - "options": { - "ssh2": { - "username": "composer", - "pubkey_file": "/home/composer/.ssh/id_rsa.pub", - "privkey_file": "/home/composer/.ssh/id_rsa" - } - } - } - ] -} -``` - -> **Tip:** See [ssh2 context options](http://www.php.net/manual/en/wrappers.ssh2.php#refsect1-wrappers.ssh2-options) for more information. - -Example using HTTP over SSL using a client certificate: - -```json -{ - "repositories": [ - { - "type": "composer", - "url": "https://example.org", - "options": { - "ssl": { - "local_cert": "/home/composer/.ssl/composer.pem" - } - } - } - ] -} -``` - -> **Tip:** See [ssl context options](http://www.php.net/manual/en/context.ssl.php) for more information. - -### Downloads - -When GitHub or BitBucket repositories are mirrored on your local satis, the build process will include -the location of the downloads these platforms make available. This means that the repository and your setup depend -on the availability of these services. - -At the same time, this implies that all code which is hosted somewhere else (on another service or for example in -Subversion) will not have downloads available and thus installations usually take a lot longer. - -To enable your satis installation to create downloads for all (Git, Mercurial and Subversion) your packages, add the -following to your `satis.json`: - -```json -{ - "archive": { - "directory": "dist", - "format": "tar", - "prefix-url": "https://amazing.cdn.example.org", - "skip-dev": true - } -} -``` - -#### Options explained - - * `directory`: the location of the dist files (inside the `output-dir`) - * `format`: optional, `zip` (default) or `tar` - * `prefix-url`: optional, location of the downloads, homepage (from `satis.json`) followed by `directory` by default - * `skip-dev`: optional, `false` by default, when enabled (`true`) satis will not create downloads for branches - -Once enabled, all downloads (include those from GitHub and BitBucket) will be replaced with a _local_ version. - -#### prefix-url - -Prefixing the URL with another host is especially helpful if the downloads end up in a private Amazon S3 -bucket or on a CDN host. A CDN would drastically improve download times and therefore package installation. - -Example: A `prefix-url` of `http://my-bucket.s3.amazonaws.com` (and `directory` set to `dist`) creates download URLs -which look like the following: `http://my-bucket.s3.amazonaws.com/dist/vendor-package-version-ref.zip`. - - -### Resolving dependencies - -It is possible to make satis automatically resolve and add all dependencies for your projects. This can be used -with the Downloads functionality to have a complete local mirror of packages. Just add the following -to your `satis.json`: - -```json -{ - "require-dependencies": true -} -``` - -When searching for packages, satis will attempt to resolve all the required packages from the listed repositories. -Therefore, if you are requiring a package from Packagist, you will need to define it in your `satis.json`. diff --git a/en-back/articles/plugins.md b/en-back/articles/plugins.md deleted file mode 100644 index 65884fd..0000000 --- a/en-back/articles/plugins.md +++ /dev/null @@ -1,160 +0,0 @@ - - -# Setting up and using plugins - -## Synopsis - -You may wish to alter or expand Composer's functionality with your own. For -example if your environment poses special requirements on the behaviour of -Composer which do not apply to the majority of its users or if you wish to -accomplish something with composer in a way that is not desired by most users. - -In these cases you could consider creating a plugin to handle your -specific logic. - -## Creating a Plugin - -A plugin is a regular composer package which ships its code as part of the -package and may also depend on further packages. - -### Plugin Package - -The package file is the same as any other package file but with the following -requirements: - -1. the [type][1] attribute must be `composer-plugin`. -2. the [extra][2] attribute must contain an element `class` defining the - class name of the plugin (including namespace). If a package contains - multiple plugins this can be array of class names. - -Additionally you must require the special package called `composer-plugin-api` -to define which composer API versions your plugin is compatible with. The -current composer plugin API version is 1.0.0. - -For example - -```json -{ - "name": "my/plugin-package", - "type": "composer-plugin", - "require": { - "composer-plugin-api": "1.0.0" - } -} -``` - -### Plugin Class - -Every plugin has to supply a class which implements the -[`Composer\Plugin\PluginInterface`][3]. The `activate()` method of the plugin -is called after the plugin is loaded and receives an instance of -[`Composer\Composer`][4] as well as an instance of -[`Composer\IO\IOInterface`][5]. Using these two objects all configuration can -be read and all internal objects and state can be manipulated as desired. - -Example: - -```php -getInstallationManager()->addInstaller($installer); - } -} -``` - -## Event Handler - -Furthermore plugins may implement the -[`Composer\EventDispatcher\EventSubscriberInterface`][6] in order to have its -event handlers automatically registered with the `EventDispatcher` when the -plugin is loaded. - -The events available for plugins are: - -* **COMMAND**, is called at the beginning of all commands that load plugins. - It provides you with access to the input and output objects of the program. -* **PRE_FILE_DOWNLOAD**, is triggered before files are downloaded and allows - you to manipulate the `RemoteFilesystem` object prior to downloading files - based on the URL to be downloaded. - -> A plugin can also subscribe to [script events][7]. - -Example: - -```php -composer = $composer; - $this->io = $io; - } - - public static function getSubscribedEvents() - { - return array( - PluginEvents::PRE_FILE_DOWNLOAD => array( - array('onPreFileDownload', 0) - ), - ); - } - - public function onPreFileDownload(PreFileDownloadEvent $event) - { - $protocol = parse_url($event->getProcessedUrl(), PHP_URL_SCHEME); - - if ($protocol === 's3') { - $awsClient = new AwsClient($this->io, $this->composer->getConfig()); - $s3RemoteFilesystem = new S3RemoteFilesystem($this->io, $event->getRemoteFilesystem()->getOptions(), $awsClient); - $event->setRemoteFilesystem($s3RemoteFilesystem); - } - } -} -``` - -## Using Plugins - -Plugin packages are automatically loaded as soon as they are installed and will -be loaded when composer starts up if they are found in the current project's -list of installed packages. Additionally all plugin packages installed in the -`COMPOSER_HOME` directory using the composer global command are loaded before -local project plugins are loaded. - -> You may pass the `--no-plugins` option to composer commands to disable all -> installed commands. This may be particularly helpful if any of the plugins -> causes errors and you wish to update or uninstall it. - -[1]: ../04-schema.md#type -[2]: ../04-schema.md#extra -[3]: https://github.com/composer/composer/blob/master/src/Composer/Plugin/PluginInterface.php -[4]: https://github.com/composer/composer/blob/master/src/Composer/Composer.php -[5]: https://github.com/composer/composer/blob/master/src/Composer/IO/IOInterface.php -[6]: https://github.com/composer/composer/blob/master/src/Composer/EventDispatcher/EventSubscriberInterface.php -[7]: ./scripts.md#event-names diff --git a/en-back/articles/scripts.md b/en-back/articles/scripts.md deleted file mode 100644 index ccd8caf..0000000 --- a/en-back/articles/scripts.md +++ /dev/null @@ -1,133 +0,0 @@ - - -# Scripts - -## What is a script? - -A script, in Composer's terms, can either be a PHP callback (defined as a -static method) or any command-line executable command. Scripts are useful -for executing a package's custom code or package-specific commands during -the Composer execution process. - -**NOTE: Only scripts defined in the root package's `composer.json` are -executed. If a dependency of the root package specifies its own scripts, -Composer does not execute those additional scripts.** - - -## Event names - -Composer fires the following named events during its execution process: - -- **pre-install-cmd**: occurs before the `install` command is executed. -- **post-install-cmd**: occurs after the `install` command is executed. -- **pre-update-cmd**: occurs before the `update` command is executed. -- **post-update-cmd**: occurs after the `update` command is executed. -- **pre-status-cmd**: occurs before the `status` command is executed. -- **post-status-cmd**: occurs after the `status` command is executed. -- **pre-package-install**: occurs before a package is installed. -- **post-package-install**: occurs after a package is installed. -- **pre-package-update**: occurs before a package is updated. -- **post-package-update**: occurs after a package is updated. -- **pre-package-uninstall**: occurs before a package has been uninstalled. -- **post-package-uninstall**: occurs after a package has been uninstalled. -- **pre-autoload-dump**: occurs before the autoloader is dumped, either - during `install`/`update`, or via the `dump-autoload` command. -- **post-autoload-dump**: occurs after the autoloader is dumped, either - during `install`/`update`, or via the `dump-autoload` command. -- **post-root-package-install**: occurs after the root package has been - installed, during the `create-project` command. -- **post-create-project-cmd**: occurs after the `create-project` command is - executed. -- **pre-archive-cmd**: occurs before the `archive` command is executed. -- **post-archive-cmd**: occurs after the `archive` command is executed. - -**NOTE: Composer makes no assumptions about the state of your dependencies -prior to `install` or `update`. Therefore, you should not specify scripts that -require Composer-managed dependencies in the `pre-update-cmd` or -`pre-install-cmd` event hooks. If you need to execute scripts prior to -`install` or `update` please make sure they are self-contained within your -root package.** - -## Defining scripts - -The root JSON object in `composer.json` should have a property called -`"scripts"`, which contains pairs of named events and each event's -corresponding scripts. An event's scripts can be defined as either as a string -(only for a single script) or an array (for single or multiple scripts.) - -For any given event: - -- Scripts execute in the order defined when their corresponding event is fired. -- An array of scripts wired to a single event can contain both PHP callbacks -and command-line executables commands. -- PHP classes containing defined callbacks must be autoloadable via Composer's -autoload functionality. - -Script definition example: - -```json -{ - "scripts": { - "post-update-cmd": "MyVendor\\MyClass::postUpdate", - "post-package-install": [ - "MyVendor\\MyClass::postPackageInstall" - ], - "post-install-cmd": [ - "MyVendor\\MyClass::warmCache", - "phpunit -c app/" - ] - } -} -``` - -Using the previous definition example, here's the class `MyVendor\MyClass` -that might be used to execute the PHP callbacks: - -```php -getComposer(); - // do stuff - } - - public static function postPackageInstall(Event $event) - { - $installedPackage = $event->getOperation()->getPackage(); - // do stuff - } - - public static function warmCache(Event $event) - { - // make cache toasty - } -} -``` - -When an event is fired, Composer's internal event handler receives a -`Composer\Script\Event` object, which is passed as the first argument to your -PHP callback. This `Event` object has getters for other contextual objects: - -- `getComposer()`: returns the current instance of `Composer\Composer` -- `getName()`: returns the name of the event being fired as a string -- `getIO()`: returns the current input/output stream which implements -`Composer\IO\IOInterface` for writing to the console - -## Running scripts manually - -If you would like to run the scripts for an event manually, the syntax is: - -```sh -composer run-script [--dev] [--no-dev] script -``` - -For example `composer run-script post-install-cmd` will run any **post-install-cmd** scripts that have been defined. diff --git a/en-back/articles/troubleshooting.md b/en-back/articles/troubleshooting.md deleted file mode 100644 index 838b761..0000000 --- a/en-back/articles/troubleshooting.md +++ /dev/null @@ -1,153 +0,0 @@ - -# Troubleshooting - -This is a list of common pitfalls on using Composer, and how to avoid them. - -## General - -1. Before asking anyone, run [`composer diagnose`](../03-cli.md#diagnose) to check - for common problems. If it all checks out, proceed to the next steps. - -2. When facing any kind of problems using Composer, be sure to **work with the - latest version**. See [self-update](../03-cli.md#self-update) for details. - -3. Make sure you have no problems with your setup by running the installer's - checks via `curl -sS https://getcomposer.org/installer | php -- --check`. - -4. Ensure you're **installing vendors straight from your `composer.json`** via - `rm -rf vendor && composer update -v` when troubleshooting, excluding any - possible interferences with existing vendor installations or `composer.lock` - entries. - -## Package not found - -1. Double-check you **don't have typos** in your `composer.json` or repository - branches and tag names. - -2. Be sure to **set the right - [minimum-stability](../04-schema.md#minimum-stability)**. To get started or be - sure this is no issue, set `minimum-stability` to "dev". - -3. Packages **not coming from [Packagist](https://packagist.org/)** should - always be **defined in the root package** (the package depending on all - vendors). - -4. Use the **same vendor and package name** throughout all branches and tags of - your repository, especially when maintaining a third party fork and using - `replace`. - -## Package not found on travis-ci.org - -1. Check the ["Package not found"](#package-not-found) item above. - -2. If the package tested is a dependency of one of its dependencies (cyclic - dependency), the problem might be that composer is not able to detect the version - of the package properly. If it is a git clone it is generally alright and Composer - will detect the version of the current branch, but travis does shallow clones so - that process can fail when testing pull requests and feature branches in general. - The best solution is to define the version you are on via an environment variable - called COMPOSER_ROOT_VERSION. You set it to `dev-master` for example to define - the root package's version as `dev-master`. - Use: `before_script: COMPOSER_ROOT_VERSION=dev-master composer install` to export - the variable for the call to composer. - -## Need to override a package version - -Let say your project depends on package A which in turn depends on a specific -version of package B (say 0.1) and you need a different version of that -package - version 0.11. - -You can fix this by aliasing version 0.11 to 0.1: - -composer.json: - -```json -{ - "require": { - "A": "0.2", - "B": "0.11 as 0.1" - } -} -``` - -See [aliases](aliases.md) for more information. - -## Memory limit errors - -If composer shows memory errors on some commands: - -`PHP Fatal error: Allowed memory size of XXXXXX bytes exhausted <...>` - -The PHP `memory_limit` should be increased. - -> **Note:** Composer internally increases the `memory_limit` to `512M`. -> If you have memory issues when using composer, please consider [creating -> an issue ticket](https://github.com/composer/composer/issues) so we can look into it. - -To get the current `memory_limit` value, run: - -```sh -php -r "echo ini_get('memory_limit').PHP_EOL;" -``` - -Try increasing the limit in your `php.ini` file (ex. `/etc/php5/cli/php.ini` for -Debian-like systems): - -```ini -; Use -1 for unlimited or define an explicit value like 512M -memory_limit = -1 -``` - -Or, you can increase the limit with a command-line argument: - -```sh -php -d memory_limit=-1 composer.phar <...> -``` - -## "The system cannot find the path specified" (Windows) - -1. Open regedit. -2. Search for an ```AutoRun``` key inside ```HKEY_LOCAL_MACHINE\Software\Microsoft\Command Processor``` - or ```HKEY_CURRENT_USER\Software\Microsoft\Command Processor```. -3. Check if it contains any path to non-existent file, if it's the case, just remove them. - -## API rate limit and OAuth tokens - -Because of GitHub's rate limits on their API it can happen that Composer prompts -for authentication asking your username and password so it can go ahead with its work. - -If you would prefer not to provide your GitHub credentials to Composer you can -manually create a token using the following procedure: - -1. [Create](https://github.com/settings/applications) an OAuth token on GitHub. -[Read more](https://github.com/blog/1509-personal-api-tokens) on this. - -2. Add it to the configuration running `composer config -g github-oauth.github.com ` - -Now Composer should install/update without asking for authentication. - -## proc_open(): fork failed errors -If composer shows proc_open() fork failed on some commands: - -`PHP Fatal error: Uncaught exception 'ErrorException' with message 'proc_open(): fork failed - Cannot allocate memory' in phar` - -This could be happening because the VPS runs out of memory and has no Swap space enabled. - -```sh -free -m - -total used free shared buffers cached -Mem: 2048 357 1690 0 0 237 --/+ buffers/cache: 119 1928 -Swap: 0 0 0 -``` - -To enable the swap you can use for example: - -```sh -/bin/dd if=/dev/zero of=/var/swap.1 bs=1M count=1024 -/sbin/mkswap /var/swap.1 -/sbin/swapon /var/swap.1 -``` diff --git a/en-back/articles/vendor-binaries.md b/en-back/articles/vendor-binaries.md deleted file mode 100644 index 75087b5..0000000 --- a/en-back/articles/vendor-binaries.md +++ /dev/null @@ -1,113 +0,0 @@ - - -# Vendor binaries and the `vendor/bin` directory - -## What is a vendor binary? - -Any command line script that a Composer package would like to pass along -to a user who installs the package should be listed as a vendor binary. - -If a package contains other scripts that are not needed by the package -users (like build or compile scripts) that code should not be listed -as a vendor binary. - - -## How is it defined? - -It is defined by adding the `bin` key to a project's `composer.json`. -It is specified as an array of files so multiple binaries can be added -for any given project. - -```json -{ - "bin": ["bin/my-script", "bin/my-other-script"] -} -``` - -## What does defining a vendor binary in composer.json do? - -It instructs Composer to install the package's binaries to `vendor/bin` -for any project that **depends** on that project. - -This is a convenient way to expose useful scripts that would -otherwise be hidden deep in the `vendor/` directory. - - -## What happens when Composer is run on a composer.json that defines vendor binaries? - -For the binaries that a package defines directly, nothing happens. - - -## What happens when Composer is run on a composer.json that has dependencies with vendor binaries listed? - -Composer looks for the binaries defined in all of the dependencies. A -symlink is created from each dependency's binaries to `vendor/bin`. - -Say package `my-vendor/project-a` has binaries setup like this: - -```json -{ - "name": "my-vendor/project-a", - "bin": ["bin/project-a-bin"] -} -``` - -Running `composer install` for this `composer.json` will not do -anything with `bin/project-a-bin`. - -Say project `my-vendor/project-b` has requirements setup like this: - -```json -{ - "name": "my-vendor/project-b", - "require": { - "my-vendor/project-a": "*" - } -} -``` - -Running `composer install` for this `composer.json` will look at -all of project-b's dependencies and install them to `vendor/bin`. - -In this case, Composer will make `vendor/my-vendor/project-a/bin/project-a-bin` -available as `vendor/bin/project-a-bin`. On a Unix-like platform -this is accomplished by creating a symlink. - - -## What about Windows and .bat files? - -Packages managed entirely by Composer do not *need* to contain any -`.bat` files for Windows compatibility. Composer handles installation -of binaries in a special way when run in a Windows environment: - - * A `.bat` file is generated automatically to reference the binary - * A Unix-style proxy file with the same name as the binary is generated - automatically (useful for Cygwin or Git Bash) - -Packages that need to support workflows that may not include Composer -are welcome to maintain custom `.bat` files. In this case, the package -should **not** list the `.bat` file as a binary as it is not needed. - - -## Can vendor binaries be installed somewhere other than vendor/bin? - -Yes, there are two ways an alternate vendor binary location can be specified: - - 1. Setting the `bin-dir` configuration setting in `composer.json` - 1. Setting the environment variable `COMPOSER_BIN_DIR` - -An example of the former looks like this: - -```json -{ - "config": { - "bin-dir": "scripts" - } -} -``` - -Running `composer install` for this `composer.json` will result in -all of the vendor binaries being installed in `scripts/` instead of -`vendor/bin/`. diff --git a/en-back/dev/DefaultPolicy.md b/en-back/dev/DefaultPolicy.md deleted file mode 100644 index 61db2bf..0000000 --- a/en-back/dev/DefaultPolicy.md +++ /dev/null @@ -1,55 +0,0 @@ -# Default Solver Policy - -A solver policy defines behaviour variables of the dependency solver. It decides -which versions are considered newer than others, which packages should be -preferred over others and whether operations like downgrades or uninstall are -allowed. - -## Selection of preferred Packages - -The following describe package pool situations with user requests and the -resulting order in which the solver will try to install them. - -The rules are to be applied in the order of these descriptions. - -### Package versions - -Packages: Av1, Av2, Av3 - -* Installed: Av2 - -Request: install A - -* (Av3) - -### Repository priorities - -Packages Repo1.Av1, Repo2.Av1 - -* priority(Repo1) >= priority(Repo2) => (Repo1.Av1, Repo2.Av1) -* priority(Repo1) < priority(Repo2) => (Repo2.Av1, Repo1.Av1) - -### Virtual Packages (provides) - -Packages Av1, Bv1 - -* Av1 provides Xv1 -* Bv1 provides Xv1 - -Request: install X - -* priority(Av1.repo) >= priority(Bv1.repo) => (Av1, Bv1) -* priority(Av1.repo) < priority(Bv1.repo) => (Bv1, Av1) - -### Package replacements - -Packages: Av1, Bv2 - -* Bv2 replaces Av1 - -Request: install A - -* priority(Av1.repo) >= priority(Bv2.repo) => (Av1, Bv2) -* priority(Av1.repo) < priority(Bv2.repo) => (Bv2, Av1) - -Bv2 version is ignored, only the replacement version for A matters. diff --git a/fhir-in-action/_images/Eclipse-Temurin-JDK.png b/fhir-in-action/_images/Eclipse-Temurin-JDK.png deleted file mode 100644 index a2e4b52e1693f90b5238b3e72aa69ddc563304d0..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 75490 zcmeFZWl&r}*Dg9ZA!rD$A;I0AZq@B#YHFH2vv;q(di8pq_4E$^`b7#2g%AY*0HDc8i+=+E;I5&s&&Y_-9%|R3f4Fv(lf2vaMbSymW<%J;9oz{Ak;81H8Nz zGGRw2eJpg5?#f=?5sMOTU`jKY$z#dPGq(22~JIeEyD0AkYl!rw14G z9pno5W$FszCo6>(9RA7g4Y5c?2%TszB|2{8$nO3=(>{LsUD;HYuClDV&T(_~`SAe; z_2xFK6^yhjT>Saz_6fNx^-bJDc$hgX)QofyB^~NG7xrdD6+}+=eOfJr^!AG!VIdj5w(d6HCeTNLf)F+j6I-JnTve%R__3$4XiS zMK+&7QU5Qjp(C@akliDb@80h6o{(l_0{sCMk4Z50zH@i$Au{6ldp^qCGd=Fv@}+>^ z)$0M2+1{RvTBPWPFH}f$FycO>&TYz7TbNiGxA=dsp$;@G#GGZ}fRMM_ip5+0qSSo@ zis*c#;_xZP4A1?hW^rqHNklDr*vF`Vlt zpMO^_GHrDEd?UX9hl^R15pZ-Up_q*=ChnYR^i@$@+_|E)0S5go`N>hgh+__$-^!1C z1ciOcerj2>`?>S$eZUy8|9g68qp+|sMPi!Ruqi?z+7I`oG>AfkDQbr0V#^5$G@w1g ztt%EpUlP&NPHFuq6f41lii+PJTifehLRW1BL>5f<&2)cOG$KoMgvL1pf;t*MhCK@ z|~WEeT8>VlN&q2{_#5#sEzWdk(${S)h?;(0$4KW_S>dkgrjaC@oF z)u3n`9I`ka>|OBLnXoXMkOLtpNmd`R6nGG?#lIWiPuU9dkt(v|Pj8{js|g4G;2*Fj ze=fI4(-tq9*&CigTx}pt#QfWYyRz%aYT!KW{u3<*c=v&;tYmmT$bHX7_^il6ONZ;-ZL#fv>X6x=p6e=%iiN&ESswUPa);}_RYXd;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t?Z+^87$-B_Nq7l5EaH;muIhpn9h^ePE(GywnH72NbOX-aP`R#u zcKi}z{H*)^Q;S(Z*88?Ds&yR3%`f%=0DJsDu$2acvW=ATlxy$t?nT5>@QYFFm@)83MY}Pt zvrth!GeX@i5ke?l(ZRcFdUvo57fF~ko;dN~YJ4O!r3^ekXQf(#3B4+_nusu|kfwkz zW&+*oOUAHo;Rtsvz^vXqqVzkxa2EDJrDxjjs{#_-{SClBYi8ngZk^SZ>!Ac-7RP=Y z4W-~D^^5>Mqr_Nc7>;e7N?Of}K9Ivj+5`iBCh%H?_BNHth7gr^uAod3m7pb83!HqC zJo^eA+S0Yu0jd%sGSyqK%Zf8LHntXQkZo%xFU)qYZxsHPRv8oH`j1LA;KH&o&s^ZO zmSDJ%b3GZFBA`U9-aH+UO%Vhl;NPi?kF-G33+Wpha>IX^#0FNHA>0?ZQ1U#~*zFWipJ(J7% a#^dnTO~k;_}>7xi^qci diff --git a/fhir-in-action/_images/php-install-04.png b/fhir-in-action/_images/php-install-04.png deleted file mode 100644 index 334aa47209d739bc6afc6e2f368c27703a4b784d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 41750 zcmZU)V~j3L6RtZp)_9HijBVStZQJ&&v2EM7ZQHi3^L{z!WdGRRNmr#h>0jN~ovKua z%gc(v!(hPx0Rh2FhzlzM0f9&Y0RcZjf&LeHUVdN#0s;k+msS?}{r&y<`8j*}J$U%f z`)~d)aPs&&b@qFIfB*gc^ZoUGeSQ7=`~Cgq|>|6Gr~9Z&y$t(J_Q)(&m{va?s! z*7XeZ?~heiRg|>kC3fz8FZR_1hlQ7R@0I3f9Za`nXXRYZ*7uGs{)^3fd$>%@9ZHW4 z?ds^5>nP4hNy@8e_<6hk-SSAuElY1$@Ur!&Y3;c^UN0=2xZW8VIR7n)E9hE2i%-p+ zt%$9gy8KzQnyJrfpWJ`B+;8fh-Cr2%swqh7-cKyA-#fV-Svx4o@BTe4{n~2n-*^}; zDMYTpaY@hx54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M3%g*V3GX2Gv}5!CF&h5^J$q zs{G8g(wxixehOA^KD8|ub~541QWj6T3*a2Agdv5`MSd1$U2@l@rUY-2YrA+@K0YoQ z+?APxifOq|9pHmJ)T+>e>e zG^$W_g^QjhB5z?*$N=%Q8nr~D85D*ktWs!dZ37%Gv_R0v*ePgK zA%Nh9om5@$-nv@R2D_GQOE%azD2*k;R45Vy{Ip|X3q{QZNxyi$qx($AY&z4_-Q2CT z5$X6uS=a_AscS&B1(O9|3y5XIQPURXhP#mFXva_*X)aqBTDS=aJ3wn@*fLmz%qaMG zgTWiJFjhSazIzt~=_26AYkQrYH$)rEm%sV&2l-0CB8r9>!6~(j7(t5o3O8xGW8k6) znK7Rw9f+bK3ZoW&iV%!a9rwobDw+gWL;tqO^NtfC@w=Kr)k(+45=`i=rR;V5<4D6KN!17XV31fqXjSI^ZD`R zd~RPqSQW=v(Vz2rM_$)~dR?PZPvSs77&{Eq?=ni|G%sC}!vAT{-fj?t!7zZb0=#yG zj^G4N(E(h+cbLK{OxVH|9K{w;&_v^dL1WHINW&$8hPL7RNmZRcqw5swwBPK~&%E9_ z$;K%c#xe6$!;p?s53i+yF&>3wwKpt_zhSK;+#Dw7CO_k`XxrSD`}bYnb$u3I1^)XJ z_q$K7s-7QjN(L@lX;S@*CA3?0CWOb5$9w%;*Ia%c#$t}BDOKC?%V=0oPw{)Rs8J&Q zz^b$OWi+&T_Jnys@-qnl00000000000000000000000000000000000_-hxndwf!C Sc6rbM0000" - }, - "extension": [ - { - "url": "http://example.org/consent#trials", - "valueCode": "renal" - } - ], - "identifier": [ - { - "use": "usual", - "label": "MRN", - "system": "http://www.goodhealth.org/identifiers/mrn", - "value": "123456" - } - ], - "name": [ - { - "family": [ - "Levin" - ], - "given": [ - "Henry" - ], - "suffix": [ - "The 7th" - ] - } - ], - "gender": { - "text": "Male" - }, - "birthDate": "1932-09-24", - "active": true -} - - -```` - -每个资源包括如下内容: - -* **resourceType** (line 2) - 必须要有: FHIR 中定义了多种资源类型,详细列表请查看[the full index](resourcelist.html) -* **id** (line 3) - 资源自身的id(而非资源中数据的ID 相当于资源在数据库中的主键). 一般而言都是要有的,除了在新建时之外。 -* **meta** (lines 4 - 7) - 通常要由 : [所有资源都会有的属性(这里和其他地方对元数据的定义略有偏差,参考https://github.com/memect/hao/issues/296)](resources.html#meta)受基础架构控制. 如果没有元数据可以为空 -* **text** (lines 12 - 17) - 推荐使用: XHTML 包含了资源中 [供人可读的部分](narrative.html) -* **extension** (lines 12 - 17) - 可选: [Extensions](extensibility.html)由扩展框架所定义 -* **data** (lines 18 - 43) - 可选: 每种资源所定义的数据项。 - -备注 尽管标准中总是以所定义的顺序来显示JSON中数据的顺序,但很多JSON库有其他排序标准。 -### 1.7.1.3 交互 - -为了操作数据,FHIR 定义了[REST API](http.html): - -* [Create](http.html#create) = POST https://example.com/path/{resourceType} -* [Read](http.html#read) = GET https://example.com/path/{resourceType}/{id} -* [Update](http.html#update) = PUT https://example.com/path/{resourceType}/{id} -* [Delete](http.html#delete) = DELETE https://example.com/path/{resourceType}/{id} -* [Search](http.html#search) = GET https://example.com/path/{resourceType}?search parameters... -* [History](http.html#history) = GET https://example.com/path/{resourceType}/{id}/_history -* [Transaction](http.html#transaction) = POST https://example.com/path/ -* [Operation](operations.html) = GET https://example.com/path/{resourceType}/{id}/${opname} - -除了RESTful API之外,FHIR 中还定义了其他的数据交换方式,包括 [文档](documents.html), -[消息](messaging.html)和其他类型的[服务](services.html). - -### 1.7.1.4 对多样性的管理 - -医疗行业的一大特点就是不同地区和细分行业都存在很大的差异性,并不存在一个集中式的权威机构来定义通用的行业规范。鉴于此, -FHIR 中定义了[通用扩展框架](extensibility.html)和 -[管理多样性的框架](profiling.html). - -### 1.7.1.5 新增资源 - -为了[新增资源](http.html#create), 需要发送一个 HTTP 的 POST 请求到某个资源节点(也就是某个URL).如下所示 - -``` - POST https://example.com/path/{resourceType} -```` - - -``` -POST {some base path}/Patient HTTP/1.1 -Authorization: Bearer 37CC0B0E-C15B-4578-9AC1-D83DCED2B2F9 -Accept: application/json+fhir -Content-Type: application/json+fhir -Content-Length: 1198 - -{ - "resourceType": "Patient", - ... -} -```` - -向服务器提交一条患者记录, 服务器可以根据自己的情况分配ID来存储该患者记录。备注: - -* **/Patient** (line 1) - 处理所有患者的节点- 这里使用资源类型的名称 -* **Authorization** (line 2) - 参考 [Security for FHIR](security.html) -* **Accept, Content-Type** (lines 3-4) - 如果资源的数据是JSON格式,content type需要设置成这样application/json+fhir (XML的话设置成 application/xml+fhir). 数据的编码始终是UTF-8 -* **id** (line 9) - 待新建的记录中并没有id,由服务器来分配 -* Resource Content, lines 8+ - 这时候也没有任何元数据。资源的其他部分同上述示例 - -### 1.7.1.6 新增资源的响应 - -响应中包含HTTP 201,表示服务器已经成功新建该条记录。location header 属性中包含了访问该资源的URL。响应中亦可包含[OperationOutcome](operationoutcome.html) 资源来表达处理的一些细节,并不做硬性要求。 - -``` -HTTP/1.1 201 Created -Content-Length: 161 -Content-Type: application/json+fhir -Date: Mon, 18 Aug 2014 01:43:30 GMT -ETag: "1" -Location: http://example.com/Patient/347 - -{ - "resourceType": "OperationOutcome", - "text": { - "status": "generated", - "div": "

" - } -} -```` - -Notes: - -* **HTTP/1.1 201** (line 1) - 操作成功. Note that HTTP/1.1 is strongly recommended but not required -* **ETag** (line 5) - used in the [version aware update](http.html#update) pattern -* **Location** (line 6) - the id the server assigned to the resource. The id in the url must match the id in the resource when it is subsequently returned -* **operationOutcome** (line 9) - OperationOutcome resources in this context have no id or meta element (they have no managed identity) - -#### 1.7.1.6.1 Error response - -出于多种原因,服务器会返回一个错误信息,FHIR 内容相关的一些错误信息以HTTP 状态码加一个[OperationOutcome](operationoutcome.html)来表达. -如下是一个不满足服务器端业务规则时的返回信息: - -``` -HTTP/1.1 422 Unprocessable Entity -Content-Length: 161 -Content-Type: application/json+fhir -Date: Mon, 18 Aug 2014 01:43:30 GMT - -{ - "resourceType": "OperationOutcome", - "text": { - "status": "generated", - "div": "
MRN conflict - - the MRN 123456 is already assigned to a different patient
" - }, -} -```` - -Notes: - -* 服务器可通过[OperationOutcome](operationoutcome.html)来表达更为详细的错误信息 - -### 1.7.1.7 Read Request - -[读取资源内容](http.html#read)是通过HTTP GET请求来实现的. - -``` - GET https://example.com/path/{resourceType}/{id} -```` - -``` -GET /Patient/347?_format=xml HTTP/1.1 -Host: example.com -Accept: application/xml+fhir -Cache-Control: no-cache -```` - -Notes: - -* **347** (line 1) - 要访问资源的id -* **_format=xml** (line 1) - 希望返回的数据格式,这种方式适合于客户端无法访问HTTP 头信息的情况,例如XSLT转换时,也可以通过HTTP 头中的accept字段来指定(see [Mime Types](http.html#mimetypes) -* **cache control** (line 4) - 如何控制并发是很重要的,但FHIR中并未做出规定,更多信息请参考[http://www.w3.org/Protocols/rfc2616/rfc2616-sec13.html](http://www.w3.org/Protocols/rfc2616/rfc2616-sec13.html) 或者 [https://www.mnot.net/cache_docs/](https://www.mnot.net/cache_docs/) - -### 1.7.1.8 Read Response - -读取单个资源内容GET请求的响应是单独的一个资源. - -``` -HTTP/1.1 200 OK -Content-Length: 729 -Content-Type: application/xml+fhir -Last-Modified: Sun, 17 Aug 2014 15:43:30 GMT -ETag: "1" - - - - - - - - - - - -```` - -Notes: - -* **id** (line 8) - 资源的id,与请求中的id一致 -* **versionId** (line 11) - 该资源的最新版本. 最佳实践中要求该值与 ETag值匹配 (see [version aware update](http.html#update)), 对于客户端而言,不能认为二者总是匹配的. 一部分服务器并不记录资源的版本信息。 -* 尽管建议服务器能够保留版本信息,但不做强制性要求 -* **lastUpdated** (line 12) - 如果存在该字段,字段值应与HTTP header中的值保持一致 - -### 1.7.1.9 Search Request - -除了读取单个资源内容之外,也可以通过[查询参数和变量](search.html) [查询资源内容](http.html#search),形式一般如下: - -
-
-  GET https://example.com/path/{resourceType}?criteria
-
-
- -The criteria is a set of -http parameters that specify which resources to return. The search operation - -
-
-https://example.com/base/MedicationPrescription?patient=347
-
-
- -会返回该患者的所有处方信息. - -### 1.7.1.10 Search Response - -查询请求返回的对象是一个[bundle](extras.html#bundle): 如未明确要求,只返回满足查询参数要求的资源元数据: - -``` -{ - "resourceType": "Bundle", - "id" : "eceb4882-5c7e-4ca4-af62-995dfb8cef01" - "meta" : { - "lastUpdated" : "2014-08-19T15:43:30Z" - }, - "base": "http://example.com/base", - "total": "3", - "link": [ - { - "relation" : "next", - "url" : "https://example.com/base/MedicationPrescription?patient=347&searchId=ff15fd40-ff71-4b48-b366-09c706bed9d0&page=2" - }, { - "relation" : "self", - "url" : "https://example.com/base/MedicationPrescription?patient=347" - } - ], - "entry": [ - { - "resource" : { - "resourceType": "MedicationPrescription", - "id" : "3123", - "meta" : { - "versionId" : "1", - "lastUpdated" : "2014-08-16T05:31:17Z" - }, - ... content of resource ... - }, - }, - ... 2 additional resources .... - ] -} -```` -Notes: - -* **resourceType** (line 7) - "SearchResults" is the name for a bundle returned from a search -* **id** (line 3) -服务器为该次查询响应bundle的唯一标识. 有些情况下要求该id满足 [ 全球唯一](extras.html#bundle-unique) -* **meta.lastUpdated** (line 10) - This should match the HTTP header, and should be the date the search was executed, or more recent, depending on how the [server handles ongoing updates](search.html#currency). The lastUpdated data SHALL be the same or more recent than the most recent resource in the results -* **base** (line 12) - 返回的内容中所有[资源引用](references.html) 相对地址的根地址。 -* **total** (line 13) - 满足查询条件的记录数量. 这里的数量指的是总数,而非仅该bundle中所包含的数量,详情查看 [可以对结果进行分页查询](http.html#search) -* **link** (line 14) - A set of named links that give related contexts to this bundle. Names defined in this specification: [first](http.html#search), [prev](http.html#search), [next](http.html#search), [last](http.html#search), [self](http.html#search) -* **item** (line 23) - 用来表达满足查询条件的实际资源的元数据信息 -* 如果加上include标签,可以强制要求服务器在返回结果中包含资源的内容,详情请参阅[return additional related resources](search.html#include) - -### 1.7.1.11 Update Request - -客户端用新版本的资源记录替换服务器中的老版本. - -``` - PUT https://example.com/path/{resourceType}/{id} -```` - - Note that there does not need to be a resource already existing at {id} - the server may elect to automatically create the resource at the specified address. Here is an example of updating a patient: -``` -PUT /Patient/347 HTTP/1.1 -Host: example.com -Content-Type: application/json+fhir -Content-Length: 1435 -Accept: application/json+fhir -If-Match: 1 - -{ - "resourceType": "Patient", - "id" : "347", - "meta" : { - "versionId" : "1", - "lastUpdated" : "2014-08-18T01:43:30Z" - }, - ... -} -```` - -Notes: - -* **resourceType** (line 1) - "Patient" URL请求中的资源类型必须与提交的数据中的资源类型保持一致 (line 9) -* **resource id** (line 1, "347") - URL中的资源id必须与提交的数据中id值保持一致(line 9) -* **If-Match** (line 6) - 如果存在该字段,必须与资源内容中的meta.versionId值保持一致 (line 12), 服务器必须核实版本的完整性,如果不支持版本则返回412状态码 -* **meta.lastUpdated** (line 10) - This value is ignored, and will be updated by the server -* **resource content** (line 14) - 这里省略了资源内容 - -### 1.7.1.12 Update Response - -更新请求的响应包括了元数据、状态和OperationOutcome(可选): - -``` -HTTP/1.1 200 OK -Content-Length: 161 -Content-Type: application/json+fhir -Date: Mon, 18 Aug 2014 01:43:30 GMT -ETag: "2" - -{ - "resourceType": "OperationOutcome", - "text": { - "status": "generated", - "div": "
The operation was successful
" - } -} -```` - -Notes: - -* **ETag** (line 5) - This is the versionId of the new version - -### 1.7.1.13 Base Resource Content - -所有资源都会包含的基础信息: - -``` -{ - "resourceType" : "X", - "id" : "12", - "meta" : { - "versionId" : "12", - "lastUpdated" : "2014-08-18T01:43:30Z", - "profile" : ["http://example-consortium.org/fhir/profile/patient"], - "security" : [{ - "system" : "http://hl7.org/fhir/v3/ActCode", - "code" : "EMP" - }], - "tag" : [{ - "system" : "http://example.com/codes/workflow", - "code" : "needs-review" - }] - }, - "implicitRules" : "http://example-consortium.org/fhir/ehr-plugins", - "language" : "X" -} -```` - -Implementers notes: - -* **resourceType** (line 2) - 每个资源都会资源类型的字段. XML的话也就是根节点 -* **id** (line 3) - 在资源新建之时分配后不再变化.只有在初次创建该资源时才没有该字段 -* **meta.versionId** (line 5) - 当资源内容(除了meta.security、meta.profile、meta.tag三个之外)发生变更时该值随之变化 -* **meta.lastUpdated** (line 6) - 随versionId的变化而变化. 如果服务器不维护版本信息,则不用记录该字段 -* **meta.profile** (line 7) - 表示资源的内容是否遵循某个规范(比方说满足阿里健康的开放API的要求或者说满足卫计委共享文档中的要求). 更多信息请参考 [Extending and Restricting Resources](profiling.html#resources). 当规范、值集本身发生变动时可以更改该字段的值 -* **meta.security** (lines 8 - 11) - [安全类标签](securitylabels.html). 该标签将资源与某些安全策略、基础架构策略联系起来。该字段的值可随资源内容的变动而变动,或者随安全体系的控制。 -* **meta.tag** (lines 12 - 16) - [其他类型的标签](extras.html). 如需将资源与特定的工作流程关联起来可以使用此类标签.在解读资源内容时无需考虑此类标签的值 。对此类标签值的更新不会影响资源内容版本的变化 [updated](http.html#tags) (这里好像是说 可以不变更资源的版本就修改tag标签的值 还是说tag值的修改压根就不影响资源版本 其他的security和profile tag三个字段是否都适用呢?待考证) -* **implicitRules** (lines 17) - 如何准确安全的处理资源内容而在发送接收双方达成的[协议](profiling.html#agreement). 由于使用了该字段就意味着其他系统要使用其中的数据可能会出现解读错误的情况,限制了数据的重复利用,故不推荐适用该字段 -* **language** (lines 18) - [资源内容所采用的表达语言](narrative.html#language). 当前,资源内容中亦可包含其他语言的内容; 该字段表示的是资源的主要语言。 - - -© © HL7.org 2011+. FHIR DSTU (v0.5.0-5149) generated on Fri, Apr 3, 2015 14:36+1100\. - 链接:[试行版是什么](http://hl7.org/implement/standards/fhir/dstu.html) |[版本更新情况](http://hl7.org/implement/standards/fhir/history.html) | [许可协议](http://hl7.org/implement/standards/fhir/license.html) |[提交变更建议](http://gforge.hl7.org/gf/project/fhir/tracker/?action=TrackerItemAdd&tracker_id=677) - diff --git a/fhir-in-action/introduction/fhir-mplementation.md b/fhir-in-action/introduction/fhir-mplementation.md deleted file mode 100644 index bec4c78..0000000 --- a/fhir-in-action/introduction/fhir-mplementation.md +++ /dev/null @@ -1,104 +0,0 @@ -## FHIR Implementation - -* The current specification: [http://www.HL7.org/fhir/](http://www.HL7.org/fhir/) (or [the development version](http://hl7.org/implement/standards/FHIR-Develop/)) - * [FHIR Profiles from other Organizations](/index.php?title=FHIR_Profiles_from_other_Organizations "FHIR Profiles from other Organizations") -* Contact Information - * Implementation help: [[ask questions about FHIR](http://stackoverflow.com/questions/tagged/hl7_fhir)] - * Formal Contact point for the project: [[fmgcontact@hl7.org](mailto:fmgcontact@hl7.org)] - * [Skype Group Chats](/index.php?title=FHIR_Skype_Chat "FHIR Skype Chat") - * [FHIR gForge Tracker](http://gforge.hl7.org/gf/project/fhir/tracker/?action=TrackerItemBrowse&tracker_id=677) for change requests/corrections - * FHIR Project Team Leads (FHIR Core Team): [[Grahame Grieve](mailto:grahame@healthintersections.com.au)], [[Ewout Kramer](mailto:e.kramer@furore.com)], [[Lloyd Mckenzie](mailto:lloyd@lmckenzie.com)] - * [List server](/index.php?title=FHIR_email_list_subscription_instructions "FHIR email list subscription instructions") - project email list - -* Help / Getting Started - * [FHIR Starter](/index.php?title=FHIR_Starter "FHIR Starter") - tutorial for FHIR newbies - * [FHIR Cheat Sheet](http://www.furore.com/wp-content/uploads/2014/11/FURORE-CHEATSHEET-FHIR-R3.pdf) (DSTU 1) - * [Help desk FAQs & knowledge-base articles](https://healthlevelseven.desk.com/) (HL7 members only) - * [FHIR Tools Registry](/index.php?title=FHIR_Tools_Registry "FHIR Tools Registry") - a list of useful tools for FHIR implementers - * [FHIR for Clinical Users](/index.php?title=FHIR_for_Clinical_Users "FHIR for Clinical Users") - an introduction to FHIR for non-technical people that will migrate to the specification in the future - * [FHIR User Group](/index.php?title=FHIR_User_Group "FHIR User Group") -* Social Media on FHIR - * FHIR blogs [David Hay](http://fhirblog.com/), [Ewout Kramer](http://thefhirplace.com/), [Grahame Grieve](http://www.healthintersections.com.au/) - * FHIR News on Twitter [FHIR News](http://www.twitter.com/FHIRnews) - * FHIR Videos [HIMSS FHIR Session](https://live.blueskybroadcast.com/bsb/client/CL_DEFAULT.asp?Client=556675&PCAT=8341&CAT=8341&Review=true), [HL7.tv](http://www.hl7.tv/FHIR.html) and [Ringholm](https://vimeo.com/channels/hl7fhir). - -* Testing - * [Publicly Available FHIR Servers for testing](/index.php?title=Publicly_Available_FHIR_Servers_for_testing "Publicly Available FHIR Servers for testing") - * [Open Source FHIR implementations](/index.php?title=Open_Source_FHIR_implementations "Open Source FHIR implementations") - * [FHIR Connectathon 8](/index.php?title=FHIR_Connectathon_8 "FHIR Connectathon 8") (January, San Antonio) - * [Organizations interested in FHIR](/index.php?title=Organizations_interested_in_FHIR "Organizations interested in FHIR") - * [Profile Tooling](/index.php?title=Profile_Tooling "Profile Tooling") - -* [FHIR Implementations](/index.php?title=FHIR_Implementations "FHIR Implementations") - -* Connectathons - * [Connectathon 9](http://wiki.hl7.org/index.php?title=FHIR_Connectathon_9) (May 9-10, Paris, France) - -* Previous Connectathons and other events - * [Historical Connectathons](/index.php?title=Category:FHIR_Connectathons "Category:FHIR Connectathons") (list) - * [Clinical Connectathon 1](/index.php?title=FHIR_Clinical_Connectathon_Initiative "FHIR Clinical Connectathon Initiative") (September 2014, Chicago) (+ [Clinical Connectatathon 1 Tooling](/index.php?title=Clinical_Connectatathon_1_Tooling "Clinical Connectatathon 1 Tooling")) - * [2 day seminar and Connectathon](http://www.healthintersections.com.au/?p=2237) (Nov 6-7, Melbourne Australia) - * [International FHIR Development Days](http://fhir.furore.com/devdays/) (Nov 24-26, Amsterdam) - -## FHIR Development - -* How to - * [FHIR DSTU monitoring](/index.php?title=FHIR_DSTU_monitoring "FHIR DSTU monitoring") - how to monitor DSTU feedback - * [FHIR Ballot Prep](/index.php?title=FHIR_Ballot_Prep "FHIR Ballot Prep") - tasks for the next ballot and milestone dates - * [FHIR Build Process](/index.php?title=FHIR_Build_Process "FHIR Build Process") - Setting up and running the FHIR build process - * [Technical Guide](/index.php?title=FHIR_Guide_to_Authoring_Resources "FHIR Guide to Authoring Resources") - How to create resources - * Materials: [gForge](http://gforge.hl7.org/gf/project/fhir/), [SVN Trunk](http://gforge.hl7.org/svn/fhir/trunk) - * For read-only SVN access, use "anonymous" and your email as a password. - * For Commit privileges, send a request to lloyd@lmckenzie.com - * [FHIR resource and profile proposals](/index.php?title=Category:FHIR_Resource_Proposal "Category:FHIR Resource Proposal") - proposals for new resources & profiles - * [FHIR Profile authoring](/index.php?title=FHIR_Profile_authoring "FHIR Profile authoring") - Creating and maintaining FHIR profiles (see also [Profile Tooling](/index.php?title=Profile_Tooling "Profile Tooling")) - * [FHIR Change requests](/index.php?title=FHIR_Change_requests "FHIR Change requests") - Process for managing and resolving - -* Guidelines - * [Fundamental Principles of FHIR](/index.php?title=Fundamental_Principles_of_FHIR "Fundamental Principles of FHIR") - * [FHIR Methodology Process](/index.php?title=FHIR_Methodology_Process "FHIR Methodology Process") - how the methodology is developed and maintained - * [Methodology Guidelines](/index.php?title=FHIR_Guide_to_Designing_Resources "FHIR Guide to Designing Resources") - Content and quality guidelines - * [Design Patterns](/index.php?title=FHIR_Design_Patterns "FHIR Design Patterns") - * [FHIR Comparison to other RESTful API specifications](/index.php?title=FHIR_Comparison_to_other_RESTful_API_specifications "FHIR Comparison to other RESTful API specifications") - -* Resources - * [List server](/index.php?title=FHIR_email_list_subscription_instructions "FHIR email list subscription instructions") - discussions - * Discussion pages: [Active Discussions](/index.php?title=Category:Active_FHIR_Discussion "Category:Active FHIR Discussion"), [All](/index.php?title=Category:FHIR_Discussion "Category:FHIR Discussion") - * [FHIR Design Requirements Sources](/index.php?title=FHIR_Design_Requirements_Sources "FHIR Design Requirements Sources") - * [FHIR Resource Types](/index.php?title=FHIR_Resource_Types "FHIR Resource Types") - * [FHIR Resource Considerations](/index.php?title=FHIR_Resource_Considerations "FHIR Resource Considerations") - * [(old)](/index.php?title=FHIR_Governance "FHIR Governance") - governance discussion with bits of methodology mixed in (to migrate to other pages) - * [FHIR Terminology Service](/index.php?title=FHIR_Terminology_Service "FHIR Terminology Service") - * [FHIR Digital Signature Working Page](/index.php?title=FHIR_Digital_Signature_Working_Page "FHIR Digital Signature Working Page") - -* WG FHIR pages - * [Patient Administration Resource development](/index.php?title=Patient_Administration_Resource_development "Patient Administration Resource development") - * [CDA to FHIR Samples Group](/index.php?title=CDA_to_FHIR_Samples_Group "CDA to FHIR Samples Group") - * [FHIR_Patient_Care_Resources](/index.php?title=FHIR_Patient_Care_Resources "FHIR Patient Care Resources") - - -## Organizational - -* Governance - * [FHIR Governance Process](/index.php?title=FHIR_Governance_Process "FHIR Governance Process") - * [FHIR Governance Board](/index.php?title=FHIR_Governance_Board "FHIR Governance Board") (FGB) - * [FHIR Management Group](/index.php?title=FHIR_Management_Group "FHIR Management Group") (FMG) - * [Modeling and Methodology](/index.php?title=Modeling_and_Methodology "Modeling and Methodology") (MnM) - * [Work Groups](/index.php?title=FHIR_Work_Groups "FHIR Work Groups") - * [FHIR Escalation Processes](/index.php?title=FHIR_Escalation_Processes "FHIR Escalation Processes") - * [FHIR Ballot Process](/index.php?title=FHIR_Ballot_Process "FHIR Ballot Process") - * [FHIR Web Server Hosting Record](/index.php?title=FHIR_Web_Server_Hosting_Record "FHIR Web Server Hosting Record") - -* Agendas - * **[Paris WGM](/index.php?title=FHIR_Agenda_201505_WGM "FHIR Agenda 201505 WGM")** (next meeting, May 2015) - * [Past Working Group Meetings](/index.php?title=Category:FHIR_Meeting "Category:FHIR Meeting") (list of agendas/notes) - * [MnM agendas](http://wiki.hl7.org/index.php?title=MnM_Schedule) - * [FGB Agendas & Minutes](http://wiki.hl7.org/index.php?title=FHIR_Governance_Board#Meeting_Information) - * [FMG Agendas & Minutes](http://wiki.hl7.org/index.php?title=FHIR_Management_Group#Meeting_Information) - -## opensource project - -* Testing - * [FHIR 公开测试服务器的测试报告](http://www.projectcrucible.org/) -* Lib - * [Ruby语言的FHIR模型 工具等](https://github.com/fhir-crucible/) diff --git a/fhir-in-action/introduction/fhir-overview.md b/fhir-in-action/introduction/fhir-overview.md deleted file mode 100644 index 0bb91ee..0000000 --- a/fhir-in-action/introduction/fhir-overview.md +++ /dev/null @@ -1,80 +0,0 @@ -# FHIR概述 - -欢迎使用 FHIR 标准,它是卫生保健信息电子化交换的一种标准。这部分是对标准的概述,作为一个路线图,希望能帮助初次接触的读者更快上手。 - -## 背景 - -医疗保健记录越来越多的被数字化。当病人在整个医疗系统中转诊的时候,要求他们的病历能够获得、能够找到和能够理解。更深层次的,能够支撑自动化地临床决策支持和其他机器处理,要求数据是结构化的 并且是标准化的。(参考[卫生保健所面临的数字化挑战](change.html)) - -[HL7](http://hl7.org/)在过去20多年里,一直致力于构建卫生保健数据交换和信息模型标准来解决这些难题。FHIR是一种新标准,采用了其他行业的通用方法,同时借鉴了在定义和实现 HL7V2,V3,RIM 和 CDA 标准过程中所获得成功、失败的教训。FHIR可以单独作为数据交换标准来使用,也可以和其他广泛应用的标准一起来使用(参考[FHIR与其他HL7标准的比较](comparison.html)) - -FHIR旨在不牺牲信息完整性的前提下简化开发和实现。它利用了现有的逻辑和理论模型,为不同的应用程序间交换数据提供了一种一致的、易于实现的、健壮的机制。FHIR的内在机制使得其能够追溯到 HL7 RIM 和其他内容模型,这就保证了与HL7之前定义的模式,最佳实践间的保持一致,毋须开发人员充分了解 RIM 和 HL7 V3 的其他衍生制品。(参考[FHIR与其他HL7标准的比较](comparison.html)) - -## 1.7.0.2 组件 - -FHIR 中最基本的组件叫做[资源](resource.html).所有可交换的内容都被定义成一个个资源。所有资源都拥有如下特征: - -* 同一种[定义](resource.html)、[表达](formats.html)它们以及从[数据类型](datatypes.html)(最基本的可重用元素)构建它们的方式 -* 同样的[元数据](resource.html#metadata)集合 -* [供人可读的部分](narrative.html) - -## 1.7.0.3 方法论 - -### 1.7.0.3.1 信息建模的方法 - - FHIR 的理念在于定义一个资源的基础集合,要么利用它们,要么相互结合来满足大多数常见的应用场景的需求。FHIR资源旨在定义绝大多数开发实现中通用的核心信息集合的信息内容和结构。如果需要的话,有内在的[扩展机制](extensibility.html)来满足剩下的需求。 - FHIR 的建模采用了一种组合式的方法论。相比而言,HL7 V3 建模是基于“model by constranit”(参考[FHIR与其他HL7标准的比较](comparison.html)) 。对于 FHIR,特殊的应用场景通常是通过利用[资源引用](references.html)整合资源来实现的。尽管对于一个特定场景,单独一个资源可能是存在价值的,更多的是对资源互相整合和裁剪来满足特定的需求。用来描述资源如何整合使用的两类特殊资源: -* [一致性声明](../infra/conformance.html)——描述一种实现中所暴露的交换数据的接口 -* [规范profile](../infra/profile.html)——描述该实现中所使用的资源中定义的用以约束基数、可选性、术语、数据泪下和扩展的其他规则。 - -### 1.7.0.4 标准 - -基本上,FHIR标准分为三大块: - -* 基础[文档](documentation.html)部分——描述了[资源是如何定义](resources.html)的,[数据类型](datatypes.html)、[编码](terminologies.html)的定义和[XML](xml.html) 、[JSON](json.html)格式的相关背景信息。 -* [开发实现部分](../impl/implementation)——描述在[REST](../impl/http.html) 、[消息](../impl/messaging.html)、[文档](../impl/documents.html)和[SOA](../impl/services.html)中使用资源。 -* [资源列表](resourcelist.html)——resourcelist.htmlFHIR中定义的所有资源的列表。其中又分为[临床类](../clin/clinical.html)、 [行政管理类](../admin/administration.html) 和[基础架构类](../infra/infrastructure.html)三大类。 - -资源有多种用途,从最基本的[护理计划](../clin/careplan.html)和[诊断报告](../clin/diagnosticreport.html)等临床内容到如[消息头](../infra/messageheader.html)、[一致性声明](../infra/conformance.html)等基础架构。虽然它们具有共同的技术特性,但却以完全不同的方式来使用。注意毋须为了使用资源而必须使用REST。 - -## 1.7.0.5 如何入门 - -最好是快速阅读一下 [资源列表](resourcelist.html),对已经有了哪些资源有个感性认识,然后看一下[患者](../clin/patient.html)的定义来看看资源的定义是什么样的,接着读一下以下介绍背景信息的章节: - -* [资源](resource.html)——资源是如何定义的 -* 所有资源都有的[叙述性文本](narrative.html),以及[资源之间如何互相引用](references.html) -* [格式](formats.html):[XML](xml.html) 、[JSON](json.html) -* [扩展相关](extensibility.html)——标准能够保持简单的关键 -* 如果你之前了解 HL7 标准(V2 V3 CDA)的话,[FHIR 与其他 HL7 标准的比较](comparison.html)也值得一看。 - -### 1.7.0.5.1 顶部标签 - -整个标准中都会看到这些标签,很多读者可能会遗漏: - -![](../material/header-tabs.png) -[资源](resources.html)和[数据类型](datatypes.html)都是以一种类似XML的 易于阅读的方式来呈现的,它们也有详细描述内容的正规定义。另外,大多数资源映射到很多不同的格式,如HL7V2,HL7V3 RIM ,CDA,DICOM等。同时,所有资源至少包含一个实例(有时候会有更多),适当的时候,也会有描述它们如何在特殊情况下使用的profile规范。最后,一些资源包含了 帮助开发人员理解它们背后的设计原理的小贴士/备注。 - -## 1.7.0.6 寻求额外信息和提供反馈 - -为了能够让更多读者看懂的同时,FHIR标准是面向开发人员社区的——这些真正利用标准编写程序的人。为了满足开发人员社区的需求,编辑人员力求标准行文精确,减少在编写程序之前的阅读时间(然而这份标准并不如我们所想的那么简明扼要,有时候是医疗保健和现实世界的复杂度所致)。鉴于此,在开发过程中并不必要的信息,诸如原理、备选方案、一些争论点和将来的计划等并没有包含在标准里面。同样,开发人员时不时会发遇到标准不明晰或者不完整的清空。最终,会有一些情况,标准可能是错的,或者是对其进行修订以更好的满足开发人员的需求。 -因此HL7提供了多种方法,通过这些方法可以维护和获取一些额外的FHIR相关信息,能够提供一些帮助,响应一些变更请求。 - -### 1.7.0.6.1 评论 - -在每页底部,都有一个评论的部分,可以就特定章节进行提问和讨论。评论由 FHIR 编辑人员和HL7工作组来监管,每个问题都会在一定的时间内给予答复。This content will occasionally be currated to ensure ongoing relevance, particularly if the specification is subsequently updated to eliminate confusion that may have spawned an initial comment. - -### 1.7.0.6.2 FHIR Wiki - -FHIR 项目团队维护着一个[wiki](http://wiki.hl7.org/index.php?title=FHIR),记录了开发过程、方法学和设计决策。开发人员和其他人员也可以参与到wiki中来,提供一些暂未出现在标准中的指导和补充信息。注意 FHIR wiki上的内容不具有权威性,与FHIR标准的一致性无关。同样,一些内容可能也没有和最近的FHIR版本保持一致。 -FHIR标准中的每个页面在wiki中都有一页内容。用以记录原理、决策点和其他与开发人员无关的信息。额外的页面包括[FHIR 方法论](http://wiki.hl7.org/index.php?title=FHIR_Development_Process)、[FHIR 设计工具的使用](http://wiki.hl7.org/index.php?title=FHIR_Guide_to_Authoring_Resources)等。要研究wiki的话,建议从[首页](http://wiki.hl7.org/index.php?title=FHIR)开始. - -### 1.7.0.6.3 正式变更请求 - -正式请求可以在[这里](http://gforge.hl7.org/gf/project/fhir/tracker/?action=TrackerItemAdd&tracker_id=677)提交。对应的工作组会审核这些请求,并作出是否将其纳入到标准中的决策,其中包括了纳入到那个版本。 - -### 1.7.0.6.3 源码/参与机制的额外信息 - -除了上述机制,HL7提供了一个 Stack Overflow 的标签,邮件列表和skype聊天频道来提供对开发人员各个层面的全方位的支持。如何使用这些请参考[指令](http://wiki.hl7.org/index.php?title=FHIR#More_help_and_Asking_Questions) - -© © HL7.org 2011+. FHIR DSTU (v0.5.0-5149) generated on Fri, Apr 3, 2015 14:36+1100. - 链接:[试行版是什么](http://hl7.org/implement/standards/fhir/dstu.html) |[版本更新情况](http://hl7.org/implement/standards/fhir/history.html) | [许可协议](http://hl7.org/implement/standards/fhir/license.html) |[提交变更建议](http://gforge.hl7.org/gf/project/fhir/tracker/?action=TrackerItemAdd&tracker_id=677) diff --git a/fhir-in-action/introduction/index.md b/fhir-in-action/introduction/index.md deleted file mode 100644 index 24dbf4b..0000000 --- a/fhir-in-action/introduction/index.md +++ /dev/null @@ -1,10 +0,0 @@ -# FHIR 简介 ---- - -主要是介绍一些FHIR 缘起的大背景,以及产业界对其唱衰唱好的各种论调。 - -- [开发者眼中的 FHIR](/fhir-in-action/introduction/toreader.md) -- [FHIR 实现](/fhir-in-action/introduction/fhir-mplementation.md) -- [FHIR 概述](/fhir-in-action/introduction/fhir-overview.md) -- [FHIR 开发者指南](/fhir-in-action/introduction/fhir-dev-guide.md) -- [开放数据](/fhir-in-action/introduction/open-data-is-coming.md) \ No newline at end of file diff --git a/fhir-in-action/introduction/open-data-is-coming.md b/fhir-in-action/introduction/open-data-is-coming.md deleted file mode 100644 index e3579b4..0000000 --- a/fhir-in-action/introduction/open-data-is-coming.md +++ /dev/null @@ -1,339 +0,0 @@ -# 开放数据专题 -有关医疗数据的开放标准的口水战和讨论早就开始了,这是因为美国方面的医疗病历数据主要掌握在 EPIC 的手上。 -很多医院和医疗机构都在使用 EPIC 的产品,但 EPIC 的产品线又非常封闭,导致医疗机构之间的数据通信和交换都非常困难。 - -这个页面中的主要内容都在说 EPIC 和 CommonWell 口水战。 - -这场口水战的主要起因还是有关国会的医疗预算,同时要求 ONC 能够解决医疗系统的数据互联互通问题。EPIC 当然是不愿意放弃这块的。 - -当我们现在再次重温这篇页面中的内容的时候已经是 2024 年了。现在来看在互联互通上已经有了很大的进展。 - -相对美国有关医疗系统的扯皮来看,我们国家的医疗系统起步比较晚,没有技术负担,相对美国来说,我们的医疗系统发展更加迅速和智能化。 -但也面临不少问题,其实也是标准化的互联互通问题,相信随着 FHIR 的标准的持续推进,在后续的互联互通难度应该是在逐步下降的。 - -## 立法进一步推动美国联邦政府开放更多数据 - -在2015年4月16号,一个因废止了Medicare中过时的根据可持续增长率来计算医生收入的公式而出名的Medicare Access and CHIP -Reauthorization Act (MACRA) 正式成为了法律, 有人称此举给Affordable Care Act 法案的 Medicare Data Sharing -Program 注入了一剂强心剂,更有人称其中的105章节要求政府将更多的 claim(医保报销)数据开放给准入机构,更是给中小型医疗机构带来了春天。 - -``` -1. 由于平价医疗法的存在,HHS也就是美国卫生部公开了一部分Medicare claim数据给准入机构,这些机构利用医保数据和商业化数据进行数据分析,来获取 -如何更好的达到要求的医疗质量和效率等指标来指导实践。由于此举风险甚高,议会持保守态度,但很快大家都意识到这样做远远不够,故在MACRA的105章节中放开更多数据 -2. 其中要求HHS Secretary不仅开放Medicare数据,也开放Medicaid和CHIP数据。这样子系统中的医保数据将会翻倍,能够支持更加复杂的数据分析。 -3. 尽管开放多少数据,开放不开放的决定权握在了HHS Secretary手里,但还是有很大希望的,毕竟Medicare的医保数据已经开放了2年,如果够快的话,Medicare每年应该能够开放 -``` - -### 背景资料 - -ACA平价法案 - -``` -美国总统奥巴马上任后积极推动医保改革,去年立法的《平价医疗法》当地时间12日却被上诉法院裁定违宪,令医保改革前路茫茫。分析指,表面上,共和党明显打赢一仗,但由于法院仅裁定强制参保条款违宪,其余部分仍然有效,最大输家其实是医保公司,民主党不但未必介怀,还可能对裁决乐观其成。 - -据报道,目前美国约有5000万人没有基本医疗保险,医院及纳税人被迫每年代为支付高达430亿美元(约合人民币2749亿元)。民主党控制的国会去年3月通过立法,规定由2014年起,美国所有18岁或以上的民众必须终生购买保险,否则会遭到税务惩罚,政府则会给予无力付款的民众津贴。 - -据介绍,强制参保条款是奥巴马医改法案的重点,能使3200万未投保的民众被纳入医保“保护伞”下,令美国全国医保覆盖率提升至95%,并要求保险公司接受已患病的民众投保。 - -分析认为,美国民主党其实并非很支持强制投保,最支持的是可赚大钱的保险公司。保险公司要求全民强制参保,才愿意接受早已患病的投保人。 - -民主党当初为平息保险公司的反对声音,支持全民投保只是权宜之计。若该条款最后被删除,其余部分仍有效,保险公司将被迫继续接受患病者的投保,民主党也可达成全民医保的目标,民主党何乐而不为? -``` - -美国政府的开放数据集。自从Data.gov开放以来,美国已经公开了超过八万五千个政府数据集并提供免费下载。 - -有关美国联邦政府的数据开放计划,请参考: - -* https://project-open-data.cio.gov/ -* https://github.com/project-open-data - -## epic 和 CommonWell 之争 - -在美国的医疗病历领域,EPIC 是最封闭,最不愿意开放的公司。毕竟数据是这个公司的所有业务基石,公司的数据和软件生态系统非常封闭,当数据离开了公司提供的平台后完全无法运行。 -所以 EPIC 是数据互联互通最大的障碍。 - -EPIC 使用的 Caché 数据库,这个数据库的存储非常封闭,可恶的是 EPIC 在数据库的基础上又开发了一套自己的的数据库实例,虽然底层还是使用的 -Caché 数据库,但上层和 API 已经被完全重构了。 - -CommonWell 健康联盟是一个由医疗IT公司组成的行业协会,过去三年来一直致力于在其成员的技术之间建立数据互操作性。 -Cerner, McKesson, Allscripts, athenahealth, Greenway 和 RelayHealth 这几家公司宣布成立了相关的联盟用于对抗 EPIC。 -联盟的官方地址为:https://www.commonwellalliance.org/ - -相关参考链接: - -* http://www.commonwellalliance.org/news/commonwell-health-alliance-announces-member-expansion-plans-for-2015/ - -CommonWell Health Alliance today announced the commitment of five of its health IT vendor members—athenahealth, Cerner, -CPSI, Greenway Health and McKesson—to actively deploy CommonWell services to health care provider sites nationwide -throughout 2015. - -Already, more than 60 provider sites are live on CommonWell services across 15 states including: Alabama, Delaware, -Florida, Illinois, Indiana, Kansas, Massachusetts, Mississippi, Nebraska, North Carolina, Ohio, South Carolina, South -Dakota, Texas and Washington. CommonWell expects 2015 deployments to enable at least 5,000 provider sites to be live on -the services nationwide. CommonWell’s built-in services include patient identification, record location, patient privacy -and consent, and trusted data access. - -### 缘起 - -2014年7月17号,在[众议院能源和商务委员会的小组委员会通讯技术和健康 House Energy and Commerce Committee's subcommittee on Communications and Technology and Health](https://energycommerce.house.gov/committees/subcommittee/health) -的听证会上,从医生成为议员的 Rep. Phil Gingrey 指责 EPIC 道: - -``` -一些电子病历的供应商的系统本身就在阻碍数据的共享和交换,就不应该拿到Meaningful Use incentive计划的钱。但根据RAND的一份报告,刺激计划的240亿美金中的一半以上都被 -Epic公司拿走了,可Epic玩的是自己的封闭平台,这是HITECH的初衷么,纳税人的钱是这么花的么。 - -无独有偶,在RAND的报告中建议国会“取消那些需要额外组件、费用和定制才能够实现数据共享的医疗信息化产品的认证资格”。同期的一份研究中也指出Meaningful Use program 计划 -第二阶段的数据共享的架构是不够健壮的,不足以支撑数据的共享。 -``` - -原文如下 - -``` -Electronic health record vendors--particularly Epic--may not deserve Meaningful Use incentive money because their systems hinder data sharing, according to physician-turned-lawmaker Rep. Phil Gingrey (R-Ga.). - -In a July 17 hearing of the House Energy and Commerce Committee's subcommittee on Communications and Technology and Health, Gingrey (pictured) questioned whether the nation is currently on a path of interoperability or whether changes to the law need to be made. He expressed concern that according to a recent RAND report, more than half of the $24 billion spent by the Meaningful Use program has gone to Epic, a vendor operating a "closed platform." - -Pointing out that the committee has jurisdiction over the Office of the National Coordinator for Health IT and the HITECH Act--which created the Meaningful Use program--Gingrey said that if the RAND report is true, "we have been subsidizing systems that block information instead of allowing for information transfers, which was never the intent of the [HITECH] statute. - -"It may be time for this committee to take a closer look at the practices of vendor companies in this space given the possibility that fraud may be perpetrated against the American taxpayer," he added. - -The hearing was focused on how healthcare and technology can accelerate the pace of cures in the U.S., which is an initiative of the committee. - -Gingrey is not alone in his concern about EHRs' lack of interoperability. The coalition Health IT Now, buoyed by the RAND report that decried the lack of interoperability among EHRs, recommended that Congress "decertify systems that require additional modules, expenses, and customization to share data," and to investigate business practices that prohibit or restrict data sharing in federal incentive programs. - -Another recent study revealed that the current architecture for data exchange required by Stage 2 of the Meaningful Use program doesn't allow for robust patient sharing. -``` - -### ONC发布互操作性路线图 - -关于这个10年的互操作性路线图,更多中文信息可参考 - -1、[ 【OMAHA】美国联邦政府医疗信息化战略规划2015 - 2020](https://www.isharkfly.com/t/2015-2020/15499) - -2、[一张图看美国互操作性路线图](https://www.isharkfly.com/t/topic/15500) - -3、[ONC发布HIT互操作路线图 助推精准医学计划](https://www.isharkfly.com/t/onc-hit/15501) - -某个组的老大如是说“如果我们能够让不同的系统能够互相'说话',那已经是相当牛逼了” - -原文如下 - -``` -"If we just get the systems themselves to talk to each other, that would be a huge accomplishment," Health IT Policy Committee member Paul Egerman, former CEO of eScription, said at the meeting. "Perhaps we're making this harder than we need to make it, and it's already pretty hard." - -尽管局部范围已经实现了一定程度的互操作性,但大规模的应用还是很大的问题。 -while interoperability has increased, widespread interoperability remains a challenge. The report identifies several barriers to interoperability, including unchanged provider practice patterns, the lack of standardization among EHRs and the lower priority placed on EHRs by providers who are ineligible for the Meaningful Use program. -``` - -### Omnibus bill keeps ONC funding at same level as 2014 - -2015 年的 Omnibus 法案成为导火索 - -``` -The Omnibus Appropriations bill that passed Congress over the weekend will fund the Office of the National Coordinator for Health IT at the same level as last fiscal year with a budget of just under $60.4 million. After the bill passed the House last week, the Senate approved it Saturday night. - -Additionally, the bill grants $14.9 million to the Federal Office of Rural Health Policy within the Health Resources and Services Administration to administer the Small Rural Hospital Improvement Grant program for quality improvement and adoption of health information technology. It also awards the VA $3.9 billion in IT funds, $200 million more than FY2014, including $344 million for the modernization of VistA and the development of an interoperable system with the Department of the Defense. - -Of the total IT budget, $548.34 million is earmarked for IT development, modernization and enhancement. -``` - -国会敦促 ONC :要专注在互操作性上。 - -在国会通过2015 omnibus appropriation -bill法案的同时提交的[报告](https://www.isharkfly.com/t/division-g-department-of-labor/15502)中,国会很生气,敦促ONC: -“”要合理使用你们手中的认证的权利来保障合格的产品能够医疗机构和人民群众带来价值。只给那些满足我们的认证标准的且没有阻碍区域医疗( -医疗信息交换)的产品给予授权,对于阻碍信息共享的产品要收回执照。 - -``` -"[U]se its certification program judiciously in order to ensure certified electronic health record technology provides value to eligible hospitals, eligible providers and taxpayers. ONC should use its authority to certify only those products that clearly meet current meaningful use program standards and that do not block health information exchange. ONC should take steps to decertify products that proactively block the sharing of information because those practices frustrate congressional intent, devalue taxpayer investments in CEHRT, and make CEHRT less valuable and more burdensome for eligible hospitals and eligible providers to use." -``` - -同时在报告里要求ONC90天内提交一份报告,分析一下目前信息阻塞问题的严重程度,要有个大概的厂商、医疗机构的数目以及解决问题的方案。 - -### 信息化厂商和医院都是信息阻塞的罪魁祸首 - -这里就是上面 ONC 根据国会的要求提交的报告,具体内容请参考:https://www.isharkfly.com/t/onc/15498 - -在这份报告中指出: - -1、医院或厂商通过收费来控制转诊和加强自己的市场占有率 -A common charge is that some hospitals or health systems engage in information blocking to control referrals and enhance -their market dominance - -2、厂商反馈 原因很多啦 比如说HIPAA 但作业中指出都是借口 和HIPAA压根没多大关联 -It has been reported to ONC that privacy and security laws are cited in circumstances in which they do not in fact -impose restrictions - -作业中给出的解决方案: - -1、Strengthen in-the-field surveillance of ONC certified health IT tools, which was proposed in the certification -requirements accompanying the Stage 3 Meaningful Use rule -2、Constrain standards and implementation specifications -3、Promote better transparency in certified health IT products and services that would "make developers more responsive -to customer demands and help ameliorate market distortions" that lead to vendor information blocking -4、Establish governance rules deterring information blocking, which the report notes is addressed in ONC's -interoperability roadmap -5、Work with the U.S. Department of Health and Human Services Office for Civil Rights to ensure healthcare stakeholders -understand HIPAA privacy and security standards, particularly those related to information sharing -6、Coordinate with the HHS Office of Inspector General and the Centers for Medicare & Medicaid Services on information -blocking as it relates to physician self-referral and the federal anti-kickback statute -7、Refer illegal business practices to law enforcement agencies -8、Work with CMS to provide incentives for interoperability while simultaneously discouraging information blocking -9、Promote competition and innovation in health IT, which the Federal Trade Commission recommended in its comments on the -interoperability roadmap - -但看了总结就知道 美帝也是各种部门互相扯皮呀,这种东西往后10年看有起色不。 - -当我们看到这篇文章的时候已经是 2024 年了,在 FHIR 的推进下,各种工作其实也是在有条件的进行中。 - -我们认为这里面推动阻力最大的莫过于 EPIC 了。 - -``` -"While important, these actions alone will not provide a complete solution to the information blocking problem," the report's authors say. "A comprehensive approach will require overcoming significant gaps in current knowledge, programs and authorities that limit the ability of ONC and other federal agencies to effectively target, deter and remedy this conduct, even though it violates public policy and frustrates congressional intent. -``` - -### 口水仗 - -有关 EPIC 和 CommonWell 的口水战在 2015 年就开打了(http://www.healthcareitnews.com/news/epic-vs-commonwell-showdown)。 - -Senate HELP Committee Tuesday 2015年3月17日的组委会例行会议上, -在听证会的问答环节,参议员Senator Tammy Baldwin, D-Wisconsin问 为什么Epic 没有参加 CommonWell Health Alliance -Epic 的主管互操作性的头Peter DeVault说了如下一段话,引发了CommonWell Health Alliance的反击: - -``` -"When we were approached by them and asked to join, we were told that it would be multiple millions of dollars for us to join and that we would have to sign an NDA.To us, the only reasons to have an NDA are if they're going to tell you something that otherwise they wouldn't want people to know" - which he said could include the possibility they may sell data downstream or wanted to ensure there were no intellectual property conflicts.That lack of transparency didn't sit well with us -``` - -同时还不饶人的嘲讽 你丫们只是嘴上说说 雷声大雨点小。 - -CommonWell至今成立2年,目前只涵盖了1000个医生 和Epic的care Everywhere的10万医生简直高下立判 - -``` -DeVault also underscored CommonWell's low participant numbers in its interoperability project so far – which he called an "aspiring network," noting a stark difference when compared to Epic's Care Everywhere network. -``` - -CommonWell联盟随后在Healthcare IT News发表了联合声明: - -``` -We are committed to openness and transparency," the statement read. "Accordingly we publish our services and use case specifications, along with our nominal membership and service fees on our website for everyone to see. -``` - -那么Epic要入会 大概要每年缴纳多少钱呢 根据目前CommonWell会员费和服务费用标准,结合Epic2014年的年收入18亿美元,要掏 - -125万美元annual subscription fee和 $50,000 to $90,000 in annual membership dues 。 - -就是 2015-03-18 日 athenahealth CEO Jonathan Bush 在 twitter上对 Epic 的 CEO Judith R. Faulkner 进行了高调嘲讽。 - -![](https://cdn.isharkfly.com/com-isharkfly-www/discourse-uploads/original/2X/7/725691b8b156724972a47cbbb29dbffc36172ec6.jpeg) - -Cerner —— 行业老二也发话了 - -``` -His "rhetoric is a slap in the face to many parties working to advance interoperability," according to a statement released by Cerner officials shortly after the committee hearing. "It was discouraging to hear more potshots and false statements when it's clear there is real work to be done. We're committed to CommonWell as a practical, market-led way to achieve meaningful interoperability -``` - -梗在这里 2013年 HIMSS 上 Epic 和 CommonWell 就有口角。 - -``` -At that HIMSS13 announcement, athenahealth CEO Jonathan Bush 说 大家都可以加入哟 - -emphasized that anyone was invited to CommonWell – even a vendor of "epic proportions." - -In a subsequent interview, Healthcare IT News asked McKesson CEO John Hammergren whether that invitation was dangled only because the founding companies suspected Epic wouldn't bite. - -"We'd like them to bite! We want them to bite," said Hammergren. "I'm hopeful that they will see it the same way we see it." -``` - -但 Epic CEO说 完全不知情,这帮人居然想背后地里阴我们,手够黑的啊。 - -``` -But Epic CEO Judy Faulkner noted that her company wasn't asked to join before the announcement. "We did not know about it. We were not invited," Faulkner told Bloomberg back in 2013. "It appears on the surface to be used as a competitive weapon, and that's just wrong. It's wrong for the country." -``` - -对于行业内愈演愈烈的竞争所引发这场闹剧,围观群众也有话说: -1、各位看官和Epic签合同要慎重啊 且要是Epic-to-non-Epic能达到Epic-to-Epic 的90%的功能,"哥就表演吃翔" -2、路人乙嘲讽到Epic到底是如何腆着脸皮说all of our systems can talk to each other -3、入会费是不是有点多 -4、Epic does not need to join CommonWell. CommonWell needs to join Epic. -5、CommonWell sounds like a group of union thugs who want to strong-arm their way into other vendors' businesses -6、CommonWell or is it CommonHell? Later seems to be more appropriate.此人称Epic很好合作 方案也性价比高Stop creating -mindless standards organizations with a scheme to collect additional revenues from licensing. Healthcare organizations -dole out enough on their EMRs to these vendors and they don't need these vendors charging nickel and dime on every petty -thing that gives patients control of their health information -"我深深的表示赞同" -7、It just doesn't seem right that a private company pulling down $1.8B in revenue should be able to dictate -interoperability. The government needs to step in and make sure all of these companies play well in the sandbox. Greed -stands in the way of a national clinical data repository that researchers could use to find treatments and cures for -diseases that have plagued us for decades. -问题不存在一个厂商上 此人观点有理 -8、Joining CommonWell doesn't seem like a great business opportunity if after two years they only have 1000 doctors live -on it. Epic seems to understand the fundamentals of sharing patient data if they have 100,000 doctors on their version. -My guess is that CommonWell is floundering and they want Epic in there to help them out. If they can also take some digs -at Epic for not joining in the meantime - all the better in their mind. - -The healthcare market will drive the need for interoperability. I don't think getting the government involved will help -anything. - -9、What would be interesting to know is how many of Epic's 100,000 physicians are using a product other than something in -the Epic family. -Epic excels at interoperability between their own products, but what is their track record when connecting to someone -outside the family, so to speak? Their numbers may be impressive, I don't know. But I do know that the huge challenge -CommonWell has is interoperability across disparate vendors and products. -10、It seems to me that CommonWell is primarily a marketing "gimmick". Aids and standards for inter-operability e.g. -LOINC, CLSI standards, and other accepted nomenclatures have existed in the marketplace for some time. We probably have -enough standards but many vendors simply pay "lip service" to them. Such a "collaboration" among competitors may be a " -surface phenomenon" with relatively little substance. - -11、对第10条的回复 CommonWell is a response to Epic's market share and market power by vendors that heretofore did not -feel compelled to cooperate with each other on data exchange. Epic dramatically dominates the large HCDO/ Academic -Medical Center market and is viewed as almost unstoppable. As Epic conquers the large market, it will target the -mid-size market - probably taking advantage of a cloud service at some point in time. This probably best explains why -Epic doesn't want to join CommonWell - they understand the strategic alignment and competitive response that CommonWell -represents. -12、It does seem a bit childish to see these types of exchanges between behemoths of the industry. However, I do wonder -why Epic would have to sign an NDA to participate in a joint effort to share and propagate openess. - -### Epic 投降了 - -Epic CEO Judy Faulkner 在每年度最盛大HIT行业会展,也就是 2015 年的 HIMSS15 大会上宣布,直到2020年之前咱大EPIC是不会再收大伙钱了。 - -其实athenahealth和Cerner这俩货也是不久之前宣布他们也不收费。 - -https://www.healthcareitnews.com/news/epic-latest-drop-fees-data-exchange#:~:text=%2Dbased%20health%20IT%20giant%20Epic,the%20Milwaukee%20Business%20Journal%20reports. - -群众观点: -1、up-front predictable cost and a pay-per-use model两种付费模式的区别而已,钱总是会出的 -2、市场的不成熟导致没有有效的激励方式来促使信息的无缝免费流动。而能因为厂商收取服务费用就认为是某个厂商作恶。要解决的是到底谁来掏钱的问题 -3、不额外收钱的话,,软件的成本、维护费咨询费必然要上涨,羊毛出在羊身上 -http://www.healthcareitnews.com/news/epic-latest-drop-fees-data-exchange - -### 思考 - -国内最早喊互操作性的应该是李包罗老爷子了,从最初引入这样的概念至今大概也有10来个年头了,不管是学术界还是工业界,这些年来沿着的一条路是说想要给复杂的医疗领域定义出一种通用的one-fit-all的能够描述整个医疗领域的模型, -进而演化出一种可以用于不同系统间交互数据的通用格式和统一的医疗术语,也就是所谓的互操作性标准。 - -这些年也有人在提学习型的医疗信息化系统的建设,提精准医疗,大喊互联网医疗的口号,但这些目标的实现都离不开数据,离不开鲜活的在不同系统间流动的数据,就像阿里、京东、腾讯、amazon一样,没有各部门间数据的无缝整合, -它们是不能提供大家每天都在享受的这些服务的。 - -近几年不管是google还是豌豆荚,都在说一个“应用内搜索”的东西,说白了,就是想把接入各自平台的系统的数据格式标准化,这样子就可以点开具体的应用来搜索查询信息,但似乎也没有什么进展, -对于如日中天的互联网应用来讲,对于宇宙第一的google来讲尚且很难突破的东西,反过来看医疗行业,业务只会更复杂,业务系统的成熟度只会更低,似乎互操作性的口号, -我们喊得太早了,能从美帝、互联网厂商身上学到的是,未来势必在国内的HIT圈要成长出一两家如Epic这样的公司,在自己封闭的平台中, -实现各级医疗机构的信息无缝流通,只有这样的巨无霸,通过自己所收集的患者全生命周期的数据链,利用医疗大数据的应用打造出优质的医疗服务来服务大众,但有没有其他实现互操作性的路径呢? - -Epic与IBM watson的合作 是否预示着实现互操作性的另一条路 -智能的解析各种异构的数据源中的数据 https://www.healthcareitnews.com/news/epic-watson-work-interoperability 。 - -**API 能否拯救 HIT 的相关探讨** -针对有关内容的探讨,我们收集了一些内容,请访问下面的链接。 - -* http://geekdoctor.blogspot.nl/2014/12/kindling-fhir.html -* http://xmlmodeling.com/2014/12/jason-argonauts/ -* http://xmlmodeling.com/2014/10/jason-task-force-final-report/ -* http://argonautwiki.hl7.org/index.php?title=Main_Page -* https://www.healthwise.org/blog/apps-apis-positive-step-for-patients.aspx - -## 中国数据互联互通 -相对美国有关医疗系统的扯皮来看,我们国家的医疗系统起步比较晚,没有技术负担,相对美国来说,我们的医疗系统发展更加迅速和智能化。 - -### OMAHA 联盟 -浙江数字医疗卫生技术研究院(简称“数研院”,imit)是中国首家致力于数字与信息化技术在医疗卫生健康服务领域研发与应用的专业性非营利研究机构(NPO/NGO)。 diff --git a/fhir-in-action/introduction/toreader.md b/fhir-in-action/introduction/toreader.md deleted file mode 100644 index 6e3dc10..0000000 --- a/fhir-in-action/introduction/toreader.md +++ /dev/null @@ -1,53 +0,0 @@ -# 对 FHIR 的认识 - -互联网医疗在过去的一年里如火如荼,希望大家能够一起来汉化和开发FHIR相关的产品。 - -[FHIR – Fast Health Interoperable Resources](https://hl7.org/fhir/) – 是由HL7创建的新一代标准框架.FHIR 整合了 HL7 V2,V3 和 CDA -的优点,同时利用了最新的Web标准,紧紧围绕着 implementability 可实现性。 - -FHIR 解决方案是基于一些称之为“资源”的模块化组件的. 这些资源可以很容易的组装进生产系统中,以已有方案的一小部分成本来解决实际的临床和管理上存在的问题。 - -FHIR 适用于多种场景– 智能手机APP、云平台上的通信、基于EHR的数据共享、大型医疗机构内服务器通信和其他。 - -大多数在HIT这个行业浸淫略久的人都听到过HL7的字眼,HIT 行业的标准不外乎有2个目的,交互共享数据(HL7 -V2消息,V3消息,CDA,X12,共享文档规范诸如此类),表达医疗行业的知识( -各类术语字典,数据集数据元标准,Ardensyntax,CDSC,GELLO诸如此类) -,而FHIR应该归属于第一类,与它的前辈不同的是,它抛弃了既往顺着发展了10多年,乃至于20年的那块田( -封闭又自恃过高,怎么说这点呢,所有的标准文件都有自己独特的脱离了整个软件行业的编辑器生成,这些模型也不能为其他通用型软件所读取,最可恨的是没有配套的各种开源库开放给大家试错,降低学习成本,恶心的是居然个破标准还要收费) -,也就是在上世纪90年代末XML在整个软件领域刮起一阵风,到处都在说系统集成时应运而生的V3消息,CDA等,毫无疑问它们都是为不同厂家的不同系统之间交换数据而生的,而它们的下场都很惨,用现在的话说,都不够敏捷,学习成本过高,迭代也不够快。 - -在 FHIR 卷土重来的时候就把基调定好了,思想上这次要全面拥抱互联网技术,用通用的互联网技术来做原来没有成功的事情,仍然还是想实现医疗健康领域数据的无缝流动,打通整个数据闭环。 - -它的诱人之处我认为有如下几点: - - -1、过去的很多年,美国人造了各种各样的标准,国际友人也造了各式各样的轮子来解决上面的问题,最近的2-3年里很多人抛出了这样一个问题,能不能用同一种模型,经过适当的演化就能表达医疗数据( -电子病历、健康档案、个人健康记录),又能表达医学知识(临床指南类决策支持用的知识,质控指标类的知识) -,就目前FHIR发展的现状来看,这是一个还不错的选择。有很多这方面的尝试,美国的ONC最近也在这件事上砸了些钱希望能推动的更快一些。 - -2、拥抱互联网技术。卫生部这几年在推的区域平台、医院平台的技术点在我看来离现如今的互联网技术太远了,作为已经被抛弃的SOAP流的SOA架构的残留物,着实没听到在BAT等企业有何应用,最近几年在人人学Amazon的同事,新浪、京东等一批国内企业都在推一个叫open -API 或者是restful api或者叫HTTP API的东东,以此来解决各自内部千千万产品间、产品内部的数据流动的问题,简而言之就是以一种方式圈定某个领域的业务对象,每种对象都使用同样的方法来实现一些功能,类比到厨艺的话,就是说约定好如何区分食材,每种食材都有哪些烹饪方法,这样子整个医疗领域就大约有100-200种资源( -最小的信息单元,当然这里面的粒度的拿捏很是讲究),用到的“烹饪方法”就是HTTP协议定义好的(诸如put/post/get等)。 - -数据本身的表达格式也从原来V2 V3单纯的EDI格式、XML格式演化到了目前比较流行的JSON,以后或许还会演化出其他更为适合的方式。 - -这件事情一方面降低了学习认知整个标准的门槛,另一方面即使不使用它所规定的格式,顺着这样的思路,你也能解决一些问题。 -这里的问题不单单是之前它的老前辈(v2\v3\cda)所更care的产品与产品间的数据交换数据共享,你也可以借此实现产品内部的功能(京东的李大学总裁就介绍过它们在这方面的一些探索和实践),比如面临的移动端和PC端开发时功能复用的问题。 - -当然也有人会问,这东西能作为数据的存储模型来用么,这个问题是HL7 V3 RIM CDA所没能很好的解决的问题,它们的抽象程度太高了,但时代变了,Nosql数据库现在已经有很多可供选择,如果你要使用关系型数据库的话,也有一些这方面的探索可供参考。 - -3、尽管国内目前关注度不够,但在著名的代码托管平台Github上已经有大量的各种编程语言(java c# dephi javascipt swift等) -、各种平台可用的一些开源代码,有适合PC端的,也有适合移动端的,这是很喜人的。 - -医疗领域的信息化是非常有前途的方向,但无奈的是北美的医疗信息化和病历方面的处理被深度绑定在 EPIC 这个公司上。 - -这个公司使用的技术已经算是非常古老的技术了,还在使用 M 语言。这个非关系数据库诞生在 R 数据库设计之前,目前这个这个公司在标榜说自己是非常先进的非关系型数据库。 -说实话,经过一些研究发现,这个数据库实在是无法和现在的开放数据环境进行匹配,对比当前使用比较多的 NoSQL 数据库来看,这个数据库也实在太封闭了。 - -不管怎么 FHIR 的出现,为医疗系统中的数据互联互通提供了一个新的发展方向,对推动相关行业的发展还是有很多好处的。 - - -## 联系我们 -访问: https://fhir.isharkfly.com/#/CONTACT 页面中的内容来和我们取得联系。 - -推荐访问社区,并在社区中留下您的足迹。 diff --git a/fhir-in-action/naming_conventions.md b/fhir-in-action/naming_conventions.md deleted file mode 100644 index 7616a5e..0000000 --- a/fhir-in-action/naming_conventions.md +++ /dev/null @@ -1,14 +0,0 @@ -# Naming Conventions -In simple terms, a naming convention refers to a framework used for naming your files in a specific way. - -## Classes -Class names should be nouns, in mixed cases with the first letter of each internal word capitalized. Interfaces names should also be capitalized just like class names. - -## Methods -Methods should be verbs, in mixed case with the first letter lowercase and with the first letter of each internal word capitalized. - -## Variables -Variable names should not start with underscore _ or dollar sign $ characters, even though both are allowed. - -## Packages -The prefix of a unique package name is always written in all-lowercase ASCII letters and should be one of the top-level domain names, like com, edu, gov, mil, net, org. \ No newline at end of file diff --git a/glossary.md b/glossary.md deleted file mode 100644 index f5a1116..0000000 --- a/glossary.md +++ /dev/null @@ -1,23 +0,0 @@ -翻译术语对照表 -=============== - -> [D](#d) || [P](#p) || [S](#s) || [V](#v) - -## D - -### dependencies 依赖包、依赖关系 - -## P - -### Package 资源包 - -## S - -### symlink 软链接 - -## V - -### Vendor 供应商 - -### Vendor Binary 二进制供应库 - diff --git a/i18n/TRANSLATION-GUIDE.md b/i18n/TRANSLATION-GUIDE.md new file mode 100644 index 0000000..ab0b6b2 --- /dev/null +++ b/i18n/TRANSLATION-GUIDE.md @@ -0,0 +1,52 @@ +# Composer 文档中文翻译规范 + +## 文件位置 + +- 英文原文:`src/<路径>.md`,**不要修改**(由 `scripts/import-composer.mjs` 从 Composer 仓库的 `doc/` 导入)。构建时 `scripts/sync-zh.mjs` 会把它发布到 `/en/<路径>`。 +- 中文译文:`i18n/zh/<路径>.md`,与原文路径一一对应。构建时发布到站点根路径 `/<路径>`。 +- 没有译文的页面会自动以英文显示并标记 `untranslated: true`。 + +## 旧译文 + +以下译文来自早期版本的 Composer 文档(原 `cn-introduction/` 目录),内容和章节结构与当前英文原文(2.11.3)有较大差异,需要按 `src/` 中的原文重新翻译: + +- `00-intro.md` ~ `05-repositories.md`、`08-community.md`(原 `06-community.md`) +- `articles/`:`aliases.md`、`custom-installers.md`、`plugins.md`、`scripts.md`、`vendor-binaries.md` +- `faqs/`:`how-do-i-install-a-package-to-a-custom-path-for-my-framework.md`、`should-i-commit-the-dependencies-in-my-vendor-directory.md`、`why-are-version-constraints-combining-comparisons-and-wildcards-a-bad-idea.md`、`why-cant-composer-load-repositories-recursively.md` + +构建时这些页面会输出 `anchors not aligned` 警告,重新翻译后警告即消失。 + +## 术语表 + +| 英文 | 中文 | +|------|------| +| dependency / dependencies | 依赖、依赖包 | +| package | 资源包 | +| library | 库 | +| repository | 资源库 | +| lock file | 锁文件 | +| autoloading / autoloader | 自动加载 / 自动加载器 | +| version constraint | 版本约束 | +| stability | 稳定性 | +| root package | 根包 | +| platform package | 平台包 | +| symlink | 软链接 | +| vendor | 供应商(`vendor` 目录名保持英文) | +| vendor binary | 二进制供应库 | +| plugin | 插件 | +| script | 脚本 | +| alias | 别名 | + +## 翻译要求 + +1. 读者是中文 PHP 开发者。译文要自然、通顺,不要逐词硬译;使用简体中文。 +2. **术语**:按上面的术语表统一。首次出现时写成「中文(English)」,之后只用中文。 +3. 产品名、库名、命令、配置项和代码标识符保持英文:Composer、Packagist、`composer.json`、`require-dev`、`COMPOSER_HOME`、`composer install` 等。 +4. **不翻译**:代码块内的代码、行内代码(反引号内)、文件路径、命令、URL、HTML 标签和属性。代码块中的**注释**可以翻译。 +5. **保持结构**:标题层级、列表、表格、`:::` 容器、HTML 片段、空行和 frontmatter 的键名都保持原样。frontmatter 中 `description` 的值要翻译。 +6. **链接**:链接地址保持原样(`03-cli.md#install--i` 这样的相对链接会自动指向中文页面),只翻译链接文字。 + - 英文原文的每个标题末尾都有 `{#id}`,这是与 getcomposer.org 一致的锚点。翻译时**保留标题末尾的 `{#id}` 不变**,只翻译前面的文字。 + - 也可以去掉 `{#id}`:`scripts/sync-zh.mjs` 构建时会按顺序把中文标题与英文标题配对,自动补上英文锚点。因此**译文的标题数量和顺序必须与原文完全一致**,不能合并、拆分或增删标题。 + - 构建时如果输出 `anchors not aligned` 警告,说明该页译文的标题数量与原文不一致,需要按 `src/` 中的原文修正。 +7. 中英文之间、中文与数字之间加一个空格。中文语境下使用全角标点(,。:;?!「」()),代码和英文内容中保持半角。 +8. 不要增删内容,不要添加译者注,除非原文有明显错误。 diff --git a/cn-introduction/00-intro.md b/i18n/zh/00-intro.md similarity index 100% rename from cn-introduction/00-intro.md rename to i18n/zh/00-intro.md diff --git a/cn-introduction/01-basic-usage.md b/i18n/zh/01-basic-usage.md similarity index 98% rename from cn-introduction/01-basic-usage.md rename to i18n/zh/01-basic-usage.md index 2fee19e..b5a7744 100644 --- a/cn-introduction/01-basic-usage.md +++ b/i18n/zh/01-basic-usage.md @@ -122,11 +122,10 @@ php composer.phar ~1.2 这对于遵循语义化版本号的项目非常有用。~1.2相当于>=1.2,<2.0。想要了解更多,请阅读下一小节。 - 插入符号 ^1.2.3 - ^操作符的行为很相似,但它更接近于语义,并将永远让不间断更新。例如^1.2.3相当于>=1.2.3<2.0.0如没有释放到2.0应该打破向后兼容性。同时也可以使用限制版本,如^0.3为>=0.3.0<0.4.0 。 + ^操作符的行为很相似,但它更接近于语义,并将永远让不间断更新。例如^1.2.3相当于>=1.2.3,<2.0.0如没有释放到2.0应该打破向后兼容性。同时也可以使用限制版本,如^0.3为>=0.3.0,<0.4.0。 diff --git a/cn-introduction/02-libraries.md b/i18n/zh/02-libraries.md similarity index 100% rename from cn-introduction/02-libraries.md rename to i18n/zh/02-libraries.md diff --git a/cn-introduction/03-cli.md b/i18n/zh/03-cli.md similarity index 100% rename from cn-introduction/03-cli.md rename to i18n/zh/03-cli.md diff --git a/cn-introduction/04-schema.md b/i18n/zh/04-schema.md similarity index 100% rename from cn-introduction/04-schema.md rename to i18n/zh/04-schema.md diff --git a/cn-introduction/05-repositories.md b/i18n/zh/05-repositories.md similarity index 100% rename from cn-introduction/05-repositories.md rename to i18n/zh/05-repositories.md diff --git a/cn-introduction/06-community.md b/i18n/zh/08-community.md similarity index 100% rename from cn-introduction/06-community.md rename to i18n/zh/08-community.md diff --git a/cn-introduction/articles/aliases.md b/i18n/zh/articles/aliases.md similarity index 100% rename from cn-introduction/articles/aliases.md rename to i18n/zh/articles/aliases.md diff --git a/cn-introduction/articles/custom-installers.md b/i18n/zh/articles/custom-installers.md similarity index 100% rename from cn-introduction/articles/custom-installers.md rename to i18n/zh/articles/custom-installers.md diff --git a/cn-introduction/articles/plugins.md b/i18n/zh/articles/plugins.md similarity index 100% rename from cn-introduction/articles/plugins.md rename to i18n/zh/articles/plugins.md diff --git a/cn-introduction/articles/scripts.md b/i18n/zh/articles/scripts.md similarity index 100% rename from cn-introduction/articles/scripts.md rename to i18n/zh/articles/scripts.md diff --git a/cn-introduction/articles/vendor-binaries.md b/i18n/zh/articles/vendor-binaries.md similarity index 100% rename from cn-introduction/articles/vendor-binaries.md rename to i18n/zh/articles/vendor-binaries.md diff --git a/cn-introduction/faqs/how-do-i-install-a-package-to-a-custom-path-for-my-framework.md b/i18n/zh/faqs/how-do-i-install-a-package-to-a-custom-path-for-my-framework.md similarity index 100% rename from cn-introduction/faqs/how-do-i-install-a-package-to-a-custom-path-for-my-framework.md rename to i18n/zh/faqs/how-do-i-install-a-package-to-a-custom-path-for-my-framework.md diff --git a/cn-introduction/faqs/should-i-commit-the-dependencies-in-my-vendor-directory.md b/i18n/zh/faqs/should-i-commit-the-dependencies-in-my-vendor-directory.md similarity index 100% rename from cn-introduction/faqs/should-i-commit-the-dependencies-in-my-vendor-directory.md rename to i18n/zh/faqs/should-i-commit-the-dependencies-in-my-vendor-directory.md diff --git a/cn-introduction/faqs/why-are-version-constraints-combining-comparisons-and-wildcards-a-bad-idea.md b/i18n/zh/faqs/why-are-version-constraints-combining-comparisons-and-wildcards-a-bad-idea.md similarity index 100% rename from cn-introduction/faqs/why-are-version-constraints-combining-comparisons-and-wildcards-a-bad-idea.md rename to i18n/zh/faqs/why-are-version-constraints-combining-comparisons-and-wildcards-a-bad-idea.md diff --git a/cn-introduction/faqs/why-can't-composer-load-repositories-recursively.md b/i18n/zh/faqs/why-cant-composer-load-repositories-recursively.md similarity index 100% rename from cn-introduction/faqs/why-can't-composer-load-repositories-recursively.md rename to i18n/zh/faqs/why-cant-composer-load-repositories-recursively.md diff --git a/i18n/zh/index.md b/i18n/zh/index.md new file mode 100644 index 0000000..c0e6495 --- /dev/null +++ b/i18n/zh/index.md @@ -0,0 +1,48 @@ +# Composer 中文文档 + +Composer 是 PHP 的依赖管理工具。本站英文原文基于 Composer 2.11.3,部分中文译文来自早期版本,正在按新版原文重新翻译。 + +## 手册 + +- [简介](/00-intro) +- [基本用法](/01-basic-usage) +- [库(资源包)](/02-libraries) +- [命令行](/03-cli) +- [composer.json 架构](/04-schema) +- [资源库](/05-repositories) +- [配置](/06-config) +- [运行时工具](/07-runtime) +- [社区](/08-community) + +## 文章 + +- [别名](/articles/aliases) +- [私有资源包和资源库的身份认证](/articles/authentication-for-private-packages) +- [自动加载优化](/articles/autoloader-optimization) +- [缓存 Composer 依赖](/articles/caching) +- [Composer 平台依赖](/articles/composer-platform-dependencies) +- [自定义安装程序](/articles/custom-installers) +- [处理私有资源包](/articles/handling-private-packages) +- [插件](/articles/plugins) +- [资源库优先级](/articles/repository-priorities) +- [解决合并冲突](/articles/resolving-merge-conflicts) +- [脚本](/articles/scripts) +- [故障排除](/articles/troubleshooting) +- [二进制供应库与 vendor/bin 目录](/articles/vendor-binaries) +- [版本与约束](/articles/versions) + +## 常见问题 + +- [如何为我的框架自定义一个资源包安装目录?](/faqs/how-do-i-install-a-package-to-a-custom-path-for-my-framework) +- [如何通过程序安装 Composer?](/faqs/how-to-install-composer-programmatically) +- [如何安全地安装不受信任的资源包?以超级用户或 root 身份运行 Composer 安全吗?](/faqs/how-to-install-untrusted-packages-safely) +- [如何在代理后使用 Composer](/faqs/how-to-use-composer-behind-a-proxy) +- [我应该提交 vendor 目录中的依赖包吗?](/faqs/should-i-commit-the-dependencies-in-my-vendor-directory) +- [Composer 自身使用哪种版本编号方式?](/faqs/which-version-numbering-system-does-composer-itself-use) +- [为什么说无上限的版本约束是坏主意?](/faqs/why-are-unbound-version-constraints-a-bad-idea) +- [为什么说“比较符”和“通配符”相结合的版本约束是坏主意?](/faqs/why-are-version-constraints-combining-comparisons-and-wildcards-a-bad-idea) +- [为什么 Composer 不递归加载资源库?](/faqs/why-cant-composer-load-repositories-recursively) + +## 内部机制 + +- [默认依赖求解策略](/dev/DefaultPolicy) diff --git a/index.html b/index.html deleted file mode 100644 index 932d8fb..0000000 --- a/index.html +++ /dev/null @@ -1,61 +0,0 @@ - - - - - - - - - - FHIR 通信框架 - - - - - - - -
- - - - - - diff --git a/package.json b/package.json deleted file mode 100644 index 1400e1c..0000000 --- a/package.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "dependencies": { - "yarn": "^1.22.19" - } -} diff --git a/scripts/generate.mjs b/scripts/generate.mjs new file mode 100644 index 0000000..569d6de --- /dev/null +++ b/scripts/generate.mjs @@ -0,0 +1,46 @@ +// Generates the site.json configuration file for the Composer documentation. +// The sidebar comes from scripts/nav.json, which import-composer.mjs writes from the +// upstream doc/ directory. +import fs from 'node:fs'; +import path from 'node:path'; +import { fileURLToPath } from 'node:url'; + +const SITE_DIR = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..'); +const NAV_FILE = path.join(SITE_DIR, 'scripts', 'nav.json'); +const GENERATED_DIR = path.join(SITE_DIR, '.vitepress', 'generated'); + +function toSidebarItems(items, base, depth) { + return items.map(item => { + if (item.items) { + return { + text: item.text, + collapsed: false, + items: toSidebarItems(item.items, base, depth + 1), + }; + } + const link = item.link.startsWith('/') ? `${base}${item.link.slice(1)}` : item.link; + return { text: item.text, link }; + }); +} + +function main() { + if (!fs.existsSync(NAV_FILE)) + throw new Error('scripts/nav.json is missing. Run "node scripts/import-composer.mjs " first.'); + const nav = JSON.parse(fs.readFileSync(NAV_FILE, 'utf8')); + + fs.mkdirSync(GENERATED_DIR, { recursive: true }); + const site = { + locales: { + root: { + label: 'Composer', + base: '/', + sidebar: { '/': toSidebarItems(nav, '/', 0) }, + }, + }, + }; + + fs.writeFileSync(path.join(GENERATED_DIR, 'site.json'), JSON.stringify(site, null, 2)); + console.log('[generate] Generated site.json'); +} + +main(); diff --git a/scripts/import-composer.mjs b/scripts/import-composer.mjs new file mode 100644 index 0000000..4e605b1 --- /dev/null +++ b/scripts/import-composer.mjs @@ -0,0 +1,167 @@ +// Imports the Composer documentation (the doc/ directory of the composer/composer repository) +// into this VitePress site. +// +// node scripts/import-composer.mjs +// +// English pages -> src/, sidebar -> scripts/nav.json, English home page -> src/index.md. +// Chinese translations live in i18n/zh/ and are not touched. +// +// The Markdown is rewritten for VitePress: +// - Every heading gets an explicit id {#...} computed the way getcomposer.org (GitHub-style) +// computes it, so upstream links such as 03-cli.md#update--u--upgrade or +// #composer_no_dev keep working. VitePress's own slugify would produce different ids. +// - The "tagline" HTML comment at the top of articles becomes frontmatter (description). +import { execFileSync } from 'node:child_process'; +import fs from 'node:fs'; +import path from 'node:path'; +import { fileURLToPath } from 'node:url'; + +const SITE_DIR = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..'); +const SRC_DIR = path.join(SITE_DIR, 'src'); +const NAV_FILE = path.join(SITE_DIR, 'scripts', 'nav.json'); + +// Test fixtures, not documentation. +const SKIP_DIRS = new Set(['fixtures']); + +// Sidebar groups, in the order getcomposer.org lists them on https://getcomposer.org/doc/. +const GROUPS = [ + { text: 'Book', match: rel => !rel.includes('/') }, + { text: 'Articles', match: rel => rel.startsWith('articles/') }, + { text: 'FAQs', match: rel => rel.startsWith('faqs/') }, + { text: 'Internals', match: rel => rel.startsWith('dev/') }, +]; + +function listMarkdown(dir, rel = '') { + const files = []; + for (const entry of fs.readdirSync(dir, { withFileTypes: true })) { + const entryRel = rel ? `${rel}/${entry.name}` : entry.name; + if (entry.isDirectory()) { + if (!SKIP_DIRS.has(entry.name)) + files.push(...listMarkdown(path.join(dir, entry.name), entryRel)); + } else if (entry.name.endsWith('.md')) { + files.push(entryRel); + } + } + return files.sort(); +} + +// Plain text of a heading as rendered. +function headingText(raw) { + return raw + .replace(/!?\[([^\]]*)\]\([^)]*\)/g, '$1') + .replace(/<[^>]+>/g, '') + .replace(/`([^`]*)`/g, '$1') + .replace(/(\*\*|\*)(?=\S)([^*]*?\S)\1/g, '$2') + // Underscore emphasis only at word boundaries: COMPOSER_NO_DEV is not italic. + .replace(/(? "update--u--upgrade"). +function githubSlug(text) { + return text + .toLowerCase() + .replace(/[^\p{L}\p{M}\p{N}\p{Pc} -]/gu, '') + .replace(/ /g, '-'); +} + +const HEADING = /^(#{1,6})\s+(.*?)\s*$/; +const CUSTOM_ID = /\s*\{#([^}]+)\}\s*$/; + +function convertMarkdown(text) { + let body = text.replace(/\r\n/g, '\n'); + const frontmatter = []; + const tagline = body.match(/^\s*\n+/); + if (tagline) { + frontmatter.push(`description: ${JSON.stringify(tagline[1])}`); + body = body.slice(tagline[0].length); + } + + const lines = body.split('\n'); + const seen = new Map(); + let fence = null; + for (let i = 0; i < lines.length; i++) { + const fenceMatch = lines[i].match(/^\s*(`{3,}|~{3,})/); + if (fenceMatch) { + if (!fence) fence = fenceMatch[1]; + else if (lines[i].trim().startsWith(fence)) fence = null; + continue; + } + const heading = !fence && lines[i].match(HEADING); + if (!heading || CUSTOM_ID.test(lines[i])) + continue; + let id = githubSlug(headingText(heading[2])); + const count = seen.get(id) ?? 0; + seen.set(id, count + 1); + if (count) id = `${id}-${count}`; + if (id) + lines[i] = `${lines[i].trimEnd()} {#${id}}`; + } + + const out = lines.join('\n'); + return frontmatter.length ? `---\n${frontmatter.join('\n')}\n---\n\n${out}` : out; +} + +function pageTitle(text) { + const match = text.match(/^#\s+(.*?)\s*(\{#[^}]+\})?\s*$/m); + return match ? headingText(match[1]) : null; +} + +function buildNav(pages) { + return GROUPS.map(group => ({ + text: group.text, + items: pages.filter(page => group.match(page.rel)).map(page => ({ + text: page.title, + link: `/${page.rel.replace(/\.md$/, '')}`, + })), + })).filter(group => group.items.length); +} + +// English home page: the documentation index, like https://getcomposer.org/doc/. +function buildIndex(nav, version) { + const lines = [ + '# Composer Documentation', + '', + `Composer is a tool for dependency management in PHP. This documentation is based on Composer ${version}.`, + ]; + for (const group of nav) { + lines.push('', `## ${group.text}`, ''); + for (const item of group.items) + lines.push(`- [${item.text}](${item.link})`); + } + return lines.join('\n') + '\n'; +} + +function composerVersion(repo) { + try { + return execFileSync('git', ['describe', '--tags', '--exact-match'], { cwd: repo, encoding: 'utf8', stdio: ['ignore', 'pipe', 'ignore'] }).trim(); + } catch { + return 'main'; + } +} + +function main() { + const repo = path.resolve(process.argv[2] ?? ''); + const docsDir = path.join(repo, 'doc'); + if (!fs.existsSync(path.join(docsDir, '00-intro.md'))) + throw new Error('Usage: node scripts/import-composer.mjs '); + + fs.rmSync(SRC_DIR, { recursive: true, force: true }); + const pages = []; + for (const rel of listMarkdown(docsDir)) { + const converted = convertMarkdown(fs.readFileSync(path.join(docsDir, rel), 'utf8')); + const file = path.join(SRC_DIR, rel); + fs.mkdirSync(path.dirname(file), { recursive: true }); + fs.writeFileSync(file, converted); + pages.push({ rel, title: pageTitle(converted) ?? rel }); + } + + const nav = buildNav(pages); + const version = composerVersion(repo); + fs.writeFileSync(path.join(SRC_DIR, 'index.md'), buildIndex(nav, version)); + fs.writeFileSync(NAV_FILE, JSON.stringify(nav, null, 2) + '\n'); + console.log(`[import] ${pages.length} English pages (Composer ${version}) written to src/, sidebar written to scripts/nav.json.`); +} + +main(); diff --git a/scripts/nav.json b/scripts/nav.json new file mode 100644 index 0000000..8a4b9da --- /dev/null +++ b/scripts/nav.json @@ -0,0 +1,154 @@ +[ + { + "text": "Book", + "items": [ + { + "text": "Introduction", + "link": "/00-intro" + }, + { + "text": "Basic usage", + "link": "/01-basic-usage" + }, + { + "text": "Libraries", + "link": "/02-libraries" + }, + { + "text": "Command-line interface / Commands", + "link": "/03-cli" + }, + { + "text": "The composer.json schema", + "link": "/04-schema" + }, + { + "text": "Repositories", + "link": "/05-repositories" + }, + { + "text": "Config", + "link": "/06-config" + }, + { + "text": "Runtime Composer utilities", + "link": "/07-runtime" + }, + { + "text": "Community", + "link": "/08-community" + } + ] + }, + { + "text": "Articles", + "items": [ + { + "text": "Aliases", + "link": "/articles/aliases" + }, + { + "text": "Authentication for privately hosted packages and repositories", + "link": "/articles/authentication-for-private-packages" + }, + { + "text": "Autoloader optimization", + "link": "/articles/autoloader-optimization" + }, + { + "text": "Caching Composer dependencies", + "link": "/articles/caching" + }, + { + "text": "Composer platform dependencies", + "link": "/articles/composer-platform-dependencies" + }, + { + "text": "Setting up and using custom installers", + "link": "/articles/custom-installers" + }, + { + "text": "Handling private packages", + "link": "/articles/handling-private-packages" + }, + { + "text": "Setting up and using plugins", + "link": "/articles/plugins" + }, + { + "text": "Repository priorities", + "link": "/articles/repository-priorities" + }, + { + "text": "Resolving merge conflicts", + "link": "/articles/resolving-merge-conflicts" + }, + { + "text": "Scripts", + "link": "/articles/scripts" + }, + { + "text": "Troubleshooting", + "link": "/articles/troubleshooting" + }, + { + "text": "Vendor binaries and the vendor/bin directory", + "link": "/articles/vendor-binaries" + }, + { + "text": "Versions and constraints", + "link": "/articles/versions" + } + ] + }, + { + "text": "FAQs", + "items": [ + { + "text": "How do I install a package to a custom path for my framework?", + "link": "/faqs/how-do-i-install-a-package-to-a-custom-path-for-my-framework" + }, + { + "text": "How do I install Composer programmatically?", + "link": "/faqs/how-to-install-composer-programmatically" + }, + { + "text": "How do I install untrusted packages safely? Is it safe to run Composer as superuser or root?", + "link": "/faqs/how-to-install-untrusted-packages-safely" + }, + { + "text": "How to use Composer behind a proxy", + "link": "/faqs/how-to-use-composer-behind-a-proxy" + }, + { + "text": "Should I commit the dependencies in my vendor directory?", + "link": "/faqs/should-i-commit-the-dependencies-in-my-vendor-directory" + }, + { + "text": "Which version numbering system does Composer itself use?", + "link": "/faqs/which-version-numbering-system-does-composer-itself-use" + }, + { + "text": "Why are unbound version constraints a bad idea?", + "link": "/faqs/why-are-unbound-version-constraints-a-bad-idea" + }, + { + "text": "Why are version constraints combining comparisons and wildcards a bad idea?", + "link": "/faqs/why-are-version-constraints-combining-comparisons-and-wildcards-a-bad-idea" + }, + { + "text": "Why can't Composer load repositories recursively?", + "link": "/faqs/why-cant-composer-load-repositories-recursively" + } + ] + }, + { + "text": "Internals", + "items": [ + { + "text": "Default Solver Policy", + "link": "/dev/DefaultPolicy" + } + ] + } +] diff --git a/scripts/sync-zh.mjs b/scripts/sync-zh.mjs new file mode 100644 index 0000000..3872ae5 --- /dev/null +++ b/scripts/sync-zh.mjs @@ -0,0 +1,161 @@ +// Assembles the bilingual site in site/ (generated, git-ignored). +// Simplified Chinese is served from the site root; English from /en/. +import fs from 'node:fs'; +import path from 'node:path'; +import { fileURLToPath } from 'node:url'; + +const SITE_DIR = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..'); +const SRC_DIR = path.join(SITE_DIR, 'src'); +const OUT_DIR = path.join(SITE_DIR, 'site'); +const EN_DIR = 'en'; +const ZH_TRANSLATIONS_DIR = path.join(SITE_DIR, 'i18n', 'zh'); + +const SKIP_DIRS = new Set(['public', 'zh', EN_DIR]); +const STATIC_PREFIXES = ['_media/', '_images/', `${EN_DIR}/`]; + +function listMarkdown(dir, rel = '') { + const files = []; + if (!fs.existsSync(dir)) + return files; + for (const entry of fs.readdirSync(dir, { withFileTypes: true })) { + const entryRel = rel ? `${rel}/${entry.name}` : entry.name; + if (entry.isDirectory()) { + if (!rel && SKIP_DIRS.has(entry.name)) + continue; + files.push(...listMarkdown(path.join(dir, entry.name), entryRel)); + } else if (entry.name.endsWith('.md')) { + files.push(entryRel); + } + } + return files; +} + +function toEnglishPath(target) { + return STATIC_PREFIXES.some(prefix => target.startsWith(prefix)) ? `/${target}` : `/${EN_DIR}/${target}`; +} + +function moveLinksUnderEnglish(text) { + return text + .replace(/\]\(\/(?!\/)([^)\s]*)/g, (_, target) => `](${toEnglishPath(target)}`) + .replace(/\bhref="\/(?!\/)([^"]*)"/g, (_, target) => `href="${toEnglishPath(target)}"`) + .replace(/^(\s*link:\s*)\/(?!\/)(\S*)/gm, (_, prefix, target) => `${prefix}${toEnglishPath(target)}`); +} + +function markUntranslated(text) { + if (text.startsWith('---\n') || text.startsWith('---\r\n')) + return text.replace(/^---\r?\n/, '---\nuntranslated: true\n'); + return `---\nuntranslated: true\n---\n\n${text}`; +} + +// Same algorithm as VitePress's default heading slugify. +function slugify(str) { + return str.normalize('NFKD') + .replace(/[̀-ͯ]/g, '') + .replace(/[\u0000-\u001f]/g, '') + .replace(/[\s~`!@#$%^&*()\-_+=[\]{}|\\;:"'“”‘’<>,.?/]+/g, '-') + .replace(/-{2,}/g, '-') + .replace(/^-+|-+$/g, '') + .replace(/^(\d)/, '_$1') + .toLowerCase(); +} + +const HEADING = /^(#{1,6})\s+(.*?)\s*$/; +const CUSTOM_ID = /\s*\{#([^}]+)\}\s*$/; + +// Line indexes of ATX headings outside fenced code blocks and frontmatter. +function headingLines(lines) { + const result = []; + let fence = null; + let i = 0; + if (lines[0]?.trim() === '---') { + i = lines.findIndex((line, idx) => idx > 0 && line.trim() === '---') + 1; + } + for (; i < lines.length; i++) { + const fenceMatch = lines[i].match(/^\s*(`{3,}|~{3,})/); + if (fenceMatch) { + if (!fence) fence = fenceMatch[1]; + else if (lines[i].trim().startsWith(fence)) fence = null; + continue; + } + if (!fence && HEADING.test(lines[i])) result.push(i); + } + return result; +} + +// Plain text of a heading as rendered, which is what VitePress slugifies. +function headingText(raw) { + return raw + .replace(/!?\[([^\]]*)\]\([^)]*\)/g, '$1') + .replace(/<[^>]+>/g, '') + .replace(/`([^`]*)`/g, '$1') + .replace(/(\*\*|__|\*|_)(?=\S)([^*_]*?\S)\1/g, '$2') + .trim(); +} + +// Give each translated heading the English heading's id, so that #anchor links +// written against the English text keep working on the Chinese page. +function keepEnglishAnchors(rel, english, chinese) { + const enLines = english.split(/\r?\n/); + const zhLines = chinese.split(/\r?\n/); + const enHeadings = headingLines(enLines); + const zhHeadings = headingLines(zhLines); + if (enHeadings.length !== zhHeadings.length) { + console.warn(`[sync-zh] i18n/zh/${rel}: ${zhHeadings.length} headings vs ${enHeadings.length} in English; anchors not aligned.`); + return chinese; + } + const seen = new Map(); + enHeadings.forEach((enIdx, n) => { + const [, , enRaw] = enLines[enIdx].match(HEADING); + const custom = enRaw.match(CUSTOM_ID); + let id = custom ? custom[1] : slugify(headingText(enRaw)); + if (!custom) { + const count = seen.get(id) ?? 0; + seen.set(id, count + 1); + if (count) id = `${id}-${count}`; + } + const zhIdx = zhHeadings[n]; + if (!CUSTOM_ID.test(zhLines[zhIdx]) && id) + zhLines[zhIdx] = `${zhLines[zhIdx].trimEnd()} {#${id}}`; + }); + return zhLines.join('\n'); +} + +function write(rel, text) { + const file = path.join(OUT_DIR, rel); + fs.mkdirSync(path.dirname(file), { recursive: true }); + fs.writeFileSync(file, text); +} + +function main() { + fs.rmSync(OUT_DIR, { recursive: true, force: true }); + fs.mkdirSync(OUT_DIR, { recursive: true }); + if (fs.existsSync(path.join(SRC_DIR, 'public'))) + fs.cpSync(path.join(SRC_DIR, 'public'), path.join(OUT_DIR, 'public'), { recursive: true }); + + let translated = 0; + const pages = listMarkdown(SRC_DIR); + for (const rel of pages) { + const english = fs.readFileSync(path.join(SRC_DIR, rel), 'utf8'); + write(`${EN_DIR}/${rel}`, moveLinksUnderEnglish(english)); + + const translationFile = path.join(ZH_TRANSLATIONS_DIR, rel); + if (fs.existsSync(translationFile)) { + write(rel, keepEnglishAnchors(rel, english, fs.readFileSync(translationFile, 'utf8'))); + translated++; + } else { + write(rel, markUntranslated(english)); + } + } + + if (fs.existsSync(ZH_TRANSLATIONS_DIR)) { + const known = new Set(pages); + for (const rel of listMarkdown(ZH_TRANSLATIONS_DIR)) { + if (!known.has(rel)) + console.warn(`[sync-zh] i18n/zh/${rel} has no English page in src/ and was skipped.`); + } + } + + console.log(`[sync-zh] ${pages.length} pages: Chinese in site/ (${translated} translated), English in site/${EN_DIR}/.`); +} + +main(); diff --git a/src/00-intro.md b/src/00-intro.md new file mode 100644 index 0000000..43afa19 --- /dev/null +++ b/src/00-intro.md @@ -0,0 +1,206 @@ +# Introduction {#introduction} + +Composer is a tool for dependency management in PHP. It allows you to declare +the libraries your project depends on and it will manage (install/update) them +for you. + +## Dependency management {#dependency-management} + +Composer is **not** a package manager in the same sense as Yum or Apt are. Yes, +it deals with "packages" or libraries, but it manages them on a per-project +basis, installing them in a directory (e.g. `vendor`) inside your project. By +default, it does not install anything globally. Thus, it is a dependency +manager. It does however support a "global" project for convenience via the +[global](03-cli.md#global) command. + +This idea is not new and Composer is strongly inspired by node's +[npm](https://www.npmjs.com/) and ruby's [bundler](https://bundler.io/). + +Suppose: + +1. You have a project that depends on a number of libraries. +2. Some of those libraries depend on other libraries. + +Composer: + +1. Enables you to declare the libraries you depend on. +2. Finds out which versions of which packages can and need to be installed, and + installs them (meaning it downloads them into your project). +3. You can update all your dependencies in one command. + +See the [Basic usage](01-basic-usage.md) chapter for more details on declaring +dependencies. + +## System Requirements {#system-requirements} + +Composer in its latest version requires PHP 7.2.5 to run. A long-term-support +version (2.2.x) still offers support for PHP 5.3.2+ in case you are stuck with +a legacy PHP version. A few sensitive php settings and compile flags are also +required, but when using the installer you will be warned about any +incompatibilities. + +Composer needs several supporting applications to work effectively, making the +process of handling package dependencies more efficient. For decompressing +files, Composer relies on tools like `7z` (or `7zz`), `gzip`, `tar`, `unrar`, +`unzip` and `xz`. As for version control systems, Composer integrates seamlessly +with Fossil, Git, Mercurial, Perforce and Subversion, thereby ensuring the +application's smooth operation and management of library repositories. Before +using Composer, ensure that these dependencies are correctly installed on your +system. + +Composer is multi-platform and we strive to make it run equally well on Windows, +Linux and macOS. + +## Installation - Linux / Unix / macOS {#installation---linux--unix--macos} + +### Downloading the Composer Executable {#downloading-the-composer-executable} + +Composer offers a convenient installer that you can execute directly from the +command line. Feel free to [download this file](https://getcomposer.org/installer) +or review it on [GitHub](https://github.com/composer/getcomposer.org/blob/main/web/installer) +if you wish to know more about the inner workings of the installer. The source +is plain PHP. + +There are, in short, two ways to install Composer. Locally as part of your +project, or globally as a system wide executable. + +#### Locally {#locally} + +To install Composer locally, run the installer in your project directory. See +[the Download page](https://getcomposer.org/download/) for instructions. + +The installer will check a few PHP settings and then download `composer.phar` +to your working directory. This file is the Composer binary. It is a PHAR +(PHP archive), which is an archive format for PHP which can be run on +the command line, amongst other things. + +Now run `php composer.phar` in order to run Composer. + +You can install Composer to a specific directory by using the `--install-dir` +option and additionally (re)name it as well using the `--filename` option. When +running the installer when following +[the Download page instructions](https://getcomposer.org/download/) add the +following parameters: + +```shell +php composer-setup.php --install-dir=bin --filename=composer +``` + +Now run `php bin/composer` in order to run Composer. + +#### Globally {#globally} + +You can place the Composer PHAR anywhere you wish. If you put it in a directory +that is part of your `PATH`, you can access it globally. On Unix systems you +can even make it executable and invoke it without directly using the `php` +interpreter. + +After running the installer following [the Download page instructions](https://getcomposer.org/download/) +you can run this to move composer.phar to a directory that is in your path: + +```shell +mv composer.phar /usr/local/bin/composer +``` + +If you like to install it only for your user and avoid requiring root permissions, +you can use `~/.local/bin` instead which is available by default on some +Linux distributions. + +> **Note:** If the above fails due to permissions, you may need to run it again +> with `sudo`. + +> **Note:** On some versions of macOS the `/usr` directory does not exist by +> default. If you receive the error "/usr/local/bin/composer: No such file or +> directory" then you must create the directory manually before proceeding: +> `mkdir -p /usr/local/bin`. + +> **Note:** For information on changing your PATH, please read the +> [Wikipedia article](https://en.wikipedia.org/wiki/PATH_(variable)) and/or use +> your search engine of choice. + +Now run `composer` in order to run Composer instead of `php composer.phar`. + +## Installation - Windows {#installation---windows} + +### Using the Installer {#using-the-installer} + +This is the easiest way to get Composer set up on your machine. + +Download and run +[Composer-Setup.exe](https://getcomposer.org/Composer-Setup.exe). It will +install the latest Composer version and set up your PATH so that you can +call `composer` from any directory in your command line. + +> **Note:** Close your current terminal. Test usage with a new terminal: This is +> important since the PATH only gets loaded when the terminal starts. + +### Manual Installation {#manual-installation} + +Change to a directory on your `PATH` and run the installer following +[the Download page instructions](https://getcomposer.org/download/) +to download `composer.phar`. + +Create a new `composer.bat` file alongside `composer.phar`: + +Using cmd.exe: + +```shell +C:\bin> echo @php "%~dp0composer.phar" %*>composer.bat +``` + +Using PowerShell: + +```shell +PS C:\bin> Set-Content composer.bat '@php "%~dp0composer.phar" %*' +``` + +Add the directory to your PATH environment variable if it isn't already. +For information on changing your PATH variable, please see +[this article](https://www.computerhope.com/issues/ch000549.htm) and/or +use your search engine of choice. + +Close your current terminal. Test usage with a new terminal: + +```shell +C:\Users\username>composer -V +``` +```text +Composer version 2.4.0 2022-08-16 16:10:48 +``` + +## Docker Image {#docker-image} + +Composer is published as Docker container in a few places, see the list in the [composer/docker README](https://github.com/composer/docker). + +Example usage: + +```shell +docker pull composer/composer +docker run --rm -it -v "$(pwd):/app" composer/composer install +``` + +To add Composer to an existing **Dockerfile** you can simply copy binary file from pre-built, low-size images: + +```Dockerfile +# Latest release +COPY --from=composer/composer:latest-bin /composer /usr/bin/composer + +# Specific release +COPY --from=composer/composer:2-bin /composer /usr/bin/composer +``` + +**Note:** you need to manually install other runtime dependencies inside your image when using this method; +see also https://github.com/composer/composer/blob/main/README.md#binary-dependencies. + +Read the [image description](https://hub.docker.com/r/composer/composer) for further usage information. + +**Note:** Docker specific issues should be filed [on the composer/docker repository](https://github.com/composer/docker/issues). + +**Note:** You may also use `composer` instead of `composer/composer` as image name above. It is shorter and is a Docker official image but is not published directly by us and thus usually receives new releases with a delay of a few days. **Important**: short-aliased images don't have binary-only equivalents, so for `COPY --from` approach it's better to use `composer/composer` ones. + +## Using Composer {#using-composer} + +Now that you've installed Composer, you are ready to use it! Head on over to the +next chapter for a short demonstration. + +[Basic usage](01-basic-usage.md) → diff --git a/src/01-basic-usage.md b/src/01-basic-usage.md new file mode 100644 index 0000000..434e828 --- /dev/null +++ b/src/01-basic-usage.md @@ -0,0 +1,286 @@ +# Basic usage {#basic-usage} + +## Introduction {#introduction} + +For our basic usage introduction, we will be installing `monolog/monolog`, +a logging library. If you have not yet installed Composer, refer to the +[Intro](00-intro.md) chapter. + +> **Note:** for the sake of simplicity, this introduction will assume you +> have performed a [local](00-intro.md#locally) install of Composer. + +## `composer.json`: Project setup {#composerjson-project-setup} + +To start using Composer in your project, all you need is a `composer.json` +file. This file describes the dependencies of your project and may contain +other metadata as well. It typically should go in the top-most directory of +your project/VCS repository. You can technically run Composer anywhere but +if you want to publish a package to Packagist.org, it will have to be able +to find the file at the top of your VCS repository. + +### The `require` key {#the-require-key} + +The first thing you specify in `composer.json` is the +[`require`](04-schema.md#require) key. You are telling Composer which +packages your project depends on. + +```json +{ + "require": { + "monolog/monolog": "2.0.*" + } +} +``` + +As you can see, [`require`](04-schema.md#require) takes an object that maps +**package names** (e.g. `monolog/monolog`) to **version constraints** (e.g. +`1.0.*`). + +Composer uses this information to search for the right set of files in package +"repositories" that you register using the [`repositories`](04-schema.md#repositories-root-only) +key, or in [Packagist.org](https://packagist.org), the default package repository. +In the above example, since no other repository has been registered in the +`composer.json` file, it is assumed that the `monolog/monolog` package is registered +on Packagist.org. (Read more [about Packagist](#packagist), and +[about repositories](05-repositories.md)). + +### Package names {#package-names} + +The package name consists of a vendor name and the project's name. Often these +will be identical - the vendor name only exists to prevent naming clashes. For +example, it would allow two different people to create a library named `json`. +One might be named `igorw/json` while the other might be `seldaek/json`. + +Read more about [publishing packages and package naming](02-libraries.md). +(Note that you can also specify "platform packages" as dependencies, allowing +you to require certain versions of server software. See +[platform packages](#platform-packages) below.) + +### Package version constraints {#package-version-constraints} + +In our example, we are requesting the Monolog package with the version constraint +[`2.0.*`](https://semver.madewithlove.com/?package=monolog%2Fmonolog&constraint=2.0.*). +This means any version in the `2.0` development branch, or any version that is +greater than or equal to 2.0 and less than 2.1 (`>=2.0 <2.1`). + +Please read [versions](articles/versions.md) for more in-depth information on +versions, how versions relate to each other, and on version constraints. + +> **How does Composer download the right files?** When you specify a dependency in +> `composer.json`, Composer first takes the name of the package that you have requested +> and searches for it in any repositories that you have registered using the +> [`repositories`](04-schema.md#repositories-root-only) key. If you have not registered +> any extra repositories, or it does not find a package with that name in the +> repositories you have specified, it falls back to Packagist.org (more [below](#packagist)). +> +> When Composer finds the right package, either in Packagist.org or in a repo you have specified, +> it then uses the versioning features of the package's VCS (i.e., branches and tags) +> to attempt to find the best match for the version constraint you have specified. Be sure to read +> about versions and package resolution in the [versions article](articles/versions.md). + +> **Note:** If you are trying to require a package but Composer throws an error +> regarding package stability, the version you have specified may not meet your +> default minimum stability requirements. By default, only stable releases are taken +> into consideration when searching for valid package versions in your VCS. +> +> You might run into this if you are trying to require dev, alpha, beta, or RC +> versions of a package. Read more about stability flags and the `minimum-stability` +> key on the [schema page](04-schema.md). + +## Installing dependencies {#installing-dependencies} + +To initially install the defined dependencies for your project, you should run the +[`update`](03-cli.md#update--u--upgrade) command. + +```shell +php composer.phar update +``` + +This will make Composer do two things: + +- It resolves all dependencies listed in your `composer.json` file and writes all of the + packages and their exact versions to the `composer.lock` file, locking the project to + those specific versions. You should commit the `composer.lock` file to your project repo + so that all people working on the project are locked to the same versions of dependencies + (more below). This is the main role of the `update` command. +- It then implicitly runs the [`install`](03-cli.md#install--i) command. This will download + the dependencies' files into the `vendor` directory in your project. (The `vendor` + directory is the conventional location for all third-party code in a project). In our + example from above, you would end up with the Monolog source files in + `vendor/monolog/monolog/`. As Monolog has a dependency on `psr/log`, that package's files + can also be found inside `vendor/`. + +> **Tip:** If you are using git for your project, you probably want to add +> `vendor` in your `.gitignore`. You really don't want to add all of that +> third-party code to your versioned repository. + +### Commit your `composer.lock` file to version control {#commit-your-composerlock-file-to-version-control} + +Committing this file to version control is important because it will cause anyone +who sets up the project to use the exact same +versions of the dependencies that you are using. Your CI server, production +machines, other developers in your team, everything and everyone runs on the +same dependencies, which mitigates the potential for bugs affecting only some +parts of the deployments. Even if you develop alone, in six months when +reinstalling the project you can feel confident that the dependencies installed are +still working, even if the dependencies have released many new versions since then. +(See note below about using the `update` command.) + +> **Note:** Libraries should commit the lock file as well, see also: +> [Libraries - Lock file](02-libraries.md#lock-file). + +### Installing from `composer.lock` {#installing-from-composerlock} + +If there is already a `composer.lock` file in the project folder, it means either +you ran the `update` command before, or someone else on the project ran the `update` +command and committed the `composer.lock` file to the project (which is good). + +Either way, running `install` when a `composer.lock` file is present resolves and installs +all dependencies that you listed in `composer.json`, but Composer uses the exact versions listed +in `composer.lock` to ensure that the package versions are consistent for everyone +working on your project. As a result you will have all dependencies requested by your +`composer.json` file, but they may not all be at the very latest available versions +(some of the dependencies listed in the `composer.lock` file may have released newer versions since +the file was created). This is by design, ensuring that your project does not break because of +unexpected changes in dependencies. + +So after fetching new changes from your VCS repository it is recommended to run +a Composer `install` to make sure the vendor directory is up in sync with your +`composer.lock` file. + +```shell +php composer.phar install +``` + +Composer enables reproducible builds by default. This means that running the +same command multiple times will produce a `vendor/` directory containing files +that are identical (*except their timestamps*), including the autoloader files. +It is especially beneficial for environments that require strict +verification processes, as well as for Linux distributions aiming to package PHP +applications in a secure and predictable manner. + +## Updating dependencies to their latest versions {#updating-dependencies-to-their-latest-versions} + +As mentioned above, the `composer.lock` file prevents you from automatically getting +the latest versions of your dependencies. To update to the latest versions, use the +[`update`](03-cli.md#update--u--upgrade) command. This will fetch the latest matching +versions (according to your `composer.json` file) and update the lock file +with the new versions. + +```shell +php composer.phar update +``` + +> **Note:** Composer will display a Warning when executing an `install` command +> if the `composer.lock` has not been updated since changes were made to the +> `composer.json` that might affect dependency resolution. + +If you only want to install, upgrade or remove one dependency, you can explicitly list it as an argument: + +```shell +php composer.phar update monolog/monolog [...] +``` + +## Packagist {#packagist} + +[Packagist.org](https://packagist.org/) is the main Composer repository. A Composer +repository is basically a package source: a place where you can get packages +from. Packagist aims to be the central repository that everybody uses. This +means that you can automatically `require` any package that is available there, +without further specifying where Composer should look for the package. + +If you go to the [Packagist.org website](https://packagist.org/), +you can browse and search for packages. + +Any open source project using Composer is recommended to publish their packages +on Packagist. A library does not need to be on Packagist to be used by Composer, +but it enables discovery and adoption by other developers more quickly. + +## Platform packages {#platform-packages} + +Composer has platform packages, which are virtual packages for things that are +installed on the system but are not actually installable by Composer. This +includes PHP itself, PHP extensions and some system libraries. + +* `php` represents the PHP version of the user, allowing you to apply + constraints, e.g. `^7.1`. To require a 64bit version of php, you can + require the `php-64bit` package. + +* `hhvm` represents the version of the HHVM runtime and allows you to apply + a constraint, e.g., `^2.3`. + +* `ext-` allows you to require PHP extensions (includes core + extensions). Versioning can be quite inconsistent here, so it's often + a good idea to set the constraint to `*`. An example of an extension + package name is `ext-gd`. + +* `lib-` allows constraints to be made on versions of libraries used by + PHP. The following are available: `curl`, `iconv`, `icu`, `libxml`, + `openssl`, `pcre`, `uuid`, `xsl`. + +You can use [`show --platform`](03-cli.md#show--info) to get a list of your locally +available platform packages. + +## Autoloading {#autoloading} + +For libraries that specify autoload information, Composer generates a +`vendor/autoload.php` file. You can include this file and start +using the classes that those libraries provide without any extra work: + +```php +require __DIR__ . '/vendor/autoload.php'; + +$log = new Monolog\Logger('name'); +$log->pushHandler(new Monolog\Handler\StreamHandler('app.log', Monolog\Logger::WARNING)); +$log->warning('Foo'); +``` + +You can even add your own code to the autoloader by adding an +[`autoload`](04-schema.md#autoload) field to `composer.json`. + +```json +{ + "autoload": { + "psr-4": {"Acme\\": "src/"} + } +} +``` + +Composer will register a [PSR-4](https://www.php-fig.org/psr/psr-4/) autoloader +for the `Acme` namespace. + +You define a mapping from namespaces to directories. The `src` directory would +be in your project root, on the same level as the `vendor` directory. An example +filename would be `src/Foo.php` containing an `Acme\Foo` class. + +After adding the [`autoload`](04-schema.md#autoload) field, you have to re-run +this command: + +```shell +php composer.phar dump-autoload +``` + +This command will re-generate the `vendor/autoload.php` file. +See the [`dump-autoload`](03-cli.md#dump-autoload--dumpautoload) section for +more information. + +Including that file will also return the autoloader instance, so you can store +the return value of the include call in a variable and add more namespaces. +This can be useful for autoloading classes in a test suite, for example. + +```php +$loader = require __DIR__ . '/vendor/autoload.php'; +$loader->addPsr4('Acme\\Test\\', __DIR__); +``` + +In addition to PSR-4 autoloading, Composer also supports PSR-0, classmap and +files autoloading. See the [`autoload`](04-schema.md#autoload) reference for +more information. + +See also the docs on [optimizing the autoloader](articles/autoloader-optimization.md). + +> **Note:** Composer provides its own autoloader. If you don't want to use that +> one, you can include `vendor/composer/autoload_*.php` files, which return +> associative arrays allowing you to configure your own autoloader. + +← [Intro](00-intro.md) | [Libraries](02-libraries.md) → diff --git a/src/02-libraries.md b/src/02-libraries.md new file mode 100644 index 0000000..32c699a --- /dev/null +++ b/src/02-libraries.md @@ -0,0 +1,266 @@ +# Libraries {#libraries} + +This chapter will tell you how to make your library installable through +Composer. + +## Every project is a package {#every-project-is-a-package} + +As soon as you have a `composer.json` in a directory, that directory is a +package. When you add a [`require`](04-schema.md#require) to a project, you are +making a package that depends on other packages. The only difference between +your project and a library is that your project is a package without a name. + +In order to make that package installable you need to give it a name. You do +this by adding the [`name`](04-schema.md#name) property in `composer.json`: + +```json +{ + "name": "acme/hello-world", + "require": { + "monolog/monolog": "1.0.*" + } +} +``` + +In this case the project name is `acme/hello-world`, where `acme` is the vendor +name. Supplying a vendor name is mandatory. + +> **Note:** If you don't know what to use as a vendor name, your GitHub +> username is usually a good bet. Package names must be lowercase, and the +> convention is to use dashes for word separation. + +## Library Versioning {#library-versioning} + +In the vast majority of cases, you will be maintaining your library using some +sort of version control system like git, svn, hg or fossil. In these cases, +Composer infers versions from your VCS, and you **should not** specify a version +in your `composer.json` file. (See the [Versions article](articles/versions.md) +to learn about how Composer uses VCS branches and tags to resolve version +constraints.) + +If you are maintaining packages by hand (i.e., without a VCS), you'll need to +specify the version explicitly by adding a `version` value in your `composer.json` +file: + +```json +{ + "version": "1.0.0" +} +``` + +> **Note:** When you add a hardcoded version to a VCS, the version will conflict +> with tag names. Composer will not be able to determine the version number. + +### VCS Versioning {#vcs-versioning} + +Composer uses your VCS's branch and tag features to resolve the version +constraints you specify in your [`require`](04-schema.md#require) field to specific sets of files. +When determining valid available versions, Composer looks at all of your tags +and branches and translates their names into an internal list of options that +it then matches against the version constraint you provided. + +For more on how Composer treats tags and branches and how it resolves package +version constraints, read the [versions](articles/versions.md) article. + +## Lock file {#lock-file} + +For your library it is **recommended to commit the `composer.lock` file**. This +helps your team to always test against the same dependency versions, and it +can help prevent supply chain attacks from propagating, as newly published +(possibly malicious) dependency versions are not pulled into your CI or +development environment until you explicitly update. + +This protection only covers working on the library itself. The lock file has no +effect on projects that depend on your library, they install whatever versions +your constraints allow. You can therefore exclude it from dist archives using +`export-ignore`, see [Light-weight distribution packages](#light-weight-distribution-packages). + +As your users will not get the locked versions, keep the lock file up to date +and also run CI jobs with `composer update` (and `composer update --prefer-lowest`) +to catch breakage from new releases or too low lower bounds. As these jobs install +unlocked versions, consider configuring a [cooldown](06-config.md#cooldown), do not +give them access to secrets or write permissions (e.g. to your repository), and do +not run `composer update` in any build or release steps. + +## Publishing to a VCS {#publishing-to-a-vcs} + +Once you have a VCS repository (version control system, e.g. git) containing a +`composer.json` file, your library is already composer-installable. In this +example we will publish the `acme/hello-world` library on GitHub under +`github.com/username/hello-world`. + +Now, to test installing the `acme/hello-world` package, we create a new +project locally. We will call it `acme/blog`. This blog will depend on +`acme/hello-world`, which in turn depends on `monolog/monolog`. We can +accomplish this by creating a new `blog` directory somewhere, containing a +`composer.json`: + +```json +{ + "name": "acme/blog", + "require": { + "acme/hello-world": "dev-master" + } +} +``` + +The name is not needed in this case, since we don't want to publish the blog +as a library. It is added here to clarify which `composer.json` is being +described. + +Now we need to tell the blog app where to find the `hello-world` dependency. +We do this by adding a package repository specification to the blog's +`composer.json`: + +```json +{ + "name": "acme/blog", + "repositories": [ + { + "type": "vcs", + "url": "https://github.com/username/hello-world" + } + ], + "require": { + "acme/hello-world": "dev-master" + } +} +``` + +For more details on how package repositories work and what other types are +available, see [Repositories](05-repositories.md). + +That's all. You can now install the dependencies by running Composer's +[`install`](03-cli.md#install--i) command! + +**Recap:** Any git/svn/hg/fossil repository containing a `composer.json` can be +added to your project by specifying the package repository and declaring the +dependency in the [`require`](04-schema.md#require) field. + +## Publishing to packagist {#publishing-to-packagist} + +Alright, so now you can publish packages. But specifying the VCS repository +every time is cumbersome. You don't want to force all your users to do that. + +The other thing that you may have noticed is that we did not specify a package +repository for `monolog/monolog`. How did that work? The answer is Packagist. + +[Packagist](https://packagist.org/) is the main package repository for +Composer, and it is enabled by default. Anything that is published on +Packagist is available automatically through Composer. Since +[Monolog is on Packagist](https://packagist.org/packages/monolog/monolog), we +can depend on it without having to specify any additional repositories. + +If we wanted to share `hello-world` with the world, we would publish it on +Packagist as well. + +You visit [Packagist](https://packagist.org) and hit the "Submit" +button. This will prompt you to sign up if you haven't already, and then +allows you to submit the URL to your VCS repository, at which point Packagist +will start crawling it. Once it is done, your package will be available to +anyone! + +## Light-weight distribution packages {#light-weight-distribution-packages} + +Some useless information like the `.github` directory, or large examples, test +data, etc. should typically not be included in distributed packages. + +The `.gitattributes` file is a git specific file like `.gitignore` also living +at the root directory of your library. It overrides local and global +configuration (`.git/config` and `~/.gitconfig` respectively) when present and +tracked by git. + +Use `.gitattributes` to prevent unwanted files from bloating the zip +distribution packages. + +```text +// .gitattributes +/demo export-ignore +phpunit.xml.dist export-ignore +/.github/ export-ignore +/composer.lock export-ignore +``` + +Test it by inspecting the zip file generated manually: + +```shell +git archive branchName --format zip -o file.zip +``` + +> **Note:** Files would be still tracked by git just not included in the +> zip distribution. This only works for packages installed from +> dist (i.e. tagged releases) coming from GitHub, GitLab or Bitbucket. + +## Security advisories {#security-advisories} + +When a vulnerability exists in a library you manage, you can fix the vulnerability +and publish a new release. Users watching your repository may see the release, but +most will not know they need to update to fix the underlying vulnerability. + +### How users get notified about advisories {#how-users-get-notified-about-advisories} + +Composer retrieves security advisories for all dependencies from the configured +repositories, which for most packages means the +[packagist.org API](https://packagist.org/apidoc#list-security-advisories). This +happens when users run `composer audit`, but also during `composer update`, +`require` and `remove`, which by default refuse to install versions affected by +an advisory (see the [policy](06-config.md#policy) config). + +Packagist aggregates security advisories from multiple sources: + +- [GitHub Security Advisories](#creating-and-publishing-an-advisory-on-github) +- [FriendsOfPHP Security Advisories](#registering-an-advisory-with-friendsofphp) + +It doesn't retrieve published advisories from your repository itself. + +### Creating and publishing an advisory on GitHub {#creating-and-publishing-an-advisory-on-github} + +If you are using GitHub to host the code for your library, you can +[create a security advisory](https://docs.github.com/en/code-security/security-advisories/working-with-repository-security-advisories/creating-a-repository-security-advisory) +from the repository's security tab. + +This will result in a unique url and GHSA-ID that can be used to reference +this advisory. Please note it does NOT mean that users of your library will +immediately get notified. + +### How GitHub Security Advisories are picked up {#how-github-security-advisories-are-picked-up} + +Once you have [created and published](#creating-and-publishing-an-advisory-on-github) +a security advisory on GitHub, it MIGHT automatically show up in the +[GitHub advisory database](https://github.com/github/advisory-database). According +to documentation, "GitHub will review each published security advisory", and mentions +[this might take up to 72 hours](https://docs.github.com/en/code-security/concepts/vulnerability-reporting-and-management/repository-security-advisories#dependabot-alerts-for-published-security-advisories), +but in practice this may take significantly longer given that these reports are +reviewed manually. + +The `github/advisory-database` repository also includes advisories from the +`friendsofphp/security-advisories` repository. As such, it is recommended to also add +your advisory to that repository to make sure it is visible to users as soon as +possible. + +### Registering an advisory with FriendsOfPHP {#registering-an-advisory-with-friendsofphp} + +To add an advisory to the `friendsofphp/security-advisories` +[repository](https://github.com/FriendsOfPHP/security-advisories), +open a Pull Request using the guide in their README. Once this Pull Request is +merged, packagist.org syncs the new advisory shortly after. + +This will also eventually result in the advisory ending up in the +`github/advisory-database` repository if it's not in there already. + +### Verifying advisory discoverability on packagist.org {#verifying-advisory-discoverability-on-packagistorg} + +You can see if a security advisory is already known to Packagist.org by searching for +the PKSA, CVE or GHSA IDs in the +[Security Advisories search](https://packagist.org/security-advisories/). + +### Why is GitHub's Dependabot not notifying users of my library's advisory? {#why-is-githubs-dependabot-not-notifying-users-of-my-librarys-advisory} + +Dependabot currently only uses the `github/advisory-database` repository as a +source of advisories. If your published advisory is not in there, it won't trigger +dependabot. To resolve this, publish your advisory to the +[`friendsofphp/security-advisories`](#registering-an-advisory-with-friendsofphp) +repository. That will at least ensure that Composer warns, and will also immediately +be picked up by other alerting services like [Private Packagist](https://packagist.com). + +← [Basic usage](01-basic-usage.md) | [Command-line interface](03-cli.md) → diff --git a/src/03-cli.md b/src/03-cli.md new file mode 100644 index 0000000..4b7bfa0 --- /dev/null +++ b/src/03-cli.md @@ -0,0 +1,1632 @@ +# Command-line interface / Commands {#command-line-interface--commands} + +You've already learned how to use the command-line interface to do some +things. This chapter documents all the available commands. + +To get help from the command-line, call `composer` or `composer list` +to see the complete list of commands, then `--help` combined with any of those +can give you more information. + +As Composer uses [symfony/console](https://github.com/symfony/console) you can call commands by short name if it's not ambiguous. +```shell +php composer.phar dump +``` +calls `composer dump-autoload`. + +## Bash Completions {#bash-completions} + +To install bash completions you can run `composer completion bash > completion.bash`. +This will create a `completion.bash` file in the current directory. + +Then execute `source completion.bash` to enable it in the current terminal session. + +Move and rename the `completion.bash` file to `/etc/bash_completion.d/composer` to make +it load automatically in new terminals. + +## Global Options {#global-options} + +The following options are available with every command: + +* **--verbose (-v):** Increase verbosity of messages. +* **--help (-h):** Display help information. +* **--quiet (-q):** Do not output any message. +* **--no-interaction (-n):** Do not ask any interactive question. +* **--no-plugins:** Disables plugins. +* **--no-scripts:** Skips execution of scripts defined in `composer.json`. +* **--no-cache:** Disables the use of the cache directory. Same as setting the COMPOSER_CACHE_DIR + env var to /dev/null (or NUL on Windows). +* **--working-dir (-d):** If specified, use the given directory as working directory. +* **--profile:** Display timing and memory usage information +* **--ansi:** Force ANSI output. +* **--no-ansi:** Disable ANSI output. +* **--version (-V):** Display this application version. + +## Process Exit Codes {#process-exit-codes} + +* **0:** OK +* **1:** Generic/unknown error code +* **2:** Dependency solving error code + +## init {#init} + +In the [Libraries](02-libraries.md) chapter we looked at how to create a +`composer.json` by hand. There is also an `init` command available to do this. + +When you run the command it will interactively ask you to fill in the fields, +while using some smart defaults. + +```shell +php composer.phar init +``` + +### Options {#options} + +* **--name:** Name of the package. +* **--description:** Description of the package. +* **--author:** Author name of the package. +* **--type:** Type of package. +* **--homepage:** Homepage of the package. +* **--require:** Package to require with a version constraint. Should be + in format `foo/bar:1.0.0`. +* **--require-dev:** Development requirements, see **--require**. +* **--stability (-s):** Value for the `minimum-stability` field. +* **--license (-l):** License of package. +* **--repository:** Provide one (or more) custom repositories. They will be stored + in the generated composer.json, and used for auto-completion when prompting for + the list of requires. Every repository can be either an HTTP URL pointing + to a `composer` repository or a JSON string which is similar to what the + [repositories](04-schema.md#repositories-root-only) key accepts. +* **--autoload (-a):** Add a PSR-4 autoload mapping to the composer.json. Automatically maps your package's namespace to the provided directory. (Expects a relative path, e.g. src/) See also [PSR-4 autoload](04-schema.md#psr-4). + +## install / i {#install--i} + +The `install` command reads the `composer.json` file from the current +directory, resolves the dependencies, and installs them into `vendor`. + +```shell +php composer.phar install +``` + +If there is a `composer.lock` file in the current directory, it will use the +exact versions from there instead of resolving them. This ensures that +everyone using the library will get the same versions of the dependencies. + +If there is no `composer.lock` file, Composer will create one after dependency +resolution. + +### Options {#options-1} + +* **--prefer-install:** There are two ways of downloading a package: `source` + and `dist`. Composer uses `dist` by default. If you pass + `--prefer-install=source` (or `--prefer-source`) Composer will install from + `source` if there is one. This is useful if you want to make a bugfix to a + project and get a local git clone of the dependency directly. + To get the legacy behavior where Composer use `source` automatically for dev + versions of packages, use `--prefer-install=auto`. See also [config.preferred-install](06-config.md#preferred-install). + Passing this flag will override the config value. +* **--dry-run:** If you want to run through an installation without actually + installing a package, you can use `--dry-run`. This will simulate the + installation and show you what would happen. +* **--download-only:** Download only, do not install packages. +* **--dev:** Install packages listed in `require-dev` (this is the default behavior). +* **--no-dev:** Skip installing packages listed in `require-dev`. The autoloader + generation skips the `autoload-dev` rules. Also see [COMPOSER_NO_DEV](#composer_no_dev). +* **--no-autoloader:** Skips autoloader generation. +* **--no-progress:** Removes the progress display that can mess with some + terminals or scripts which don't handle backspace characters. +* **--audit:** Run an audit after installation is complete. +* **--audit-format:** Audit output format. Must be "table", "plain", "json", or "summary" (default). +* **--no-security-blocking:** DEPRECATED, use `--no-blocking` instead. Allows installing packages with security advisories, that are abandoned or that are still in the cooldown period. Also see [COMPOSER_NO_SECURITY_BLOCKING](#composer_no_security_blocking). +* **--no-blocking:** Disables all policy based dependency blocking during this command, including the cooldown period. Also see [COMPOSER_NO_BLOCKING](#composer_no_blocking). +* **--optimize-autoloader (-o):** Convert PSR-0/4 autoloading to classmap to get a faster + autoloader. This is recommended especially for production, but can take + a bit of time to run so it is currently not done by default. +* **--classmap-authoritative (-a):** Autoload classes from the classmap only. + Implicitly enables `--optimize-autoloader`. +* **--strict-psr-autoloader:** Return a failed exit code (6) if PSR-4 or PSR-0 mapping errors + are present in the current project (dependencies excluded). Requires `--optimize-autoloader` or `--classmap-authoritative` to work. +* **--apcu-autoloader:** Use APCu to cache found/not-found classes. +* **--apcu-autoloader-prefix:** Use a custom prefix for the APCu autoloader cache. + Implicitly enables `--apcu-autoloader`. +* **--ignore-platform-reqs:** ignore all platform requirements (`php`, `hhvm`, + `lib-*` and `ext-*`) and force the installation even if the local machine does + not fulfill these. + See also the [`platform`](06-config.md#platform) config option. +* **--ignore-platform-req:** ignore a specific platform requirement(`php`, + `hhvm`, `lib-*` and `ext-*`) and force the installation even if the local machine + does not fulfill it. Multiple requirements can be ignored via wildcard. Appending + a `+` makes it only ignore the upper-bound of the requirements. For example, if a package + requires `php: ^7`, then the option `--ignore-platform-req=php+` would allow installing on PHP 8, + but installation on PHP 5.6 would still fail. + +## update / u / upgrade {#update--u--upgrade} + +In order to get the latest versions of the dependencies and to update the +`composer.lock` file, you should use the `update` command. This command is also +aliased as `upgrade` as it does the same as `upgrade` does if you are thinking +of `apt-get` or similar package managers. + +```shell +php composer.phar update +``` + +This will resolve all dependencies of the project and write the exact versions +into `composer.lock`. + +If you only want to update a few packages and not all, you can list them as such: + +```shell +php composer.phar update vendor/package vendor/package2 +``` + +You can also use wildcards to update a bunch of packages at once: + +```shell +php composer.phar update "vendor/*" +``` + + +If you want to downgrade a package to a specific version without changing your +composer.json you can use `--with` and provide a custom version constraint: + +```shell +php composer.phar update --with vendor/package:2.0.1 +``` + +Note that with the above all packages will be updated. If you only want to +update the package(s) for which you provide custom constraints using `--with`, +you can skip `--with` and instead use constraints with the partial update syntax: + +```shell +php composer.phar update vendor/package:2.0.1 vendor/package2:3.0.* +``` + +> **Note:** For packages also required in your composer.json the custom constraint +> must be a subset of the existing constraint. The composer.json constraints still +> apply and the composer.json is not modified by these temporary update constraints. + + +### Options {#options-2} + +* **--prefer-install:** There are two ways of downloading a package: `source` + and `dist`. Composer uses `dist` by default. If you pass + `--prefer-install=source` (or `--prefer-source`) Composer will install from + `source` if there is one. This is useful if you want to make a bugfix to a + project and get a local git clone of the dependency directly. + To get the legacy behavior where Composer use `source` automatically for dev + versions of packages, use `--prefer-install=auto`. See also [config.preferred-install](06-config.md#preferred-install). + Passing this flag will override the config value. +* **--dry-run:** Simulate the command without actually doing anything. +* **--dev:** Install packages listed in `require-dev` (this is the default behavior). +* **--no-dev:** Skip installing packages listed in `require-dev`. The autoloader generation skips the `autoload-dev` rules. Also see [COMPOSER_NO_DEV](#composer_no_dev). +* **--no-install:** Does not run the install step after updating the composer.lock file. +* **--no-audit:** Does not run the audit steps after updating the composer.lock file. Also see [COMPOSER_NO_AUDIT](#composer_no_audit). +* **--audit-format:** Audit output format. Must be "table", "plain", "json", or "summary" (default). +* **--no-security-blocking:** DEPRECATED, use `--no-blocking` instead. Allows installing packages with security advisories, that are abandoned or that are still in the cooldown period. Also see [COMPOSER_NO_SECURITY_BLOCKING](#composer_no_security_blocking). +* **--no-blocking:** Disables all policy based dependency blocking during this command, including the cooldown period. Also see [COMPOSER_NO_BLOCKING](#composer_no_blocking). +* **--no-cooldown:** Disables the [cooldown policy](06-config.md#cooldown) blocking during this command, other policies still apply. +* **--lock:** Overwrites the lock file hash to suppress warning about the lock file being out of + date without updating package versions. Package metadata like mirrors and URLs are updated if + they changed. +* **--with:** Temporary version constraint to add, e.g. foo/bar:1.0.0 or foo/bar=1.0.0 +* **--no-autoloader:** Skips autoloader generation. +* **--no-progress:** Removes the progress display that can mess with some + terminals or scripts which don't handle backspace characters. +* **--with-dependencies (-w):** Update also dependencies of packages in the argument list, except those which are root requirements. Can also be set via the COMPOSER_WITH_DEPENDENCIES=1 env var. +* **--with-all-dependencies (-W):** Update also dependencies of packages in the argument list, including those which are root requirements. Can also be set via the COMPOSER_WITH_ALL_DEPENDENCIES=1 env var. +* **--optimize-autoloader (-o):** Convert PSR-0/4 autoloading to classmap to get a faster + autoloader. This is recommended especially for production, but can take + a bit of time to run, so it is currently not done by default. +* **--classmap-authoritative (-a):** Autoload classes from the classmap only. + Implicitly enables `--optimize-autoloader`. +* **--strict-psr-autoloader:** Return a failed exit code (6) if PSR-4 or PSR-0 mapping errors + are present in the current project (dependencies excluded). Requires `--optimize-autoloader` or `--classmap-authoritative` to work. +* **--apcu-autoloader:** Use APCu to cache found/not-found classes. +* **--apcu-autoloader-prefix:** Use a custom prefix for the APCu autoloader cache. + Implicitly enables `--apcu-autoloader`. +* **--ignore-platform-reqs:** ignore all platform requirements (`php`, `hhvm`, + `lib-*` and `ext-*`) and force the installation even if the local machine does + not fulfill these. + See also the [`platform`](06-config.md#platform) config option. +* **--ignore-platform-req:** ignore a specific platform requirement(`php`, + `hhvm`, `lib-*` and `ext-*`) and force the installation even if the local machine + does not fulfill it. Multiple requirements can be ignored via wildcard. Appending + a `+` makes it only ignore the upper-bound of the requirements. For example, if a package + requires `php: ^7`, then the option `--ignore-platform-req=php+` would allow installing on PHP 8, + but installation on PHP 5.6 would still fail. +* **--prefer-stable:** Prefer stable versions of dependencies. Can also be set via the + COMPOSER_PREFER_STABLE=1 env var. +* **--prefer-lowest:** Prefer lowest versions of dependencies. Useful for testing minimal + versions of requirements, generally used with `--prefer-stable`. Can also be set via the + COMPOSER_PREFER_LOWEST=1 env var. +* **--minimal-changes (-m):** Only perform absolutely necessary changes to dependencies. + If packages cannot be kept at their currently locked version they are updated. For partial + updates the allow-listed packages are always updated fully. Can also be set via + the COMPOSER_MINIMAL_CHANGES=1 env var. +* **--patch-only:** Only allow patch version updates for currently installed dependencies. +* **--interactive:** Interactive interface with autocompletion to select the packages to update. +* **--root-reqs:** Restricts the update to your first degree dependencies. +* **--bump-after-update:** Runs `bump` after performing the update. Set to `dev` or `no-dev` to only bump those dependencies. + +Specifying one of the words `mirrors`, `lock`, or `nothing` as an argument has the same effect as specifying the option `--lock`, for example `composer update mirrors` is exactly the same as `composer update --lock`. + +## require / r {#require--r} + +The `require` command adds new packages to the `composer.json` file from +the current directory. If no file exists one will be created on the fly. + +If you do not specify a package, Composer will prompt you to search for a package, and given +results, provide a list of matches to require. + +```shell +php composer.phar require +``` + +After adding/changing the requirements, the modified requirements will be +installed or updated. + +If you do not want to choose requirements interactively, you can pass them +to the command. + +```shell +php composer.phar require "vendor/package:2.*" vendor/package2:dev-master +``` + +If you do not specify a version constraint, composer will choose a suitable one based +on the available package versions. + +```shell +php composer.phar require vendor/package vendor/package2 +``` + +If you do not want to install the new dependencies immediately you can call it with --no-update + +### Options {#options-3} + +* **--dev:** Add packages to `require-dev`. +* **--dry-run:** Simulate the command without actually doing anything. +* **--prefer-install:** There are two ways of downloading a package: `source` + and `dist`. Composer uses `dist` by default. If you pass + `--prefer-install=source` (or `--prefer-source`) Composer will install from + `source` if there is one. This is useful if you want to make a bugfix to a + project and get a local git clone of the dependency directly. + To get the legacy behavior where Composer use `source` automatically for dev + versions of packages, use `--prefer-install=auto`. See also [config.preferred-install](06-config.md#preferred-install). + Passing this flag will override the config value. +* **--no-progress:** Removes the progress display that can mess with some + terminals or scripts which don't handle backspace characters. +* **--no-update:** Disables the automatic update of the dependencies (implies --no-install). +* **--no-install:** Does not run the install step after updating the composer.lock file. +* **--no-audit:** Does not run the audit steps after updating the composer.lock file. Also see [COMPOSER_NO_AUDIT](#composer_no_audit). +* **--audit-format:** Audit output format. Must be "table", "plain", "json", or "summary" (default). +* **--no-security-blocking:** DEPRECATED, use `--no-blocking` instead. Allows installing packages with security advisories, that are abandoned or that are still in the cooldown period. Also see [COMPOSER_NO_SECURITY_BLOCKING](#composer_no_security_blocking). +* **--no-blocking:** Disables all policy blocking during this command, including the cooldown period. Also see [COMPOSER_NO_BLOCKING](#composer_no_blocking). +* **--no-cooldown:** Disables the [cooldown policy](06-config.md#cooldown) blocking during this command, other policies still apply. +* **--update-no-dev:** Run the dependency update with the `--no-dev` option. Also see [COMPOSER_NO_DEV](#composer_no_dev). +* **--update-with-dependencies (-w):** Also update dependencies of the newly required packages, except those that are root requirements. Can also be set via the COMPOSER_WITH_DEPENDENCIES=1 env var. +* **--update-with-all-dependencies (-W):** Also update dependencies of the newly required packages, including those that are root requirements. Can also be set via the COMPOSER_WITH_ALL_DEPENDENCIES=1 env var. +* **--ignore-platform-reqs:** ignore all platform requirements (`php`, `hhvm`, + `lib-*` and `ext-*`) and force the installation even if the local machine does + not fulfill these. + See also the [`platform`](06-config.md#platform) config option. +* **--ignore-platform-req:** ignore a specific platform requirement(`php`, + `hhvm`, `lib-*` and `ext-*`) and force the installation even if the local machine + does not fulfill it. Multiple requirements can be ignored via wildcard. +* **--prefer-stable:** Prefer stable versions of dependencies. Can also be set via the + COMPOSER_PREFER_STABLE=1 env var. +* **--prefer-lowest:** Prefer lowest versions of dependencies. Useful for testing minimal + versions of requirements, generally used with `--prefer-stable`. Can also be set via the + COMPOSER_PREFER_LOWEST=1 env var. +* **--minimal-changes (-m):** During an update with `-w`/`-W`, only perform absolutely necessary + changes to transitive dependencies. Can also be set via the COMPOSER_MINIMAL_CHANGES=1 env var. +* **--sort-packages:** Keep packages sorted in `composer.json`. +* **--fixed:** When no version constraint is given, write the exact version + that was picked to `composer.json` instead of the recommended constraint. + Only allowed when the root package's type is `project`, or together with `--dev`. +* **--optimize-autoloader (-o):** Convert PSR-0/4 autoloading to classmap to + get a faster autoloader. This is recommended especially for production, but + can take a bit of time to run, so it is currently not done by default. +* **--classmap-authoritative (-a):** Autoload classes from the classmap only. + Implicitly enables `--optimize-autoloader`. +* **--apcu-autoloader:** Use APCu to cache found/not-found classes. +* **--apcu-autoloader-prefix:** Use a custom prefix for the APCu autoloader cache. + Implicitly enables `--apcu-autoloader`. + +## remove / rm / uninstall {#remove--rm--uninstall} + +The `remove` command removes packages from the `composer.json` file from +the current directory. + +```shell +php composer.phar remove vendor/package vendor/package2 +``` + +After removing the requirements, the modified requirements will be +uninstalled. + +### Options {#options-4} + +* **--unused:** Remove unused packages that are not a direct or indirect dependency (anymore). +* **--dev:** Remove packages from `require-dev`. +* **--dry-run:** Simulate the command without actually doing anything. +* **--no-progress:** Removes the progress display that can mess with some + terminals or scripts which don't handle backspace characters. +* **--no-update:** Disables the automatic update of the dependencies (implies --no-install). +* **--no-install:** Does not run the install step after updating the composer.lock file. +* **--no-audit:** Does not run the audit steps after installation is complete. Also see [COMPOSER_NO_AUDIT](#composer_no_audit). +* **--audit-format:** Audit output format. Must be "table", "plain", "json", or "summary" (default). +* **--no-security-blocking:** DEPRECATED, use `--no-blocking` instead. Allows installing packages with security advisories, that are abandoned or that are still in the cooldown period. Also see [COMPOSER_NO_SECURITY_BLOCKING](#composer_no_security_blocking). +* **--no-blocking:** Disables all policy based dependency blocking during this command, including the cooldown period. Also see [COMPOSER_NO_BLOCKING](#composer_no_blocking). +* **--no-cooldown:** Disables the [cooldown policy](06-config.md#cooldown) blocking during this command, other policies still apply. +* **--update-no-dev:** Run the dependency update with the --no-dev option. Also see [COMPOSER_NO_DEV](#composer_no_dev). +* **--update-with-dependencies (-w):** Also update dependencies of the removed packages. Can also be set via the COMPOSER_WITH_DEPENDENCIES=1 env var. + (Deprecated, is now default behavior) +* **--update-with-all-dependencies (-W):** Allows all inherited dependencies to be updated, + including those that are root requirements. Can also be set via the COMPOSER_WITH_ALL_DEPENDENCIES=1 env var. +* **--minimal-changes (-m):** During an update with `-w`/`-W`, only perform absolutely necessary + changes to transitive dependencies. Can also be set via the COMPOSER_MINIMAL_CHANGES=1 env var. +* **--ignore-platform-reqs:** ignore all platform requirements (`php`, `hhvm`, + `lib-*` and `ext-*`) and force the installation even if the local machine does + not fulfill these. + See also the [`platform`](06-config.md#platform) config option. +* **--ignore-platform-req:** ignore a specific platform requirement(`php`, + `hhvm`, `lib-*` and `ext-*`) and force the installation even if the local machine + does not fulfill it. Multiple requirements can be ignored via wildcard. +* **--optimize-autoloader (-o):** Convert PSR-0/4 autoloading to classmap to + get a faster autoloader. This is recommended especially for production, but + can take a bit of time to run so it is currently not done by default. +* **--classmap-authoritative (-a):** Autoload classes from the classmap only. + Implicitly enables `--optimize-autoloader`. +* **--apcu-autoloader:** Use APCu to cache found/not-found classes. +* **--apcu-autoloader-prefix:** Use a custom prefix for the APCu autoloader cache. + Implicitly enables `--apcu-autoloader`. + +## bump {#bump} + +The `bump` command increases the lower limit of your composer.json requirements +to the currently installed versions. This helps to ensure your dependencies do not +accidentally get downgraded due to some other conflict, and can slightly improve +dependency resolution performance as it limits the amount of package versions +Composer has to look at. + +Running this blindly on libraries is **NOT** recommended as it will narrow down +your allowed dependencies, which may cause dependency hell for your users. +Running it with `--dev-only` on libraries may be fine however as dev requirements +are local to the library and do not affect consumers of the package. + +### Options {#options-5} + +* **--dev-only:** Only bump requirements in "require-dev". +* **--no-dev-only:** Only bump requirements in "require". +* **--dry-run:** Outputs the packages to bump, but will not execute anything. + +## reinstall {#reinstall} + +The `reinstall` command looks up installed packages by name (or by type +with `--type`), uninstalls them and reinstalls them. This lets you do a clean install +of a package if you messed with its files, or if you wish to change +the installation type using --prefer-install. + +```shell +php composer.phar reinstall acme/foo acme/bar +``` + +You can specify more than one package name to reinstall, or use a +wildcard to select several packages at once: + +```shell +php composer.phar reinstall "acme/*" +``` + +To reinstall every installed package of a given type, use `--type` instead: + +```shell +php composer.phar reinstall --type=composer-plugin +``` + +### Options {#options-6} + +* **--type:** Reinstall all installed packages of the given type, e.g. + `--type=library`. The type must match exactly, wildcards are not supported. + Can be passed more than once. It can't be combined with package names. +* **--prefer-install:** There are two ways of downloading a package: `source` + and `dist`. Composer uses `dist` by default. If you pass + `--prefer-install=source` (or `--prefer-source`) Composer will install from + `source` if there is one. This is useful if you want to make a bugfix to a + project and get a local git clone of the dependency directly. + To get the legacy behavior where Composer use `source` automatically for dev + versions of packages, use `--prefer-install=auto`. See also [config.preferred-install](06-config.md#preferred-install). + Passing this flag will override the config value. +* **--no-autoloader:** Skips autoloader generation. +* **--no-progress:** Removes the progress display that can mess with some + terminals or scripts which don't handle backspace characters. +* **--optimize-autoloader (-o):** Convert PSR-0/4 autoloading to classmap to get a faster + autoloader. This is recommended especially for production, but can take + a bit of time to run so it is currently not done by default. +* **--classmap-authoritative (-a):** Autoload classes from the classmap only. + Implicitly enables `--optimize-autoloader`. +* **--apcu-autoloader:** Use APCu to cache found/not-found classes. +* **--apcu-autoloader-prefix:** Use a custom prefix for the APCu autoloader cache. + Implicitly enables `--apcu-autoloader`. +* **--ignore-platform-reqs:** ignore all platform requirements. This only + has an effect in the context of the autoloader generation for the + reinstall command. +* **--ignore-platform-req:** ignore a specific platform requirement. This only + has an effect in the context of the autoloader generation for the + reinstall command. Multiple requirements can be ignored via wildcard. + +## check-platform-reqs {#check-platform-reqs} + +The check-platform-reqs command checks that your PHP and extensions versions +match the platform requirements of the installed packages. This can be used +to verify that a production server has all the extensions needed to run a +project after installing it for example. + +Unlike update/install, this command will ignore config.platform settings and +check the real platform packages so you can be certain you have the required +platform dependencies. + +### Options {#options-7} + +* **--lock:** Checks requirements only from the lock file, not from installed packages. +* **--no-dev:** Disables checking of require-dev packages requirements. +* **--format (-f):** Format of the output: text (default) or json + +## global {#global} + +The global command allows you to run other commands like `install`, `remove`, `require` +or `update` as if you were running them from the [COMPOSER_HOME](#composer_home) +directory. + +This is merely a helper to manage a project stored in a central location that +can hold CLI tools or Composer plugins that you want to have available everywhere. + +This can be used to install CLI utilities globally. Here is an example: + +```shell +php composer.phar global require friendsofphp/php-cs-fixer +``` + +Now the `php-cs-fixer` binary is available globally. Make sure your global +[vendor binaries](articles/vendor-binaries.md) directory is in your `$PATH` +environment variable, you can get its location with the following command : + +```shell +php composer.phar global config bin-dir --absolute +``` + +If you wish to update the binary later on you can run a global update: + +```shell +php composer.phar global update +``` + +## search {#search} + +The search command allows you to search through the current project's package +repositories. Usually this will be packagist. You pass it the terms you want +to search for. + +```shell +php composer.phar search monolog +``` + +You can also search for more than one term by passing multiple arguments. + +### Options {#options-8} + +* **--only-name (-N):** Search only in package names. +* **--only-vendor (-O):** Search only for vendor / organization names, returns only "vendor" + as a result. +* **--type (-t):** Search for a specific package type. +* **--format (-f):** Lets you pick between text (default) or json output format. + Note that in the json, only the name and description keys are guaranteed to be + present. The rest (`url`, `repository`, `downloads` and `favers`) are available + for Packagist.org search results and other repositories may return more or less + data. + +## show / info {#show--info} + +To list all of the available packages, you can use the `show` command. + +```shell +php composer.phar show +``` + +To filter the list you can pass a package mask using wildcards. + +```shell +php composer.phar show "monolog/*" +``` +```text +monolog/monolog 2.4.0 Sends your logs to files, sockets, inboxes, databases and various web services +``` + +If you want to see the details of a certain package, you can pass the package +name. + +```shell +php composer.phar show monolog/monolog +``` +```text +name : monolog/monolog +descrip. : Sends your logs to files, sockets, inboxes, databases and various web services +keywords : log, logging, psr-3 +versions : * 1.27.1 +type : library +license : MIT License (MIT) (OSI approved) https://spdx.org/licenses/MIT.html#licenseText +homepage : http://github.com/Seldaek/monolog +source : [git] https://github.com/Seldaek/monolog.git 904713c5929655dc9b97288b69cfeedad610c9a1 +dist : [zip] https://api.github.com/repos/Seldaek/monolog/zipball/904713c5929655dc9b97288b69cfeedad610c9a1 904713c5929655dc9b97288b69cfeedad610c9a1 +names : monolog/monolog, psr/log-implementation + +support +issues : https://github.com/Seldaek/monolog/issues +source : https://github.com/Seldaek/monolog/tree/1.27.1 + +autoload +psr-4 +Monolog\ => src/Monolog + +requires +php >=5.3.0 +psr/log ~1.0 +``` + +You can even pass the package version, which will tell you the details of that +specific version. + +```shell +php composer.phar show monolog/monolog 1.0.2 +``` + +### Options {#options-9} + +* **--all:** List all packages available in all your repositories. +* **--installed (-i):** List the packages that are installed (this is enabled by default, and deprecated). +* **--locked:** List the locked packages from composer.lock. +* **--platform (-p):** List only platform packages (php & extensions). +* **--available (-a):** List available packages only. +* **--self (-s):** List the root package info. +* **--name-only (-N):** List package names only. +* **--path (-P):** List package paths. +* **--tree (-t):** List your dependencies as a tree. If you pass a package name it will show the dependency tree for that package. +* **--latest (-l):** List all installed packages including their latest version. +* **--outdated (-o):** Implies --latest, but this lists *only* packages that have a newer version available. +* **--ignore:** Ignore specified package(s). Can contain wildcards (`*`). Use it with the --outdated option if you don't want to be informed about new versions of some packages +* **--no-dev:** Filters dev dependencies from the package list. +* **--major-only (-M):** Use with --latest or --outdated. Only shows packages that have major SemVer-compatible updates. +* **--minor-only (-m):** Use with --latest or --outdated. Only shows packages that have minor SemVer-compatible updates. +* **--patch-only:** Use with --latest or --outdated. Only shows packages that have patch-level SemVer-compatible updates. +* **--sort-by-age (-A):** Displays the installed version's age, and sorts packages oldest first. Use with the --latest or --outdated option. +* **--cooldown-period:** Overrides the configured [policy.cooldown.period](06-config.md#period) while looking up latest versions, even when the policy is disabled or not blocking; `0` disables it for this run. Use with the --latest or --outdated option. +* **--direct (-D):** Restricts the list of packages to your direct dependencies. +* **--strict:** Return a non-zero exit code when there are outdated packages. +* **--format (-f):** Lets you pick between text (default) or json output format. +* **--ignore-platform-reqs:** ignore all platform requirements (`php`, `hhvm`, + `lib-*` and `ext-*`) and force the installation even if the local machine does + not fulfill these. Use with the --outdated option. +* **--ignore-platform-req:** ignore a specific platform requirement(`php`, + `hhvm`, `lib-*` and `ext-*`) and force the installation even if the local machine + does not fulfill it. Multiple requirements can be ignored via wildcard. Use with + the --outdated option. + +## outdated {#outdated} + +The `outdated` command shows a list of installed packages that have updates available, +including their current and latest versions. This is basically an alias for +`composer show -lo`. + +The color coding is as such: + +- **green (=)**: Dependency is in the latest version and is up to date. +- **yellow (`~`)**: Dependency has a new version available that includes backwards compatibility breaks according to semver, so upgrade when + you can but it may involve work. +- **red (!)**: Dependency has a new version that is semver-compatible and you should upgrade it. +- **uncolored (c)**: Dependency has a newer version that is still in the [cooldown period](06-config.md#cooldown) + and cannot be installed yet; the time left is shown next to it. Such packages are listed, but do not + count as outdated for `--strict`. + +When a cooldown period is configured, the latest version shown is the newest one the cooldown policy +allows installing, so the output matches what `composer update` would do. A newer release still in +the cooldown period is shown next to it with the time left, or in its place once you are on the newest +installable version. When several are waiting, the one that becomes installable first is shown. + +A dependency whose versions all have platform requirements your platform cannot satisfy is considered +up to date, as there is nothing it can be updated to. A dependency that is not found in any repository +is shown as `[none matched]` and counts as outdated for `--strict`. + +### Options {#options-10} + +* **--all (-a):** Show all packages, not just outdated (alias for `composer show --latest`). +* **--direct (-D):** Restricts the list of packages to your direct dependencies. +* **--strict:** Returns non-zero exit code if any package is outdated. +* **--ignore:** Ignore specified package(s). Can contain wildcards (`*`). Use it if you don't want to be informed about new versions of some packages +* **--major-only (-M):** Only shows packages that have major SemVer-compatible updates. +* **--minor-only (-m):** Only shows packages that have minor SemVer-compatible updates. +* **--patch-only (-p):** Only shows packages that have patch-level SemVer-compatible updates. +* **--sort-by-age (-A):** Displays the installed version's age, and sorts packages oldest first. +* **--cooldown-period:** Overrides the configured [policy.cooldown.period](06-config.md#period), even when the policy is disabled or not blocking; `0` shows the newest releases regardless of the cooldown policy. +* **--format (-f):** Lets you pick between text (default) or json output format. +* **--no-dev:** Do not show outdated dev dependencies. +* **--locked:** Shows updates for packages from the lock file, regardless of what is currently in vendor dir. +* **--ignore-platform-reqs:** ignore all platform requirements (`php`, `hhvm`, + `lib-*` and `ext-*`) and force the installation even if the local machine does + not fulfill these. +* **--ignore-platform-req:** ignore a specific platform requirement(`php`, + `hhvm`, `lib-*` and `ext-*`) and force the installation even if the local machine + does not fulfill it. Multiple requirements can be ignored via wildcard. + +## browse / home {#browse--home} + +The `browse` (aliased to `home`) opens a package's repository URL or homepage +in your browser. + +### Options {#options-11} + +* **--homepage (-H):** Open the homepage instead of the repository URL. +* **--show (-s):** Only show the homepage or repository URL. + +## suggests {#suggests} + +Lists all packages suggested by the currently installed set of packages. You can +optionally pass one or multiple package names in the format of `vendor/package` +to limit output to suggestions made by those packages only. + +Use the `--by-package` (default) or `--by-suggestion` flags to group the output by +the package offering the suggestions or the suggested packages respectively. + +If you only want a list of suggested package names, use `--list`. + +### Options {#options-12} + +* **--by-package:** Groups output by suggesting package (default). +* **--by-suggestion:** Groups output by suggested package. +* **--all:** Show suggestions from all dependencies, including transitive ones (by + default only direct dependencies' suggestions are shown). +* **--list:** Show only list of suggested package names. +* **--no-dev:** Excludes suggestions from `require-dev` packages. + +## fund {#fund} + +Discover how to help fund the maintenance of your dependencies. This lists +all funding links from the installed dependencies. Use `--format=json` to +get machine-readable output. + +### Options {#options-13} + +* **--format (-f):** Lets you pick between text (default) or json output format. + +## depends / why {#depends--why} + +The `depends` command tells you which other packages depend on a certain +package. As with installation `require-dev` relationships are only considered +for the root package. + +```shell +php composer.phar depends doctrine/lexer +``` +```text +doctrine/annotations 1.13.3 requires doctrine/lexer (1.*) +doctrine/common 2.13.3 requires doctrine/lexer (^1.0) +``` + +You can optionally specify a version constraint after the package to limit the +search. + +Add the `--tree` or `-t` flag to show a recursive tree of why the package is +depended upon, for example: + +```shell +php composer.phar depends psr/log -t +``` +```text +psr/log 1.1.4 Common interface for logging libraries +├──composer/composer 2.4.x-dev (requires psr/log ^1.0 || ^2.0 || ^3.0) +├──composer/composer dev-main (requires psr/log ^1.0 || ^2.0 || ^3.0) +├──composer/xdebug-handler 3.0.3 (requires psr/log ^1 || ^2 || ^3) +│ ├──composer/composer 2.4.x-dev (requires composer/xdebug-handler ^2.0.2 || ^3.0.3) +│ └──composer/composer dev-main (requires composer/xdebug-handler ^2.0.2 || ^3.0.3) +└──symfony/console v5.4.11 (conflicts psr/log >=3) (circular dependency aborted here) +``` + +### Options {#options-14} + +* **--recursive (-r):** Recursively resolves up to the root package. +* **--tree (-t):** Prints the results as a nested tree, implies -r. +* **--locked:** Read dependency information from `composer.lock` instead of + the installed packages. + +## prohibits / why-not {#prohibits--why-not} + +The `prohibits` command tells you which packages are blocking a given package +from being installed. Specify a version constraint to verify whether upgrades +can be performed in your project, and if not why not. See the following +example: + +```shell +php composer.phar prohibits symfony/symfony 3.1 +``` +```text +laravel/framework v5.2.16 requires symfony/var-dumper (2.8.*|3.0.*) +``` + +Note that you can also specify platform requirements, for example to check +whether you can upgrade your server to PHP 8.0: + +```shell +php composer.phar prohibits php 8 +``` +```text +doctrine/cache v1.6.0 requires php (~5.5|~7.0) +doctrine/common v2.6.1 requires php (~5.5|~7.0) +doctrine/instantiator 1.0.5 requires php (>=5.3,<8.0-DEV) +``` + +As with `depends` you can request a recursive lookup, which will list all +packages depending on the packages that cause the conflict. + +### Options {#options-15} + +* **--recursive (-r):** Recursively resolves up to the root package. +* **--tree (-t):** Prints the results as a nested tree, implies -r. +* **--locked:** Read dependency information from `composer.lock` instead of + the installed packages. + +## validate {#validate} + +You should always run the `validate` command before you commit your +`composer.json` and `composer.lock` files, and before you tag a release. + +It will check if your +`composer.json` is valid. If a `composer.lock` exists, it will also check if it is up to date with the `composer.json`. + +```shell +php composer.phar validate +``` + +### Options {#options-16} + +* **--no-check-all:** Do not emit a warning if requirements in `composer.json` use unbound or overly strict version constraints. +* **--no-check-lock:** Do not emit an error if `composer.lock` exists and is not up to date. +* **--check-lock** Check if lock file is up to date (even when [config.lock](06-config.md#lock) is false) +* **--no-check-publish:** Do not emit an error if `composer.json` is unsuitable for publishing as a package on Packagist but is otherwise valid. +* **--no-check-version:** Do not emit an error if the version field is present. +* **--with-dependencies:** Also validate the composer.json of all installed dependencies. +* **--strict:** Return a non-zero exit code for warnings as well as errors. + +## status {#status} + +If you often need to modify the code of your dependencies and they are +installed from source, the `status` command allows you to check if you have +local changes in any of them. + +```shell +php composer.phar status +``` + +With the `--verbose` option you get some more information about what was +changed: + +```shell +php composer.phar status -v +``` +```text +You have changes in the following dependencies: +vendor/seld/jsonlint: + M README.mdown +``` + +## self-update / selfupdate {#self-update--selfupdate} + +To update Composer itself to the latest version, run the `self-update` +command. It will replace your `composer.phar` with the latest version. + +```shell +php composer.phar self-update +``` + +If you would like to instead update to a specific release specify it: + +```shell +php composer.phar self-update 2.4.0-RC1 +``` + +If you have installed Composer for your entire system (see [global installation](00-intro.md#globally)), +you may have to run the command with `root` privileges + +```shell +sudo -H composer self-update +``` + +If Composer was not installed as a PHAR, this command is not available. +(This is sometimes the case when Composer was installed by an operating system package manager.) + +When updating, Composer warns you if the version you are on or updating to is end of life, or is an +older line nearing end of life that only receives critical security fixes, and points you to the +latest stable release. If a newer Composer version exists but requires a newer PHP version than the +one you are running, Composer tells you which PHP version you would need and that you are pinned to +an older release line. + +Backups created for `--rollback` are stored in the [`data-dir`](06-config.md#data-dir), +and the public keys used to verify downloads are stored in `COMPOSER_HOME`. Both +directories must be writable only by the user that owns the Composer installation and +should be treated as trusted: a directory writable by other users could be used to plant +a malicious `composer.phar` that a privileged `self-update --rollback` would then install. +When rolling back to a tagged release the backup is verified against the published +signature from getcomposer.org before being installed (the rollback aborts on a mismatch +or if the signature cannot be downloaded); snapshot/dev builds cannot be verified this way, +so a rollback to one asks for confirmation when run interactively. + +### Options {#options-17} + +* **--rollback (-r):** Rollback to the last version you had installed. +* **--clean-backups:** Delete old backups during an update. This makes the + current version of Composer the only backup available after the update. +* **--no-progress:** Do not output download progress. +* **--update-keys:** Prompt user for a key update. +* **--stable:** Force an update to the stable channel. +* **--preview:** Force an update to the preview channel. +* **--snapshot:** Force an update to the snapshot channel. +* **--1:** Force an update to the stable channel, but only use 1.x versions +* **--2:** Force an update to the stable channel, but only use 2.x versions +* **--set-channel-only:** Only store the channel as the default one and then exit + +## config {#config} + +The `config` command allows you to edit Composer config settings and repositories +in either the local `composer.json` file or the global `config.json` file. + +Additionally it lets you edit most properties in the local `composer.json`. + +```shell +php composer.phar config --list +``` + +### Usage {#usage} + +`config [options] [setting-key] [setting-value1] ... [setting-valueN]` + +`setting-key` is a configuration option name and `setting-value1` is a +configuration value. For settings that can take an array of values (like +`github-protocols`), multiple setting-value arguments are allowed. + +You can also edit the values of the following properties: + +`description`, `homepage`, `keywords`, `license`, `minimum-stability`, +`name`, `prefer-stable`, `type` and `version`. + +See the [Config](06-config.md) chapter for valid configuration options. + +### Options {#options-18} + +* **--global (-g):** Operate on the global config file located at + `$COMPOSER_HOME/config.json` by default. Without this option, this command + affects the local composer.json file or a file specified by `--file`. +* **--editor (-e):** Open the local composer.json file using in a text editor as + defined by the `EDITOR` env variable. With the `--global` option, this opens + the global config file. +* **--auth (-a):** Affect auth config file (only used for --editor). +* **--unset:** Remove the configuration element named by `setting-key`. +* **--list (-l):** Show the list of current config variables. With the `--global` + option this lists the global configuration only. +* **--file="..." (-f):** Operate on a specific file instead of composer.json. Note + that this cannot be used in conjunction with the `--global` option. +* **--absolute:** Returns absolute paths when fetching `*-dir` config values + instead of relative. +* **--json:** JSON decode the setting value. Only supported for `extra.*`, + `policy.*.ignore`, `policy.advisories.ignore-id`, `policy.ignore-unreachable`, + `audit.ignore` and `audit.ignore-abandoned` keys, it is ignored for all other keys. +* **--merge:** Merge the setting value with the current value instead of replacing + it. Only supported for `extra.*` keys in combination with `--json`, and for + `policy.*.ignore`, `policy.advisories.ignore-id`, `audit.ignore` and + `audit.ignore-abandoned` keys with or without `--json`. It is ignored for all + other keys. +* **--append:** When adding a repository, append it (lowest priority) to the existing ones instead of prepending it (highest priority). +* **--source:** Display where the config value is loaded from. + +### Modifying Repositories {#modifying-repositories} + +In addition to modifying the config section, the `config` command also supports making +changes to the repositories section by using it the following way: + +```shell +php composer.phar config repositories.foo vcs https://github.com/foo/bar +``` + +If your repository requires more configuration options, you can instead pass its JSON representation : + +```shell +php composer.phar config repositories.foo '{"type": "vcs", "url": "http://svn.example.org/my-project/", "trunk-path": "master"}' +``` + +### Modifying Extra Values {#modifying-extra-values} + +In addition to modifying the config section, the `config` command also supports making +changes to the extra section by using it the following way: + +```shell +php composer.phar config extra.foo.bar value +``` + +The dots indicate array nesting, a max depth of 3 levels is allowed though. The above +would set `"extra": { "foo": { "bar": "value" } }`. + +If you have a complex value to add/modify, you can use the `--json` and `--merge` flags +to edit extra fields as json: + +```shell +php composer.phar config --json extra.foo.bar '{"baz": true, "qux": []}' +``` + +## repository / repo {#repository--repo} + +The `repo` command lets you manage repositories in your `composer.json`. It is more powerful and recommended over using `composer config repositories.*` to manipulate the repositories configuration. Refer to [Repositories](05-repositories.md) documentation for details on the available types and configuration options. + +### Usage {#usage-1} + +```shell +repo [options] list +repo [options] add [repo-name] [repo-type] [url] +repo [options] add [repo-name] [json-repo-definition] +repo [options] remove [repo-name] +repo [options] set-url [repo-name] [url] +repo [options] get-url [repo-name] +repo [options] enable packagist.org +repo [options] disable packagist.org +``` + +### Options {#options-19} + +- **--global (-g):** to modify the global `$COMPOSER_HOME/config.json`. +- **--file (-f):** to modify a specific file instead of composer.json. +- **--append:** to add a repository with lower priority (by default repositories are prepended and have thus higher priority than existing ones). +- **--before [name]:** to insert the new repository before an existing repository named `[name]`. +- **--after [name]:** to insert the new repository after an existing repository named `[name]`. The `[name]` must match an existing repository name. + +### Examples {#examples} + +```shell +php composer.phar repo list +php composer.phar repo add foo vcs https://github.com/acme/foo +php composer.phar repo add bar composer https://repo.packagist.com/bar +php composer.phar repo add zips '{"type":"artifact","url":"/path/to/dir/with/zips"}' +php composer.phar repo add baz vcs https://example.org --before foo +php composer.phar repo add qux vcs https://example.org --after bar +php composer.phar repo remove foo +php composer.phar repo set-url foo https://git.example.org/acme/foo +php composer.phar repo get-url foo +php composer.phar repo disable packagist.org +php composer.phar repo enable packagist.org +``` + +## policy {#policy} + +The `policy` command lets you manage custom dependency policies and their sources in your `composer.json` under `config.policy`. A source points Composer at a remote URL which provides the set of package versions the policy applies to. Adding a source for a dependency policy that does not yet exist will create the policy automatically. + +Built-in dependency policies (`advisories`, `malware`, `abandoned`) do not accept sources and are rejected. To change their settings, use `composer config policy..` instead — see the [policy](06-config.md#policy) config documentation. + +### Usage {#usage-2} + +```shell +policy [options] add-source [policy-name] [source-type] [url] +policy [options] add-source [policy-name] [json-source-definition] +``` + +Currently only `url` is supported as `source-type`, and URLs must start with `https://`. + +### Options {#options-20} + +- **--global (-g):** to modify the global `$COMPOSER_HOME/config.json`. +- **--file (-f):** to modify a specific file instead of composer.json. + +### Examples {#examples-1} + +```shell +php composer.phar policy add-source my-list url https://example.org/list.json +php composer.phar policy add-source my-list '{"type":"url","url":"https://example.org/list.json"}' +``` + +## create-project {#create-project} + +You can use Composer to create new projects from an existing package. This is +the equivalent of doing a git clone/svn checkout followed by a `composer install` +of the vendors. + +There are several applications for this: + +1. You can deploy application packages. +2. You can check out any package and start developing on patches for example. +3. Projects with multiple developers can use this feature to bootstrap the + initial application for development. + +To create a new project using Composer you can use the `create-project` command. +Pass it a package name, and the directory to create the project in. You can also +provide a version as a third argument, otherwise the latest version is used. + +If the directory does not currently exist, it will be created during installation. + +```shell +php composer.phar create-project composer/hello-world my-project +``` + +It is also possible to run the command without params in a directory with an +existing `composer.json` file to bootstrap a project. + +By default the command checks for the packages on packagist.org. + +### Options {#options-21} + +* **--stability (-s):** Minimum stability of package. Defaults to `stable`. +* **--prefer-install:** There are two ways of downloading a package: `source` + and `dist`. Composer uses `dist` by default. If you pass + `--prefer-install=source` (or `--prefer-source`) Composer will install from + `source` if there is one. This is useful if you want to make a bugfix to a + project and get a local git clone of the dependency directly. + To get the legacy behavior where Composer use `source` automatically for dev + versions of packages, use `--prefer-install=auto`. See also [config.preferred-install](06-config.md#preferred-install). + Passing this flag will override the config value. +* **--repository:** Provide a custom repository to search for the package, + which will be used instead of packagist. Can be either an HTTP URL pointing + to a `composer` repository, a path to a local `packages.json` file, or a + JSON string which similar to what the [repositories](04-schema.md#repositories-root-only) + key accepts. You can use this multiple times to configure multiple repositories. +* **--add-repository:** Add the custom repository in the composer.json. If a lock + file is present, it will be deleted and an update will be run instead of an install. +* **--dev:** Install packages listed in `require-dev`. +* **--no-dev:** Disables installation of require-dev packages. +* **--no-scripts:** Disables the execution of the scripts defined in the root + package. +* **--no-progress:** Removes the progress display that can mess with some + terminals or scripts which don't handle backspace characters. +* **--no-secure-http:** Disable the secure-http config option temporarily while + installing the root package. Use at your own risk. Using this flag is a bad + idea. +* **--keep-vcs:** Skip the deletion of the VCS metadata for the created + project. This is mostly useful if you run the command in non-interactive + mode. +* **--remove-vcs:** Force-remove the VCS metadata without prompting. +* **--no-install:** Disables installation of the vendors. +* **--no-audit:** Does not run the audit steps after installation is complete. Also see [COMPOSER_NO_AUDIT](#composer_no_audit). +* **--audit-format:** Audit output format. Must be "table", "plain", "json", or "summary" (default). +* **--no-security-blocking:** DEPRECATED, use `--no-blocking` instead. Allows installing packages with security advisories, that are abandoned or that are still in the cooldown period. Also see [COMPOSER_NO_SECURITY_BLOCKING](#composer_no_security_blocking). +* **--no-blocking:** Disables all policy blocking during this command, including the cooldown period. Also see [COMPOSER_NO_BLOCKING](#composer_no_blocking). +* **--no-cooldown:** Disables the [cooldown policy](06-config.md#cooldown) blocking during this command, other policies still apply. +* **--ignore-platform-reqs:** ignore all platform requirements (`php`, `hhvm`, + `lib-*` and `ext-*`) and force the installation even if the local machine does + not fulfill these. + See also the [`platform`](06-config.md#platform) config option. +* **--ignore-platform-req:** ignore a specific platform requirement(`php`, + `hhvm`, `lib-*` and `ext-*`) and force the installation even if the local machine + does not fulfill it. Multiple requirements can be ignored via wildcard. +* **--require:** Require additional package(s) to be added to composer.json after + installing the project. If a lock file is present it will be deleted and an + update will be run instead of install. Can be specified multiple times for + multiple packages. Should be in format `foo/bar:1.0.0` format if you want to + specify a constraint. +* **--ask:** Ask the user to provide a target directory for the new project. + +## dump-autoload / dumpautoload {#dump-autoload--dumpautoload} + +If you need to update the autoloader because of new classes in a classmap +package for example, you can use `dump-autoload` to do that without having to +go through an install or update. + +Additionally, it can dump an optimized autoloader that converts PSR-0/4 packages +into classmap ones for performance reasons. In large applications with many +classes, the autoloader can take up a substantial portion of every request's +time. Using classmaps for everything is less convenient in development, but +using this option you can still use PSR-0/4 for convenience and classmaps for +performance. + +### Options {#options-22} +* **--optimize (-o):** Convert PSR-0/4 autoloading to classmap to get a faster + autoloader. This is recommended especially for production, but can take + a bit of time to run, so it is currently not done by default. +* **--classmap-authoritative (-a):** Autoload classes from the classmap only. + Implicitly enables `--optimize`. +* **--apcu:** Use APCu to cache found/not-found classes. +* **--apcu-prefix:** Use a custom prefix for the APCu autoloader cache. + Implicitly enables `--apcu`. +* **--dry-run:** Outputs the operations but will not execute anything. +* **--no-dev:** Disables autoload-dev rules. Composer will by default infer this + automatically according to the last `install` or `update` `--no-dev` state. +* **--dev:** Enables autoload-dev rules. Composer will by default infer this + automatically according to the last `install` or `update` `--no-dev` state. +* **--ignore-platform-reqs:** ignore all `php`, `hhvm`, `lib-*` and `ext-*` + requirements and skip the [platform check](07-runtime.md#platform-check) for these. + See also the [`platform`](06-config.md#platform) config option. +* **--ignore-platform-req:** ignore a specific platform requirement (`php`, `hhvm`, + `lib-*` and `ext-*`) and skip the [platform check](07-runtime.md#platform-check) for it. + Multiple requirements can be ignored via wildcard. +* **--strict-psr:** Return a failed exit code (1) if PSR-4 or PSR-0 mapping errors + are present in the current project (dependencies excluded). Requires `--optimize` to work. +* **--strict-ambiguous:** Return a failed exit code (2) if the same class is found + in multiple files. It also checks if files or folders exist with different case variants that + cause issues on case-insensitive filesystems. Requires `--optimize` to work. + +## clear-cache / clearcache / cc {#clear-cache--clearcache--cc} + +Deletes all content from Composer's cache directories. + +### Options {#options-23} + +* **--gc:** Only run garbage collection, not a full cache clear + +## licenses {#licenses} + +Lists the name, version and license of every package installed. Use +`--format=json` to get machine-readable output. + +### Options {#options-24} + +* **--locked:** List licenses from the lock file, regardless of what is currently in vendor dir. +* **--format:** Format of the output: text, json or summary (default: "text"). +* **--no-dev:** Remove dev dependencies from the output. + +## run-script / run {#run-script--run} + +To run [scripts](articles/scripts.md) manually you can use this command, +give it the script name and optionally any required arguments. + +### Options {#options-25} + +* **--timeout:** Set the script timeout in seconds, or 0 for no timeout. +* **--dev:** Sets the dev mode. +* **--no-dev:** Disable dev mode. +* **--list (-l):** List user defined scripts. + +## exec {#exec} + +Executes a vendored binary/script. You can execute any command and this will +ensure that the Composer bin-dir is pushed on your PATH before the command +runs. + +### Options {#options-26} + +* **--list (-l):** List the available Composer binaries. + +## diagnose {#diagnose} + +If you think you found a bug, or something is behaving strangely, you might +want to run the `diagnose` command to perform automated checks for many common +problems. + +```shell +php composer.phar diagnose +``` + +## archive {#archive} + +This command is used to generate a zip/tar archive for a given package in a +given version. It can also be used to archive your entire project without +excluded/ignored files. + +```shell +php composer.phar archive vendor/package 2.0.21 --format=zip +``` + +### Options {#options-27} + +* **--format (-f):** Format of the resulting archive: tar, tar.gz, tar.bz2 + or zip (default: "tar"). +* **--dir:** Write the archive to this directory (default: ".") +* **--file:** Write the archive with the given file name. +* **--ignore-filters:** Don't apply the usual exclude rules, so files marked + `export-ignore` in `.gitattributes` or listed in + [archive.exclude](04-schema.md#archive) are archived too. + +## audit {#audit} + +This command is used to audit the packages you have installed against defined dependency policies, +such as security advisories. It checks for and lists security vulnerability advisories using the +[Packagist.org API](https://packagist.org/apidoc#list-security-advisories) by default or other +repositories if specified in the `repositories` section of `composer.json`. The command also detects +abandoned packages and packages flagged as malware, or packages matched by other dependency policies. + +The audit command determines if there are vulnerable, abandoned, malware packages, or packages matched by other dependency +policies and returns the following exit codes based on the findings: + +* `0` No issues; +* `1` Found packages matching dependency policies or failed due to missing required packages. + +```shell +php composer.phar audit +``` + +### Options {#options-28} + +* **--no-dev:** Disables auditing of require-dev packages. +* **--direct (-D):** Only audit packages directly required by the root package, + skipping transitive dependencies. +* **--format (-f):** Audit output format. Must be "table" (default), "plain", "json", or "summary". +* **--locked:** Audit packages from the lock file, regardless of what is currently in vendor dir. +* **--abandoned:** Behavior on abandoned packages. Must be "ignore", "report", + or "fail". See also [config.audit.abandoned](06-config.md#abandoned). Passing this + flag will override the config value and the environment variable. +* **--ignore-severity:** Ignore advisories of a certain severity level. Can be passed one or more + time to ignore multiple severities. +* **--ignore-unreachable:** Ignore repositories and dependency policy sources that are + unreachable or return a non-200 status code. See also [config.policy.ignore-unreachable](06-config.md#ignore-unreachable). + +## help {#help} + +To get more information about a certain command, you can use `help`. + +```shell +php composer.phar help install +``` + +## Command-line completion {#command-line-completion} + +Command-line completion can be enabled by running the `composer completion --help` command and +following the instructions. + +## Environment variables {#environment-variables} + +You can set a number of environment variables that override certain settings. +Whenever possible it is recommended to specify these settings in the `config` +section of `composer.json` instead. It is worth noting that the env vars will +always take precedence over the values specified in `composer.json`. + +### COMPOSER {#composer} + +By setting the `COMPOSER` env variable it is possible to set the filename of +`composer.json` to something else. + +For example: + +```shell +COMPOSER=composer-other.json php composer.phar install +``` + +The generated lock file will use the same name: `composer-other.lock` in this example. + +### COMPOSER_ALLOW_SUPERUSER {#composer_allow_superuser} + +If set to 1, this env disables the warning about running commands as root/super user. +It also disables automatic clearing of sudo sessions, so you should really only set this +if you use Composer as a super user at all times like in docker containers. + +### COMPOSER_ALLOW_UNSAFE_PHAR_METADATA {#composer_allow_unsafe_phar_metadata} + +This env var only has an effect on PHP versions before 8.0. On those versions Composer +refuses to read or extract `tar`/`phar` dist archives, because parsing such an archive +is not safe to do with untrusted input on PHP < 8.0. The recommended fix is to upgrade +to PHP 8.0 or newer. If you cannot upgrade and accept the risk, set this to 1 to allow +Composer to process these archives anyway. PHP 8.0+ is unaffected and ignores this setting. + +### COMPOSER_ALLOW_XDEBUG {#composer_allow_xdebug} + +If set to 1, this env allows running Composer when the Xdebug extension is enabled, without restarting PHP without it. + +### COMPOSER_AUTH {#composer_auth} + +The `COMPOSER_AUTH` var allows you to set up authentication as an environment variable. +The contents of the variable should be a JSON formatted object containing [http-basic, +github-oauth, bitbucket-oauth, ... objects as needed](articles/authentication-for-private-packages.md), +and following the +[spec from the config](06-config.md). Any other config setting found in there is +ignored, except for `github-domains`, `gitlab-domains` and `forgejo-domains`. The +same applies to a project's `auth.json` file. + +### COMPOSER_BIN_COMPAT {#composer_bin_compat} + +Override the [`bin-compat`](06-config.md#bin-compat) config setting. + +### COMPOSER_BIN_DIR {#composer_bin_dir} + +By setting this option you can change the `bin` ([Vendor Binaries](articles/vendor-binaries.md)) +directory to something other than `vendor/bin`. + +### COMPOSER_CACHE_DIR {#composer_cache_dir} + +The `COMPOSER_CACHE_DIR` var allows you to change the Composer cache directory, +which is also configurable via the [`cache-dir`](06-config.md#cache-dir) option. + +By default, it points to `C:\Users\\AppData\Local\Composer` (or `%LOCALAPPDATA%/Composer`) on Windows. +On \*nix systems that follow the [XDG Base +Directory Specifications](https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html), +it points to `$XDG_CACHE_HOME/composer`. On other \*nix systems and on macOS, it points to +`$COMPOSER_HOME/cache`. + +See [Caching Composer dependencies](articles/caching.md) for how to cache it in CI +and container builds. + +### COMPOSER_CAFILE {#composer_cafile} + +By setting this environmental value, you can set a path to a certificate bundle +file to be used during SSL/TLS peer verification. + +### COMPOSER_DISABLE_XDEBUG_WARN {#composer_disable_xdebug_warn} + +If set to 1, this env suppresses a warning when Composer is running with the Xdebug extension enabled. + +### COMPOSER_DISCARD_CHANGES {#composer_discard_changes} + +This env var controls the [`discard-changes`](06-config.md#discard-changes) config option. + +### COMPOSER_FUND {#composer_fund} + +If set to 0, this env suppresses funding notices when installing. + +### COMPOSER_HOME {#composer_home} + +The `COMPOSER_HOME` var allows you to change the Composer home directory. This +is a hidden, global (per-user on the machine) directory that is shared between +all projects. + +Use `composer config --global home` to see the location of the home directory. + +By default, it points to `C:\Users\\AppData\Roaming\Composer` on Windows +and `/Users//.composer` on macOS. On \*nix systems that follow the [XDG Base +Directory Specifications](https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html), +it points to `$XDG_CONFIG_HOME/composer`. On other \*nix systems, it points to +`/home//.composer`. + +This directory holds the public keys used to verify Composer downloads during +`self-update`, so it must be writable only by the user that owns the Composer +installation and should be treated as a trusted location. + +#### COMPOSER_HOME/config.json {#composer_homeconfigjson} + +You may put a `config.json` file into the location which `COMPOSER_HOME` points +to. Composer will partially (only `config` and `repositories` keys) merge this +configuration with your project's `composer.json` when you run the `install` and +`update` commands. + +This file allows you to set [repositories](05-repositories.md) and +[configuration](06-config.md) for the user's projects. + +In case global configuration matches _local_ configuration, the _local_ +configuration in the project's `composer.json` always wins. + +### COMPOSER_HTACCESS_PROTECT {#composer_htaccess_protect} + +Defaults to `1`. If set to `0`, Composer will not create `.htaccess` files in the +Composer home, cache, and data directories. + +### COMPOSER_MEMORY_LIMIT {#composer_memory_limit} + +If set, the value is used as php's memory_limit. + +### COMPOSER_MIRROR_PATH_REPOS {#composer_mirror_path_repos} + +If set to 1, this env changes the default path repository strategy to `mirror` instead +of `symlink`. As it is the default strategy being set it can still be overwritten by +repository options. + +### COMPOSER_NO_INTERACTION {#composer_no_interaction} + +If set to 1, this env var will make Composer behave as if you passed the +`--no-interaction` flag to every command. This can be set on build boxes/CI. + +### COMPOSER_PROCESS_TIMEOUT {#composer_process_timeout} + +This env var controls the time Composer waits for commands (such as git +commands) to finish executing. The default value is 300 seconds (5 minutes). + +### COMPOSER_ROOT_VERSION {#composer_root_version} + +By setting this var you can specify the version of the root package, if it +cannot be guessed from VCS info and is not present in `composer.json`. + +### COMPOSER_VENDOR_DIR {#composer_vendor_dir} + +By setting this var you can make Composer install the dependencies into a +directory other than `vendor`. + +### COMPOSER_RUNTIME_ENV {#composer_runtime_env} + +This lets you hint under which environment Composer is running, which can help Composer +work around some environment specific issues. The only value currently supported is +`virtualbox`, which then enables some short `sleep()` calls to wait for the filesystem +to have written files properly before we attempt reading them. You can set the +environment variable if you use Vagrant or VirtualBox and experience issues with files not +being found during installation even though they should be present. + +### http_proxy or HTTP_PROXY {#http_proxy-or-http_proxy} +### HTTP_PROXY_REQUEST_FULLURI {#http_proxy_request_fulluri} +### HTTPS_PROXY_REQUEST_FULLURI {#https_proxy_request_fulluri} +### no_proxy or NO_PROXY {#no_proxy-or-no_proxy} + +See the [proxy documentation](faqs/how-to-use-composer-behind-a-proxy.md) for more details +on how to use proxy env vars. + +### COMPOSER_MAX_PARALLEL_HTTP {#composer_max_parallel_http} + +Set to an integer to configure how many files can be downloaded in parallel. This +defaults to 12 and must be between 1 and 50. If your proxy has issues with +concurrency maybe you want to lower this. Increasing it should generally not result +in performance gains. + +### COMPOSER_HTTP_STALL_TIMEOUT {#composer_http_stall_timeout} + +Set to a number of seconds after which a download that received no data at all +is aborted and retried. This defaults to 30. Set it higher if a server you use is +slow to start responding, or to `0` to disable the check entirely. This only works +when the curl extension is used for downloads. + +### COMPOSER_MAX_PARALLEL_PROCESSES {#composer_max_parallel_processes} + +Set to an integer to configure how many processes can be executed in parallel. +This defaults to 10 and must be between 1 and 50. + +### COMPOSER_IPRESOLVE {#composer_ipresolve} + +Set to `4` or `6` to force IPv4 or IPv6 DNS resolution. This only works when the +curl extension is used for downloads. + +### COMPOSER_SELF_UPDATE_TARGET {#composer_self_update_target} + +If set, makes the self-update command write the new Composer phar file into that path instead of overwriting itself. Useful for updating Composer on a read-only filesystem. + +### COMPOSER_DISABLE_NETWORK {#composer_disable_network} + +If set to `1`, disables network access (best effort). This can be used for debugging or +to run Composer on a plane or a starship with poor connectivity. + +If set to `prime`, GitHub VCS repositories will prime the cache, so it can then be used +fully offline with `1`. + +### COMPOSER_DEBUG_EVENTS {#composer_debug_events} + +If set to `1`, outputs information about events being dispatched, which can be +useful for plugin authors to identify what is firing when exactly. + +### COMPOSER_SKIP_SCRIPTS {#composer_skip_scripts} + +Accepts a comma-separated list of event names, e.g. `post-install-cmd` for which scripts execution should be skipped. + +### COMPOSER_NO_AUDIT {#composer_no_audit} + +If set to `1`, it is the equivalent of passing the `--no-audit` option to a `require`, `update`, `remove` or `create-project` command. + +### COMPOSER_AUDIT_ABANDONED {#composer_audit_abandoned} + +Set to `ignore`, `report` or `fail` to override the [policy.abandoned.audit](06-config.md#audit) config option. Has no effect when `policy.abandoned` is set to `false` in composer.json. + +### COMPOSER_POLICY {#composer_policy} + +Main dependency policy switch. Set to `0` to disable all dependency policy enforcement on updates, installs and audits, or `1` to enable it. When disabled, `composer audit` does not check anything and only prints a warning saying so. Setting this to `1` will use the policy configuration in the composer.json. If you want to change the config value, use `composer config policy 1` instead. + +When set to `0`, all policy specific overrides below are ignored — the whole dependency policy config is short-circuited to disabled. + +### COMPOSER_NO_BLOCKING {#composer_no_blocking} + +If set to `1`, it is the equivalent of passing the `--no-blocking` option to a `require`, `update`, `remove`, `install`, or `create-project` command. This disables all policy based blocking of dependencies, including the cooldown period. It overrides the `block` config option for each configured dependency policy e.g. [policy.advisories.block](06-config.md#block). + +### COMPOSER_NO_SECURITY_BLOCKING {#composer_no_security_blocking} + +DEPRECATED, use [COMPOSER_NO_BLOCKING](#composer_no_blocking) instead. + +If set to `1`, it is the equivalent of passing the `--no-security-blocking` option to a `require`, `update`, `remove`, `install`, or `create-project` command. This allows installing packages with security advisories, that are abandoned or that are still in the cooldown period. It overrides the config option [policy.advisories.block](06-config.md#block). + +### COMPOSER_POLICY_ADVISORIES_BLOCK {#composer_policy_advisories_block} + +If set to `1`, enables blocking of packages with security advisories during dependency resolution (equivalent to setting `policy.advisories.block` to `true`). If set to `0`, disables blocking. + +### COMPOSER_POLICY_MALWARE_BLOCK {#composer_policy_malware_block} + +If set to `1`, enables blocking of packages flagged as malware during dependency resolution (equivalent to setting `policy.malware.block` to `true`). If set to `0`, disables blocking. + +### COMPOSER_POLICY_ABANDONED_BLOCK {#composer_policy_abandoned_block} + +If set to `1`, enables blocking of abandoned packages during dependency resolution (equivalent to setting `policy.abandoned.block` to `true`). If set to `0`, disables blocking. + +Value takes precedence over the value of the legacy variable [COMPOSER_SECURITY_BLOCKING_ABANDONED](#composer_security_blocking_abandoned) when it's set to a different value. + +### COMPOSER_SECURITY_BLOCKING_ABANDONED {#composer_security_blocking_abandoned} + +DEPRECATED, use [COMPOSER_POLICY_ABANDONED_BLOCK](#composer_policy_abandoned_block) instead. + +If set to `1`, enables blocking of abandoned packages during dependency resolution (equivalent to setting `audit.block-abandoned` config to `true`). If set to `0`, disables blocking of abandoned packages. It overrides the config option [audit.block-abandoned](06-config.md#block-abandoned). + +### COMPOSER_POLICY_COOLDOWN_PERIOD {#composer_policy_cooldown_period} + +If set to a value accepted by [policy.cooldown.period](06-config.md#period), such as `"7 days"`, +`"24 hours"` or an integer number of seconds, enables the cooldown policy. Package versions +published within that period are withheld during `composer update`/`require`. Set to `0` to disable. +This overrides only the `period` value from [policy.cooldown](06-config.md#cooldown); any `ignore` +rules configured in composer.json are still respected. + +### COMPOSER_POLICY_COOLDOWN_BLOCK {#composer_policy_cooldown_block} + +If set to `1`, forces cooldown blocking on; if set to `0`, disables it. Overrides the +[policy.cooldown.block](06-config.md#block-3) config option. + +### COMPOSER_NO_DEV {#composer_no_dev} + +If set to `1`, it is the equivalent of passing the `--update-no-dev` option to `require` + or the `--no-dev` option to `install` or `update`. You can override this for a single +command by setting `COMPOSER_NO_DEV=0`. + +### COMPOSER_PREFER_STABLE {#composer_prefer_stable} + +If set to `1`, it is the equivalent of passing the `--prefer-stable` option to +`update` or `require`. + +### COMPOSER_PREFER_LOWEST {#composer_prefer_lowest} + +If set to `1`, it is the equivalent of passing the `--prefer-lowest` option to +`update` or `require`. + +### COMPOSER_PREFER_DEV_OVER_PRERELEASE {#composer_prefer_dev_over_prerelease} + +If set to `1`, when resolving dependencies with both `--prefer-stable` and +`--prefer-lowest` enabled, dev versions are treated as more stable than +alpha/beta/RC versions in cases where no stable release exists. This is useful +to test lowest versions while still preferring branches that may contain +critical fixes over prerelease versions. + +### COMPOSER_MINIMAL_CHANGES {#composer_minimal_changes} + +If set to `1`, it is the equivalent of passing the `--minimal-changes` option to +`update`, `require` or `remove`. + +### COMPOSER_IGNORE_PLATFORM_REQ or COMPOSER_IGNORE_PLATFORM_REQS {#composer_ignore_platform_req-or-composer_ignore_platform_reqs} + +If `COMPOSER_IGNORE_PLATFORM_REQS` set to `1`, it is the equivalent of passing the `--ignore-platform-reqs` argument. +Otherwise, specifying a comma separated list in `COMPOSER_IGNORE_PLATFORM_REQ` will ignore those specific requirements. + +For example, if a development workstation will never run database queries, this can be used to ignore the requirement for the database extensions to be available. If you set `COMPOSER_IGNORE_PLATFORM_REQ=ext-oci8`, then composer will allow packages to be installed even if the `oci8` PHP extension is not enabled. + +### COMPOSER_WITH_DEPENDENCIES {#composer_with_dependencies} + +If set to `1`, it is the equivalent of passing the `--with-dependencies` option to +`update`, `require` or `remove`. + +### COMPOSER_WITH_ALL_DEPENDENCIES {#composer_with_all_dependencies} + +If set to `1`, it is the equivalent of passing the `--with-all-dependencies` option to +`update`, `require` or `remove`. + +### COMPOSER_TERMINAL_STATUS {#composer_terminal_status} + +Controls terminal status reports. Defaults to `auto`. + +- `auto` sends OSC 7501 status reports and also sends OSC 9 progress reports + when the environment identifies Windows Terminal (`WT_SESSION`), ConEmu + (`ConEmuANSI=ON`), Ghostty 1.2.0 or newer, or iTerm2 3.6.6 or newer. + Ghostty and iTerm2 are identified by `TERM_PROGRAM` and `TERM_PROGRAM_VERSION`. + Unknown terminals receive only OSC 7501. Through SSH, tmux, or screen, automatic + selection also sends only OSC 7501 because the outer terminal's identity does + not establish support along the connection. +- `off` disables status reports. +- `7501` selects only OSC 7501. +- `9;4` selects only OSC 9 progress reports. +- `7501,9;4` selects both protocols, including in environments where automatic + selection cannot recognize support. +- Any other value, such as `0` or `false`, disables status reports. Unknown + entries in a comma-separated list are ignored. + +Protocol selection is resolved once for each console IO instance. All modes +respect quiet output, disabled ANSI decoration, and redirected stderr. +Forcing ANSI with `--ansi` does not enable reports on redirected streams. + +OSC 7501 is sent without querying the terminal. Supporting terminals can show +Composer's state, messages, and reasons for waiting. Terminals that do not +recognize this protocol are expected to ignore it. OSC 9 progress reports carry +progress, paused, and error states. Completion or cancellation clears their +progress indicator. Ghostty hides the indicator after 15 seconds without an +update. Commands using a progress bar should aim to report progress less than +15 seconds apart to keep it visible. Older terminals may interpret OSC 9 as a desktop +notification, so explicitly selecting `9;4` requires a compatible terminal. + +For example, in a POSIX shell: + +```sh +COMPOSER_TERMINAL_STATUS=off composer install +COMPOSER_TERMINAL_STATUS='7501,9;4' composer update +``` + +### SHELL_VERBOSITY {#shell_verbosity} + +Since Composer uses [symfony/console](https://github.com/symfony/console), +you can define the [verbosity level](https://symfony.com/doc/current/console/verbosity.html). +`SHELL_VERBOSITY=-1` to hide the output of Composer +(this is equivalent to using the CLI option `--quiet`). +Please note that this will apply to every tool that rely on `symfony/console`, +you can set `SHELL_VERBOSITY=0` after the calls to Composer in order to restore the default verbosity level. + +← [Libraries](02-libraries.md) | [Schema](04-schema.md) → diff --git a/en-back/04-schema.md b/src/04-schema.md similarity index 52% rename from en-back/04-schema.md rename to src/04-schema.md index 023e7b8..6b5551b 100644 --- a/en-back/04-schema.md +++ b/src/04-schema.md @@ -1,15 +1,14 @@ -# The composer.json Schema +# The composer.json schema {#the-composerjson-schema} This chapter will explain all of the fields available in `composer.json`. -## JSON schema +## JSON schema {#json-schema} -We have a [JSON schema](http://json-schema.org) that documents the format and +We have a [JSON schema](https://json-schema.org) that documents the format and can also be used to validate your `composer.json`. In fact, it is used by the -`validate` command. You can find it at: -[`res/composer-schema.json`](https://github.com/composer/composer/blob/master/res/composer-schema.json). +`validate` command. You can find it at: https://getcomposer.org/schema.json -## Root Package +## Root Package {#root-package} The root package is the package defined by the `composer.json` at the root of your project. It is the main `composer.json` that defines your project @@ -25,27 +24,30 @@ The config of dependencies is ignored. This makes the `config` field > is the root package. However, if you clone `monolog` from GitHub in order to > fix a bug in it, then `monolog` is the root package. -## Properties +## Properties {#properties} -### name +### name {#name} The name of the package. It consists of vendor name and project name, -separated by `/`. - -Examples: +separated by `/`. Examples: * monolog/monolog * igorw/event-source -Required for published packages (libraries). +The name must be lowercase and consist of words separated by `-`, `.` or `_`. +The complete name should match `^[a-z0-9]([_.-]?[a-z0-9]+)*/[a-z0-9](([_.]|-{1,2})?[a-z0-9]+)*$`. -### description +The `name` property is required for published packages (libraries). -A short description of the package. Usually this is just one line long. +> **Note:** Before Composer version 2.0, a name could contain any character, including white spaces. + +### description {#description} + +A short description of the package. Usually this is one line long. Required for published packages (libraries). -### version +### version {#version} The version of the package. In most cases this is not required and should be omitted (see below). @@ -74,22 +76,22 @@ to omit it. > much true for Packagist as well. Specifying the version yourself will > most likely end up creating problems at some point due to human error. -### type +### type {#type} The type of the package. It defaults to `library`. Package types are used for custom installation logic. If you have a package that needs some special logic, you can define a custom type. This could be a -`symfony-bundle`, a `wordpress-plugin` or a `typo3-module`. These types will -all be specific to certain projects, and they will need to provide an +`symfony-bundle`, a `wordpress-plugin` or a `typo3-cms-extension`. These types +will all be specific to certain projects, and they will need to provide an installer capable of installing packages of that type. Out of the box, Composer supports four types: -- **library:** This is the default. It will simply copy the files to `vendor`. +- **library:** This is the default. It will copy the files to `vendor`. - **project:** This denotes a project rather than a library. For example application shells like the [Symfony standard edition](https://github.com/symfony/symfony-standard), - CMSs like the [SilverStripe installer](https://github.com/silverstripe/silverstripe-installer) + CMSs like the [Silverstripe installer](https://github.com/silverstripe/silverstripe-installer) or full fledged applications distributed as packages. This can for example be used by IDEs to provide listings of projects to initialize when creating a new workspace. @@ -100,11 +102,14 @@ Out of the box, Composer supports four types: - **composer-plugin:** A package of type `composer-plugin` may provide an installer for other packages that have a custom type. Read more in the [dedicated article](articles/custom-installers.md). +- **php-ext** and **php-ext-zend**: These names are reserved for PHP extension + packages which are written in C. Do not use these types for packages written + in PHP. Only use a custom type if you need custom logic during installation. It is -recommended to omit this field and have it just default to `library`. +recommended to omit this field and have it default to `library`. -### keywords +### keywords {#keywords} An array of keywords that the package is related to. These can be used for searching and filtering. @@ -117,23 +122,40 @@ Examples: - redis - templating -Optional. +> **Note**: Some special keywords trigger `composer require` without the +> `--dev` option to prompt users if they would like to add these packages to +> `require-dev` instead of `require`. These are: `dev`, `testing`, `static analysis`. -### homepage - -An URL to the website of the project. +> **Note**: The range of characters allowed inside the string is restricted to +> unicode letters or numbers, space `" "`, dot `.`, underscore `_` and dash `-`. (Regex: `'{^[\p{N}\p{L} ._-]+$}u'`) +> Using other characters will emit a warning when running `composer validate` and +> will cause the package to fail updating on Packagist.org. Optional. -### time +### homepage {#homepage} + +A URL to the website of the project. + +Optional. + +### readme {#readme} + +A relative path to the readme document. Defaults to `README.md`. + +This is mainly useful for packages not on GitHub, as for GitHub packages Packagist.org will use the readme API to fetch the one detected by GitHub. + +Optional. + +### time {#time} Release date of the version. -Must be in `YYYY-MM-DD` or `YYYY-MM-DD HH:MM:SS` format. +Must be in `YYYY-MM-DD` or `YYYY-MM-DD HH:MM:SS` format in UTC timezone. Optional. -### license +### license {#license} The license of the package. This can be either a string or an array of strings. @@ -143,20 +165,16 @@ The recommended notation for the most common licenses is (alphabetical): - BSD-2-Clause - BSD-3-Clause - BSD-4-Clause -- GPL-2.0 -- GPL-2.0+ -- GPL-3.0 -- GPL-3.0+ -- LGPL-2.1 -- LGPL-2.1+ -- LGPL-3.0 -- LGPL-3.0+ +- GPL-2.0-only / GPL-2.0-or-later +- GPL-3.0-only / GPL-3.0-or-later +- LGPL-2.1-only / LGPL-2.1-or-later +- LGPL-3.0-only / LGPL-3.0-or-later - MIT Optional, but it is highly recommended to supply this. More identifiers are -listed at the [SPDX Open Source License Registry](https://www.spdx.org/licenses/). +listed at the [SPDX Open Source License Registry](https://spdx.org/licenses/). -For closed-source software, you may use `"proprietary"` as the license identifier. +> **Note:** For closed-source software, you may use `"proprietary"` as the license identifier. An Example: @@ -167,40 +185,40 @@ An Example: ``` For a package, when there is a choice between licenses ("disjunctive license"), -multiple can be specified as array. +multiple can be specified as an array. An Example for disjunctive licenses: ```json { "license": [ - "LGPL-2.1", - "GPL-3.0+" + "LGPL-2.1-only", + "GPL-3.0-or-later" ] } ``` -Alternatively they can be separated with "or" and enclosed in parenthesis; +Alternatively they can be separated with "or" and enclosed in parentheses; ```json { - "license": "(LGPL-2.1 or GPL-3.0+)" + "license": "(LGPL-2.1-only or GPL-3.0-or-later)" } ``` -Similarly when multiple licenses need to be applied ("conjunctive license"), -they should be separated with "and" and enclosed in parenthesis. +Similarly, when multiple licenses need to be applied ("conjunctive license"), +they should be separated with "and" and enclosed in parentheses. -### authors +### authors {#authors} The authors of the package. This is an array of objects. Each author object can have following properties: -* **name:** The author's name. Usually his real name. +* **name:** The author's name. Usually their real name. * **email:** The author's email address. -* **homepage:** An URL to the author's website. -* **role:** The authors' role in the project (e.g. developer or translator) +* **homepage:** URL to the author's website. +* **role:** The author's role in the project (e.g. developer or translator) An example: @@ -210,13 +228,13 @@ An example: { "name": "Nils Adermann", "email": "naderman@naderman.de", - "homepage": "http://www.naderman.de", + "homepage": "https://www.naderman.de", "role": "Developer" }, { "name": "Jordi Boggiano", "email": "j.boggiano@seld.be", - "homepage": "http://seld.be", + "homepage": "https://seld.be", "role": "Developer" } ] @@ -225,7 +243,7 @@ An example: Optional, but highly recommended. -### support +### support {#support} Various information to get support about the project. @@ -238,6 +256,9 @@ Support information includes the following: * **irc:** IRC channel for support, as irc://server/channel. * **source:** URL to browse or download the sources. * **docs:** URL to the documentation. +* **rss:** URL to the RSS feed. +* **chat:** URL to the chat channel. +* **security:** URL to the vulnerability disclosure policy (VDP). An example: @@ -252,10 +273,124 @@ An example: Optional. -### Package links +### funding {#funding} + +A list of URLs to provide funding to the package authors for maintenance and +development of new functionality. + +Each entry consists of the following + +* **type:** The type of funding, or the platform through which funding can be provided, e.g. patreon, opencollective, tidelift or github. +* **url:** URL to a website with details, and a way to fund the package. + +An example: + +```json +{ + "funding": [ + { + "type": "patreon", + "url": "https://www.patreon.com/phpdoctrine" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/subscription/pkg/packagist-doctrine_doctrine-bundle" + }, + { + "type": "other", + "url": "https://www.doctrine-project.org/sponsorship.html" + } + ] +} +``` + +Optional. + +### source {#source} + +Where the package sources live, used when installing the package from source. + +`type`, `url` and `reference` are required, `mirrors` is optional. + +```json +{ + "source": { + "type": "git", + "url": "https://github.com/composer/composer.git", + "reference": "2.8.0" + } +} +``` + +Where `type` is `git`, the reference is a commit id, branch or tag name. Where +it is `svn`, it is the reference that gets appended to the URL when running +`svn co`. + +You normally do not write this field yourself. The repository a package comes +from provides it: Packagist and other `composer` repositories fill it in from +the VCS they read the package from, and a VCS repository fills it in from the +branch or tag it is reading. The place you do write it by hand is the +definition of a [`package` repository](05-repositories.md#package-1). + +Optional. + +### dist {#dist} + +Where the package archive lives, used when installing the package from dist. + +`type` and `url` are required, `reference`, `shasum` and `mirrors` are +optional. + +```json +{ + "dist": { + "type": "zip", + "url": "https://www.smarty.net/files/Smarty-3.1.7.zip" + } +} +``` + +The same applies as for [source](04-schema.md#source): this is normally +provided by the repository the package comes from, and written by hand only in +a [`package` repository](05-repositories.md#package-1). + +The `url` may contain placeholders, which is what lets one URL serve every +version of a package instead of one entry per version. They are expanded when +the package is downloaded: + +| Placeholder | Replaced by | +| --- | --- | +| `%package%` | the package name, e.g. `acme/lib` | +| `%version%` | the normalized version, e.g. `1.2.3.0` | +| `%prettyVersion%` | the version defined in the tag or composer.json, e.g. `v1.2.3` | +| `%reference%` | the `reference` above | +| `%type%` | the `type` above | + +```json +{ + "dist": { + "type": "zip", + "url": "https://example.org/dist/%package%/%prettyVersion%.zip" + } +} +``` + +Two of them are hashed rather than inserted as-is, so that they cannot produce +a path segment or escape the URL: `%version%` is replaced by its MD5 hash when +the version contains a `/`, as `dev-feature/x` does, and `%reference%` by its +MD5 hash unless it is already hexadecimal. A branch or tag name given as the +reference therefore appears hashed in the URL. + +Placeholders are expanded in `dist` only. A `source` url is used as it is, since +the VCS it names is cloned once and then checked out at the reference. + +Optional. + +### Package links {#package-links} All of the following take an object which maps package names to -[version constraints](01-basic-usage.md#package-versions). +versions of the package via version constraints. Read more about +versions [here](articles/versions.md). Example: @@ -269,10 +404,11 @@ Example: All links are optional fields. -`require` and `require-dev` additionally support stability flags ([root-only](04-schema.md#root-package)). +`require` and `require-dev` additionally support _stability flags_ ([root-only](04-schema.md#root-package)). +They take the form "_constraint_@_stability flag_". These allow you to further restrict or expand the stability of a package beyond -the scope of the [minimum-stability](#minimum-stability) setting. You can apply -them to a constraint, or just apply them to an empty constraint if you want to +the scope of the [minimum-stability](#minimum-stability-root-only) setting. You can apply +them to a constraint, or apply them to an empty _constraint_ if you want to allow unstable packages of a dependency for example. Example: @@ -291,6 +427,10 @@ explicitly require it as well, along with its sufficient stability flag. Example: +Assuming `doctrine/doctrine-fixtures-bundle` requires `"doctrine/data-fixtures": "dev-master"` +then inside the root composer.json you need to add the second line below to allow dev +releases for the `doctrine/data-fixtures` package : + ```json { "require": { @@ -303,7 +443,9 @@ Example: `require` and `require-dev` additionally support explicit references (i.e. commit) for dev versions to make sure they are locked to a given state, even when you run update. These only work if you explicitly require a dev version -and append the reference with `#`. +and append the reference with `#`. This is also a +[root-only](04-schema.md#root-package) feature and will be ignored in +dependencies. Example: @@ -316,12 +458,23 @@ Example: } ``` -> **Note:** While this is convenient at times, it should not be how you use -> packages in the long term because it comes with a technical limitation. The -> composer.json metadata will still be read from the branch name you specify -> before the hash. Because of that in some cases it will not be a practical -> workaround, and you should always try to switch to tagged releases as soon -> as you can. +> **Note:** This feature has severe technical limitations. The reference only +> changes which commit gets checked out; it is applied at install time as a +> low-level override that the dependency solver never sees. As a result: +> +> - The package's `composer.json` metadata (its own `require` entries, autoload +> rules, and so on) is read from the branch you name, at its current state, +> not from the commit you pinned. The dependencies Composer resolves can +> therefore differ from those declared at that commit. +> - The override is only reliable for source installs. A dist install can only +> honor the reference when the dist is fetched from a source that can build an +> archive for an arbitrary commit (e.g. GitHub); otherwise the pinned commit +> is ignored when downloading the files. +> +> You should therefore only use this as a temporary solution during development +> to remediate transient issues, until you can switch to tagged releases. The +> Composer team does not actively support this feature and will not accept bug +> reports related to it. It is also possible to inline-alias a package constraint so that it matches a constraint that it otherwise would not. For more information [see the @@ -334,38 +487,49 @@ Example: ```json { - "require" : { - "php" : "^5.5 || ^7.0", + "require": { + "php": ">=7.4", "ext-mbstring": "*" } } ``` -#### require +> **Note:** It is important to list PHP extensions your project requires. +> Not all PHP installations are created equal: some may miss extensions you +> may consider as standard (such as `ext-mysqli` which is not installed by +> default in Fedora/CentOS minimal installation systems). Failure to list +> required PHP extensions may lead to a bad user experience: Composer will +> install your package without any errors but it will then fail at run-time. +> The `composer show --platform` command lists all PHP extensions available on +> your system. You may use it to help you compile the list of extensions you +> use and require. Alternatively you may use third party tools to analyze +> your project for the list of extensions used. -Lists packages required by this package. The package will not be installed +#### require {#require} + +Map of packages required by this package. The package will not be installed unless those requirements can be met. -#### require-dev ([root-only](04-schema.md#root-package)) +#### require-dev ([root-only](04-schema.md#root-package)) {#require-dev-root-only} -Lists packages required for developing this package, or running +Map of packages required for developing this package, or running tests, etc. The dev requirements of the root package are installed by default. Both `install` or `update` support the `--no-dev` option that prevents dev dependencies from being installed. -#### conflict +#### conflict {#conflict} -Lists packages that conflict with this version of this package. They +Map of packages that are incompatible with this version of this package. They will not be allowed to be installed together with your package. Note that when specifying ranges like `<1.0 >=1.1` in a `conflict` link, this will state a conflict with all versions that are less than 1.0 *and* equal or newer than 1.1 at the same time, which is probably not what you want. You -probably want to go for `<1.0 | >=1.1` in this case. +probably want to go for `<1.0 || >=1.1` in this case. -#### replace +#### replace {#replace} -Lists packages that are replaced by this package. This allows you to fork a +Map of packages that are replaced by this package. This allows you to fork a package, publish it under a different name with its own version numbers, while packages requiring the original package continue to work with your fork because it replaces the original package. @@ -381,17 +545,25 @@ above. You should then typically only replace using `self.version` as a version constraint, to make sure the main package only replaces the sub-packages of that exact version, and not any other version, which would be incorrect. -#### provide +#### provide {#provide} -List of other packages that are provided by this package. This is mostly -useful for common interfaces. A package could depend on some virtual -`logger` package, any library that implements this logger interface would -simply list it in `provide`. +Map of packages that are provided by this package. This is mostly +useful for implementations of common interfaces. A package could depend on +some virtual package e.g. `psr/log-implementation`, any library that implements +this logger interface would list it in `provide`. Implementors can then +be [found on Packagist.org](https://packagist.org/providers/psr/log-implementation). -#### suggest +Using `provide` with the name of an actual package rather than a virtual one +implies that the code of that package is also shipped, in which case `replace` +is generally a better choice. A common convention for packages providing an +interface and relying on other packages to provide an implementation (for +instance the PSR interfaces) is to use a `-implementation` suffix for the +name of the virtual package corresponding to the interface package. + +#### suggest {#suggest} Suggested packages that can enhance or work well with this package. These are -just informational and are displayed after the package is installed, to give +informational and are displayed after the package is installed, to give your users a hint that they could add more packages, even though they are not strictly required. @@ -403,21 +575,23 @@ Example: ```json { "suggest": { - "monolog/monolog": "Allows more advanced logging of the application flow" + "monolog/monolog": "Allows more advanced logging of the application flow", + "ext-xml": "Needed to support XML format in class Foo" } } ``` -### autoload +### autoload {#autoload} Autoload mapping for a PHP autoloader. -Currently [`PSR-0`](http://www.php-fig.org/psr/psr-0/) autoloading, -[`PSR-4`](http://www.php-fig.org/psr/psr-4/) autoloading, `classmap` generation and -`files` includes are supported. PSR-4 is the recommended way though since it offers -greater ease of use (no need to regenerate the autoloader when you add classes). +[`PSR-4`](https://www.php-fig.org/psr/psr-4/) and [`PSR-0`](http://www.php-fig.org/psr/psr-0/) +autoloading, `classmap` generation and `files` includes are supported. -#### PSR-4 +PSR-4 is the recommended way since it offers greater ease of use (no need +to regenerate the autoloader when you add classes). + +#### PSR-4 {#psr-4} Under the `psr-4` key you define a mapping from namespaces to paths, relative to the package root. When autoloading a class like `Foo\\Bar\\Baz` a namespace prefix @@ -468,7 +642,7 @@ you can use an empty prefix like: } ``` -#### PSR-0 +#### PSR-0 {#psr-0} Under the `psr-0` key you define a mapping from namespaces to paths, relative to the package root. Note that this also supports the PEAR-style non-namespaced convention. @@ -529,7 +703,7 @@ use an empty prefix like: } ``` -#### Classmap +#### Classmap {#classmap} The `classmap` references are all combined, during install/update, into a single key => value array which may be found in the generated file @@ -550,10 +724,22 @@ Example: } ``` -#### Files +Wildcards (`*`) are also supported in a classmap paths, and expand to match any directory name: + +Example: + +```json +{ + "autoload": { + "classmap": ["src/addons/*/lib/", "3rd-party/*", "Something.php"] + } +} +``` + +#### Files {#files} If you want to require certain files explicitly on every request then you can use -the 'files' autoloading mechanism. This is useful if your package includes PHP functions +the `files` autoloading mechanism. This is useful if your package includes PHP functions that cannot be autoloaded by PHP. Example: @@ -566,9 +752,20 @@ Example: } ``` -#### Exclude files from classmaps +Files autoload rules are included whenever `vendor/autoload.php` is included, right after +the autoloader is registered. The order of inclusion depends on package dependencies so that +if package A depends on B, files in package B will be included first to ensure package B is fully +initialized and ready to be used when files from package A are included. -If you want to exclude some files or folders from the classmap you can use the 'exclude-from-classmap' property. +If two packages have the same amount of dependents or no dependencies, the order is alphabetical. + +Files from the root package are always loaded last, and you cannot use files autoloading +yourself to override functions from your dependencies. If you want to achieve that we recommend +you include your own functions *before* including Composer's `vendor/autoload.php`. + +#### Exclude files from classmaps {#exclude-files-from-classmaps} + +If you want to exclude some files or folders from the classmap you can use the `exclude-from-classmap` property. This might be useful to exclude test classes in your live environment, for example, as those will be skipped from the classmap even when building an optimized autoloader. @@ -586,9 +783,16 @@ Example: } ``` -### autoload-dev ([root-only](04-schema.md#root-package)) +#### Optimizing the autoloader {#optimizing-the-autoloader} -This section allows to define autoload rules for development purposes. +The autoloader can have quite a substantial impact on your request time +(50-100ms per request in large frameworks using a lot of classes). See the +[article about optimizing the autoloader](articles/autoloader-optimization.md) +for more details on how to reduce this impact. + +### autoload-dev ([root-only](04-schema.md#root-package)) {#autoload-dev-root-only} + +This section allows defining autoload rules for development purposes. Classes needed to run the test suite should not be included in the main autoload rules to avoid polluting the autoloader in production and when other people use @@ -610,7 +814,7 @@ Example: } ``` -### include-path +### include-path {#include-path} > **DEPRECATED**: This is only present to support legacy projects, and all new code > should preferably use autoloading. As such it is a deprecated practice, but the @@ -628,7 +832,7 @@ Example: Optional. -### target-dir +### target-dir {#target-dir} > **DEPRECATED**: This is only present to support legacy PSR-0 style autoloading, > and all new code should preferably use PSR-4 without target-dir and projects @@ -659,7 +863,7 @@ To do that, `autoload` and `target-dir` are defined as follows: Optional. -### minimum-stability ([root-only](04-schema.md#root-package)) +### minimum-stability ([root-only](04-schema.md#root-package)) {#minimum-stability-root-only} This defines the default behavior for filtering packages by stability. This defaults to `stable`, so if you rely on a `dev` package, you should specify @@ -667,14 +871,14 @@ it in your file to avoid surprises. All versions of each package are checked for stability, and those that are less stable than the `minimum-stability` setting will be ignored when resolving -your project dependencies. Specific changes to the stability requirements of -a given package can be done in `require` or `require-dev` (see -[package links](#package-links)). +your project dependencies. (Note that you can also specify stability requirements +on a per-package basis using stability flags in the version constraints that you +specify in a `require` block (see [package links](#package-links) for more details). Available options (in order of stability) are `dev`, `alpha`, `beta`, `RC`, and `stable`. -### prefer-stable ([root-only](04-schema.md#root-package)) +### prefer-stable ([root-only](04-schema.md#root-package)) {#prefer-stable-root-only} When this is enabled, Composer will prefer more stable packages over unstable ones when finding compatible stable packages is possible. If you require a @@ -683,11 +887,11 @@ selected granted that the minimum-stability allows for it. Use `"prefer-stable": true` to enable. -### repositories ([root-only](04-schema.md#root-package)) +### repositories ([root-only](04-schema.md#root-package)) {#repositories-root-only} Custom package repositories to use. -By default Composer just uses the packagist repository. By specifying +By default Composer only uses the packagist repository. By specifying repositories you can get packages from elsewhere. Repositories are not resolved recursively. You can only add them to your main @@ -696,18 +900,23 @@ ignored. The following repository types are supported: -* **composer:** A Composer repository is simply a `packages.json` file served +* **composer:** A Composer repository is a `packages.json` file served via the network (HTTP, FTP, SSH), that contains a list of `composer.json` objects with additional `dist` and/or `source` information. The `packages.json` file is loaded using a PHP stream. You can set extra options on that stream using the `options` parameter. * **vcs:** The version control system repository can fetch packages from git, - svn and hg repositories. -* **pear:** With this you can import any pear repository into your Composer - project. + svn, fossil and hg repositories. +* **path:** Loads a package from a local directory, given as an absolute or + relative path (wildcards are supported). Mostly useful for monolithic + repositories; the package is symlinked into `vendor` when possible, and + mirrored otherwise. * **package:** If you depend on a project that does not have any support for - composer whatsoever you can define the package inline using a `package` - repository. You basically just inline the `composer.json` object. + Composer whatsoever you can define the package inline using a `package` + repository. You basically inline the `composer.json` object. +* **artifact:** Loads packages from a local directory containing ZIP or TAR + archives, each with a `composer.json` in its root. Useful for exchanging + build artifacts when no repository can be hosted online. For more information on any of these, see [Repositories](05-repositories.md). @@ -734,8 +943,8 @@ Example: "url": "https://github.com/Seldaek/monolog" }, { - "type": "pear", - "url": "https://pear2.php.net" + "type": "path", + "url": "../packages/my-package" }, { "type": "package", @@ -743,7 +952,7 @@ Example: "name": "smarty/smarty", "version": "3.1.7", "dist": { - "url": "http://www.smarty.net/files/Smarty-3.1.7.zip", + "url": "https://www.smarty.net/files/Smarty-3.1.7.zip", "type": "zip" }, "source": { @@ -762,19 +971,88 @@ will look from the first to the last repository, and pick the first match. By default Packagist is added last which means that custom repositories can override packages from it. -### config ([root-only](04-schema.md#root-package)) +Using JSON object notation is also possible. However, JSON key/value pairs +are to be considered unordered so consistent behaviour cannot be guaranteed and is deprecated. + +```json +{ + "repositories": { + "foo": { + "type": "composer", + "url": "http://packages.foo.com" + } + } +} +``` + +It will be superseded by the name property + +```json +{ + "repositories": [ + { + "name": "foo", + "type": "composer", + "url": "http://packages.foo.com" + } + ] +} +``` + +### config ([root-only](04-schema.md#root-package)) {#config-root-only} A set of configuration options. It is only used for projects. See [Config](06-config.md) for a description of each individual option. -### scripts ([root-only](04-schema.md#root-package)) +### scripts ([root-only](04-schema.md#root-package)) {#scripts-root-only} Composer allows you to hook into various parts of the installation process through the use of scripts. See [Scripts](articles/scripts.md) for events details and examples. -### extra +### scripts-descriptions ([root-only](04-schema.md#root-package)) {#scripts-descriptions-root-only} + +Descriptions for the custom commands defined in `scripts`, shown by +`composer list` and `composer run -l` instead of the default +"Runs the ... script as defined in composer.json". + +```json +{ + "scripts-descriptions": { + "test": "Run all tests!" + } +} +``` + +`composer validate` warns about a description given for a script that does +not exist. + +See [Scripts](articles/scripts.md#custom-descriptions) for more details. + +Optional. + +### scripts-aliases ([root-only](04-schema.md#root-package)) {#scripts-aliases-root-only} + +Alternate names for the custom commands defined in `scripts`, as an array of +strings per script. Available as of Composer 2.7. + +```json +{ + "scripts-aliases": { + "phpstan": ["stan", "analyze"] + } +} +``` + +`composer validate` warns about aliases given for a script that does not +exist. + +See [Scripts](articles/scripts.md#custom-aliases) for more details. + +Optional. + +### extra {#extra} Arbitrary extra data for consumption by `scripts`. @@ -787,21 +1065,41 @@ $extra = $event->getComposer()->getPackage()->getExtra(); Optional. -### bin +### bin {#bin} -A set of files that should be treated as binaries and symlinked into the `bin-dir` -(from config). +A set of files that should be treated as binaries and made available +into the `bin-dir` (from config). + +Each entry is a path relative to the package root. It must not contain a `..` segment, nor any of +the characters ``*$`"&^|<>()%!;`` or control characters: those cannot be represented safely in the +proxy files Composer generates in the `bin-dir`. Wildcards are not expanded, a `bin/*` entry is +simply a file that does not exist. See [Vendor Binaries](articles/vendor-binaries.md) for more details. Optional. -### archive +### archive {#archive} A set of options for creating package archives. The following options are supported: +* **name:** Allows configuring base name for archive. + By default (if not configured, and `--file` is not passed as command-line argument), + `preg_replace('#[^a-z0-9-_]#i', '-', name)` is used. + +Example: + +```json +{ + "name": "org/strangeName", + "archive": { + "name": "Strange_name" + } +} +``` + * **exclude:** Allows configuring a list of patterns for excluded paths. The pattern syntax matches .gitignore files. A leading exclamation mark (!) will result in any matching files to be included even if a previous pattern @@ -823,7 +1121,67 @@ The example will include `/dir/foo/bar/file`, `/foo/bar/baz`, `/file.php`, Optional. -### non-feature-branches +### php-ext {#php-ext} + +Settings for a PHP extension package, read by +[PIE](https://github.com/php/pie) rather than by Composer itself. + +It can only be set by packages whose [type](04-schema.md#type) is `php-ext` or +`php-ext-zend`, the two types reserved for extensions written in C. +`composer validate` reports an error on any other package. + +See [PIE for extension maintainers](https://github.com/php/pie/blob/HEAD/docs/extension-maintainers.md#the-php-ext-definition) +for the settings it accepts. + +Optional. + +### abandoned {#abandoned} + +Indicates whether this package has been abandoned. + +It can be boolean or a package name/URL pointing to a recommended alternative. + +Examples: + +Use `"abandoned": true` to indicate this package is abandoned. +Use `"abandoned": "monolog/monolog"` to indicate this package is abandoned, and that +the recommended alternative is `monolog/monolog`. + +Defaults to false. + +Optional. + +### _comment {#_comment} + +Top level key used as a place to store comments (it can be a string or array of strings). + +```json +{ + "_comment": [ + "The package foo/bar was required for business logic", + "Remove package foo/baz when removing foo/bar" + ] +} +``` + +Defaults to empty. + +Optional. + +### default-branch {#default-branch} + +Indicates whether this version is the default branch of the VCS repository the +package was read from. + +This one is for Composer's own use, do not set it in `composer.json`. Composer +discards whatever the file contains and sets it itself, to `true` on the branch +that the repository reports as its default one and on nothing else. It ends up +in the metadata that `composer` repositories serve, which is where you may see +it. + +Defaults to `false`. + +### non-feature-branches {#non-feature-branches} A list of regex patterns of branch names that are non-numeric (e.g. "latest" or something), that will NOT be handled as feature branches. This is an array of strings. @@ -831,12 +1189,12 @@ that will NOT be handled as feature branches. This is an array of strings. If you have non-numeric branch names, for example like "latest", "current", "latest-stable" or something, that do not look like a version number, then Composer handles such branches as feature branches. This means it searches for parent branches, that look like a version -or ends at special branches (like master) and the root package version number becomes the +or ends at special branches (like master), and the root package version number becomes the version of the parent branch or at least master or something. To handle non-numeric named branches as versions instead of searching for a parent branch with a valid version or special branch name like master, you can set patterns for branch -names, that should be handled as dev version branches. +names that should be handled as dev version branches. This is really helpful when you have dependencies using "self.version", so that not dev-master, but the same branch is installed (in the example: latest-testing). @@ -844,7 +1202,7 @@ but the same branch is installed (in the example: latest-testing). An example: If you have a testing branch, that is heavily maintained during a testing phase and is -deployed to your staging environment, normally "composer show -s" will give you `versions : * dev-master`. +deployed to your staging environment, normally `composer show -s` will give you `versions : * dev-master`. If you configure `latest-.*` as a pattern for non-feature-branches like this: @@ -854,7 +1212,7 @@ If you configure `latest-.*` as a pattern for non-feature-branches like this: } ``` -Then "composer show -s" will give you `versions : * dev-latest-testing`. +Then `composer show -s` will give you `versions : * dev-latest-testing`. Optional. diff --git a/src/05-repositories.md b/src/05-repositories.md new file mode 100644 index 0000000..ee304b1 --- /dev/null +++ b/src/05-repositories.md @@ -0,0 +1,1054 @@ +# Repositories {#repositories} + +This chapter will explain the concept of packages and repositories, what kinds +of repositories are available, and how they work. + +## Concepts {#concepts} + +Before we look at the different types of repositories that exist, we need to +understand some basic concepts that Composer is built on. + +### Package {#package} + +Composer is a dependency manager. It installs packages locally. A package is +essentially a directory containing something. In this case it is PHP +code, but in theory it could be anything. And it contains a package +description which has a name and a version. The name and the version are used +to identify the package. + +In fact, internally, Composer sees every version as a separate package. While +this distinction does not matter when you are using Composer, it's quite +important when you want to change it. + +In addition to the name and the version, there is useful metadata. The +information most relevant for installation is the source definition, which +describes where to get the package contents. The package data points to the +contents of the package. And there are two options here: dist and source. + +**Dist:** The dist is a packaged version of the package data. Usually a +released version, usually a stable release. + +**Source:** The source is used for development. This will usually originate +from a source code repository, such as git. You can fetch this when you want +to modify the downloaded package. + +Packages can supply either of these, or even both. Depending on certain +factors, such as user-supplied options and stability of the package, one will +be preferred. + +### Repository {#repository} + +A repository is a package source. It's a list of packages/versions. Composer +will look in all your repositories to find the packages your project requires. + +By default, only the Packagist.org repository is registered in Composer. You can +add more repositories to your project by declaring them in `composer.json`. + +Repositories are only available to the root package and the repositories +defined in your dependencies will not be loaded. Read the +[FAQ entry](faqs/why-cant-composer-load-repositories-recursively.md) if you +want to learn why. + +When resolving dependencies, packages are looked up from repositories from +top to bottom, and by default, as soon as a package is found in one, Composer +stops looking in other repositories. Read the +[repository priorities](articles/repository-priorities.md) article for more +details and to see how to change this behavior. + +## Types {#types} + +### Composer {#composer} + +The main repository type is the `composer` repository. It uses a single +`packages.json` file that contains all of the package metadata. + +This is also the repository type that packagist uses. To reference a +`composer` repository, supply the path before the `packages.json` file. +In the case of packagist, that file is located at `/packages.json`, so the URL of +the repository would be `repo.packagist.org`. For `example.org/packages.json` the +repository URL would be `example.org`. + +```json +{ + "repositories": [ + { + "type": "composer", + "url": "https://example.org" + } + ] +} +``` + +#### packages {#packages} + +The only required field is `packages`. The JSON structure is as follows: + +```json +{ + "packages": { + "vendor/package-name": { + "dev-master": { @composer.json }, + "1.0.x-dev": { @composer.json }, + "0.0.1": { @composer.json }, + "1.0.0": { @composer.json } + } + } +} +``` + +The `@composer.json` marker would be the contents of the `composer.json` from +that package version including as a minimum: + +* name +* version +* dist or source + +Here is a minimal package definition: + +```json +{ + "name": "smarty/smarty", + "version": "3.1.7", + "dist": { + "url": "https://www.smarty.net/files/Smarty-3.1.7.zip", + "type": "zip" + } +} +``` + +It may include any of the other fields specified in the [schema](04-schema.md). + +#### notify-batch {#notify-batch} + +The `notify-batch` field allows you to specify a URL that will be called +every time a user installs a package. The URL can be either an absolute path +(that will use the same domain as the repository), or a fully qualified URL. + +An example value: + +```json +{ + "notify-batch": "/downloads/" +} +``` + +For `example.org/packages.json` containing a `monolog/monolog` package, this +would send a `POST` request to `example.org/downloads/` with following +JSON request body: + +```json +{ + "downloads": [ + {"name": "monolog/monolog", "version": "1.2.1.0"} + ] +} +``` + +The version field will contain the normalized representation of the version +number. + +This field is optional. + +#### metadata-url, available-packages and available-package-patterns {#metadata-url-available-packages-and-available-package-patterns} + +The `metadata-url` field allows you to provide a URL template to serve all +packages which are in the repository. It must contain the placeholder +`%package%`. + +This field is new in Composer v2, and is prioritised over the +`provider-includes` and `providers-url` fields if both are present. +For compatibility with both Composer v1 and v2 you ideally want +to provide both. New repository implementations may only need to +support v2 however. + +An example: + +```json +{ + "metadata-url": "/p2/%package%.json" +} +``` + +Whenever Composer looks for a package, it will replace `%package%` by the +package name, and fetch that URL. If dev stability is allowed for the package, +it will also load the URL again with `$packageName~dev` (e.g. +`/p2/foo/bar~dev.json` to look for `foo/bar`'s dev versions). + +The `foo/bar.json` and `foo/bar~dev.json` files containing package versions +MUST contain only versions for the foo/bar package, as +`{"packages":{"foo/bar":[ ... versions here ... ]}}`. + +Caching is done via the use of If-Modified-Since header, so make sure you +return Last-Modified headers and that they are accurate. + +The array of versions can also optionally be minified using +`Composer\MetadataMinifier\MetadataMinifier::minify()` from +[composer/metadata-minifier](https://packagist.org/packages/composer/metadata-minifier). +If you do that, you should add a `"minified": "composer/2.0"` key +at the top level to indicate to Composer it must expand the version +list back into the original data. See +https://repo.packagist.org/p2/monolog/monolog.json for an example. + +Any requested package which does not exist MUST return a 404 status code, +which will indicate to Composer that this package does not exist in your +repository. Make sure the 404 response is fast to avoid blocking Composer. +Avoid redirects to alternative 404 pages. + +If your repository only has a small number of packages, and you want to avoid +the 404-requests, you can also specify an `"available-packages"` key in +`packages.json` which should be an array with all the package names that your +repository contains. Alternatively you can specify an +`"available-package-patterns"` key which is an array of package name patterns +(with `*` matching any string, e.g. `vendor/*` would make Composer look up +every matching package name in this repository). + +This field is optional. + +#### providers-api {#providers-api} + +The `providers-api` field allows you to provide a URL template to serve all +packages which provide a given package name, but not the package which has +that name even if it exists. It must contain the placeholder `%package%`. + +For example https://packagist.org/providers/psr/log-implementation.json lists +some package which have a "provide" rule for psr/log-implementation. + +```json +{ + "providers-api": "https://packagist.org/providers/%package%.json", +} +``` + +This field is optional. + +#### list {#list} + +The `list` field allows you to return the names of packages which match a +given filter (or all names if no filter is present). It should accept an +optional `?filter=xx` query param, which can contain `*` as wildcards matching +any substring. + +Replace/provide rules should not be considered here. + +It must return an array of package names: +```json +{ + "packageNames": [ + "a/b", + "c/d" + ] +} +``` + +See for example. + +This field is optional. + +#### provider-includes and providers-url {#provider-includes-and-providers-url} + +The `provider-includes` field allows you to list a set of files that list +package names provided by this repository. The hash should be a sha256 of +the files in this case. + +The `providers-url` describes how provider files are found on the server. It +is an absolute path from the repository root. It must contain the placeholders +`%package%` and `%hash%`. + +These fields are used by Composer v1, or if your repository does not have the +`metadata-url` field set. + +An example: + +```json +{ + "provider-includes": { + "providers-a.json": { + "sha256": "f5b4bc0b354108ef08614e569c1ed01a2782e67641744864a74e788982886f4c" + }, + "providers-b.json": { + "sha256": "b38372163fac0573053536f5b8ef11b86f804ea8b016d239e706191203f6efac" + } + }, + "providers-url": "/p/%package%$%hash%.json" +} +``` + +Those files contain lists of package names and hashes to verify the file +integrity, for example: + +```json +{ + "providers": { + "acme/foo": { + "sha256": "38968de1305c2e17f4de33aea164515bc787c42c7e2d6e25948539a14268bb82" + }, + "acme/bar": { + "sha256": "4dd24c930bd6e1103251306d6336ac813b563a220d9ca14f4743c032fb047233" + } + } +} +``` + +The file above declares that acme/foo and acme/bar can be found in this +repository, by loading the file referenced by `providers-url`, replacing +`%package%` by the vendor namespaced package name and `%hash%` by the +sha256 field. Those files themselves contain package definitions as +described [above](#packages). + +These fields are optional. You probably don't need them for your own custom +repository. + +#### Rate limiting and warnings {#rate-limiting-and-warnings} + +A repository which needs to turn requests away for a while should respond with +`429 Too Many Requests` and a `Retry-After` header, either as a number of +seconds or as an HTTP date. When the interval is 60 seconds or less, Composer +waits it out and retries the request, up to three times. The interval is taken +to apply to the whole repository, so no further request to it, new or retried, +is sent before the latest interval it asked for has passed. Requests to other +repositories keep downloading in the meantime. A longer interval is not waited +for, and the request fails with a message which says how long the repository +asked to wait. A `429` without a `Retry-After` header is not retried. + +`Retry-After` is also honoured on the status codes Composer already retries, +such as `503 Service Unavailable`. There, an interval longer than 60 seconds +is ignored and Composer retries on its usual short backoff. + +To tell users why they are limited, and how to raise the limit, return a JSON +body with a `warning` key and an `application/json` content type: + +```http +HTTP/1.1 429 Too Many Requests +Retry-After: 30 +Content-Type: application/json + +{"warning": "Anonymous requests are limited to 100 per minute, authenticate to raise the limit"} +``` + +Composer shows the warning whether it then retries or fails. When many +parallel requests are limited at once, the warning and the notice that +Composer is waiting are each shown once per repository, not once per request. + +#### cURL or stream options {#curl-or-stream-options} + +The repository is accessed either using cURL (Composer 2 with ext-curl enabled) +or PHP streams. You can set extra options using the `options` parameter. For +PHP streams, you can set any valid PHP stream context option. See [Context +options and parameters](https://php.net/manual/en/context.php) for more +information. When cURL is used, only a limited set of `http` and `ssl` options +can be configured. + +```json +{ + "repositories": [ + { + "type": "composer", + "url": "https://example.org", + "options": { + "http": { + "timeout": 60 + } + } + } + ], + "require": { + "acme/package": "^1.0" + } +} +``` + +#### filter {#filter} + +A Composer repository can advertise filter list support to clients by including a `filter` object in +its `packages.json` response. This tells Composer that the repository provides filter list data and +describes what lists are available. + +```json +{ + "metadata-url": "/p2/%package%.json", + "filter": { + "metadata": true, + "lists": { + "malware": { "enabled": true }, + "typosquatting": { "enabled": true } + }, + "summary-url": "/p2/filter-summary.json" + } +} +``` + +- **`metadata`** (required, boolean) — Set to `true` to indicate that per-package metadata files + (served via `metadata-url`) contain filter list data. Composer will fetch the metadata for each + relevant package and look for a `filter` key containing list entries. +- **`lists`** (required, object) — The names of all filter lists this repository provides, mapped to + an object describing the list. The object currently carries an `enabled` flag (set to `true` when + the list is available) and is structured this way so future per-list metadata can be added without + breaking the wire format. +- **`summary-url`** (optional, string) — A URL (absolute or root-relative) returning a compact + mapping of list name → package name → version constraint. When configured, Composer fetches this + endpoint during `composer install`, `composer update` and `composer audit` and uses it to skip per-package metadata + fetches for packages that cannot match any active list. + + The summary endpoint must return JSON of the form: + + ```json + { + "filter": { + "malware": { + "vendor/package": ">=1.0.0,<1.2.0", + "other/package": "*" + } + } + } + ``` + + Composer revalidates the cached summary via `If-Modified-Since` on every install/update/audit, using the + same on-disk repository cache as package metadata. + +- **`api-url`** (optional, string) — A URL (absolute or root-relative) that accepts a POST request + with the relevant package PURLs and configured list names, and replies with the matching filter + entries directly. When set, Composer uses `api-url` instead of `summary-url` and per-package + metadata for filter purposes; this is useful when the summary would be too large to serve in + full. If both `summary-url` and `api-url` are advertised, `api-url` takes precedence and + `summary-url` is ignored. Implementors should be aware that large amounts (a few hundreds + would be normal) of package names can be submitted by Composer. You can decide to cap + that list and return only the first 1000 or whatever you decide but make sure to limit this + somehow. + + The endpoint receives a JSON body of the form: + + ```json + { + "packages": ["pkg://composer/vendor/package", "pkg://composer/other/package"], + "lists": ["malware"] + } + ``` + + and must return JSON of the form: + + ```json + { + "filter": { + "malware": [ + { + "package": "vendor/package", + "constraint": ">=1.0.0,<1.2.0", + "url": "https://example.org/filters/123", + "reason": "Malware", + "id": "PKFE-xxxx-xxxx-xxxx" + } + ] + } + } + ``` + + Each entry has the same shape as a per-package metadata filter entry, with the addition of the + `package` field (since one response covers many packages). The `api-url` POST is not cached + client-side because each request body is different. + +Per-package metadata files should include a `filter` key whose value is an object mapping list names +to arrays of filter entries: + +```json +{ + "packages": { + "vendor/package": [{ ... }] + }, + "filter": { + "malware": [ + { + "constraint": ">=1.0.0,<1.2.0", + "url": "https://example.org/filters/123", + "reason": "Malware", + "id": "PKFE-xxxx-xxxx-xxxx" + } + ] + } +} +``` + +In a `composer.json` file, the `filter` key on a repository definition controls which lists advertised by that +repository are honoured for audit reports and version blocking. + +Set `filter: false` to opt out of every list this repository advertises: + +```json +{ + "repositories": [ + { + "type": "composer", + "url": "https://example.org", + "filter": false + } + ] +} +``` + +Set `filter` to an object listing advertised list names that should be skipped from this repository. + +```json +{ + "repositories": [ + { + "type": "composer", + "url": "https://example.org", + "filter": { + "untrusted-list": false + } + } + ] +} +``` + +The repo-level `filter` only narrows what this repository contributes; it cannot enable a list that is not +configured globally under [`config.policy`](06-config.md#policy). + +#### require-published-time {#require-published-time} + +Defaults to `true`. When the [cooldown policy](06-config.md#cooldown) is active, Composer errors +out and exits if a version from this repository carries no `published-time`, as the policy then +cannot tell whether the version is new or old. Set it to `false` for repositories that cannot provide +publication times, such as Satis-generated ones, to fall back to the `time` field of each package's +`composer.json`. That field is set by the package author, so the protection is weaker. + +```json +{ + "repositories": [ + { + "type": "composer", + "url": "https://packages.example.org", + "require-published-time": false + } + ] +} +``` + +### VCS {#vcs} + +VCS stands for version control system. This includes versioning systems like +git, svn, fossil or hg. Composer has a repository type for installing packages +from these systems. + +#### Loading a package from a VCS repository {#loading-a-package-from-a-vcs-repository} + +There are a few use cases for this. The most common one is maintaining your +own fork of a third party library. If you are using a certain library for your +project, and you decide to change something in the library, you will want your +project to use the patched version. If the library is on GitHub (this is the +case most of the time), you can fork it there and push your changes to +your fork. After that you update the project's `composer.json`. All you have +to do is add your fork as a repository and update the version constraint to +point to your custom branch. In `composer.json` only, you should prefix your +custom branch name with `"dev-"` (without making it part of the actual branch +name). For version constraint naming conventions see +[Libraries](02-libraries.md) for more information. + +Example assuming you patched monolog to fix a bug in the `bugfix` branch: + +```json +{ + "repositories": [ + { + "type": "vcs", + "url": "https://github.com/igorw/monolog" + } + ], + "require": { + "monolog/monolog": "dev-bugfix" + } +} +``` + +When you run `php composer.phar update`, you should get your modified version +of `monolog/monolog` instead of the one from packagist. + +Note that you should not rename the package unless you really intend to fork +it in the long term, and completely move away from the original package. +Composer will correctly pick your package over the original one since the +custom repository has priority over packagist. If you want to rename the +package, you should do so in the default (often master) branch and not in a +feature branch, since the package name is taken from the default branch. + +Also note that the override will not work if you change the `name` property +in your forked repository's `composer.json` file as this needs to match the +original for the override to work. + +If other dependencies rely on the package you forked, it is possible to +inline-alias it so that it matches a constraint that it otherwise would not. +For more information [see the aliases article](articles/aliases.md). + +#### Using private repositories {#using-private-repositories} + +Exactly the same solution allows you to work with your private repositories at +GitHub and Bitbucket: + +```json +{ + "repositories": [ + { + "type": "vcs", + "url": "git@ssh.bitbucket.org:vendor/my-private-repo.git" + } + ], + "require": { + "vendor/my-private-repo": "dev-master" + } +} +``` + +The only requirement is the installation of SSH keys for a git client. + +#### Git alternatives {#git-alternatives} + +Git is not the only version control system supported by the VCS repository. +The following are supported: + +* **Git:** [git-scm.com](https://git-scm.com) +* **Subversion:** [subversion.apache.org](https://subversion.apache.org) +* **Mercurial:** [mercurial-scm.org](https://www.mercurial-scm.org) +* **Fossil**: [fossil-scm.org](https://www.fossil-scm.org/) + +To get packages from these systems you need to have their respective clients +installed. That can be inconvenient. And for this reason there is special +support for GitHub and Bitbucket that use the APIs provided by these sites, to +fetch the packages without having to install the version control system. The +VCS repository provides `dist`s for them that fetch the packages as zips. + +* **GitHub:** [github.com](https://github.com) (Git) +* **Bitbucket:** [bitbucket.org](https://bitbucket.org) (Git) + +The VCS driver to be used is detected automatically based on the URL. However, +should you need to specify one for whatever reason, you can use `bitbucket`, +`github`, `gitlab`, `perforce`, `fossil`, `git`, `svn` or `hg` +as the repository type instead of `vcs`. + +If you set the `no-api` key to `true` on a github repository it will clone the +repository as it would with any other git repository instead of using the +GitHub API. But unlike using the `git` driver directly, Composer will still +attempt to use github's zip files. + +Please note: +* **To let Composer choose which driver to use** the repository type needs to be defined as "vcs" +* **If you already used a private repository**, this means Composer should have cloned it in cache. If you want to install the same package with drivers, remember to launch the command `composer clearcache` followed by the command `composer update` to update Composer cache and install the package from dist. +* VCS driver `git-bitbucket` is deprecated in favor of `bitbucket` + +#### Restricting the loaded branches {#restricting-the-loaded-branches} + +Repositories with a large number of branches can be slow to load, as the +`composer.json` of every branch has to be read. You can restrict which +branches are loaded with the `only-branches` key, which takes a list of branch +names that may contain `*` wildcards. The default branch is always loaded, +so an empty list loads only the default branch. + +```json +{ + "repositories": [ + { + "type": "vcs", + "url": "https://github.com/symfony/symfony", + "only-branches": ["7.4", "8.*"] + } + ] +} +``` + +The `exclude-branches` key does the opposite and skips the branches matching +its patterns, which lets you leave out bot-managed or otherwise short-lived +branches. Both keys can be combined, in which case a branch is loaded only if +it matches `only-branches` and does not match `exclude-branches`. + +```json +{ + "repositories": [ + { + "type": "vcs", + "url": "https://github.com/acme/foo", + "exclude-branches": ["dependabot/*", "renovate/*", "gh-pages"] + } + ] +} +``` + +Patterns are matched case-sensitively against the branch names as they appear +in the repository (e.g. `7.4`, not `7.4.x-dev`). Tags are not affected by these +options. + +> **Note:** For Mercurial and Perforce repositories the default branch is not +> detected and thus not protected by these options, so make sure it is included +> in `only-branches` (e.g. `default` for Mercurial, `master` for Perforce) and +> not matched by `exclude-branches`, or it will be skipped. + +#### Bitbucket Driver Configuration {#bitbucket-driver-configuration} + +> **Note that the repository endpoint for Bitbucket needs to be https rather than git.** + +After setting up your bitbucket repository, you will also need to +[set up authentication](articles/authentication-for-private-packages.md#bitbucket-oauth). + +#### Subversion Options {#subversion-options} + +Since Subversion has no native concept of branches and tags, Composer assumes +by default that code is located in `$url/trunk`, `$url/branches` and +`$url/tags`. If your repository has a different layout you can change those +values. For example if you used capitalized names you could configure the +repository like this: + +```json +{ + "repositories": [ + { + "type": "vcs", + "url": "http://svn.example.org/projectA/", + "trunk-path": "Trunk", + "branches-path": "Branches", + "tags-path": "Tags" + } + ] +} +``` + +If you have no branches or tags directory you can disable them entirely by +setting the `branches-path` or `tags-path` to `false`. + +If the package is in a subdirectory, e.g. `/trunk/foo/bar/composer.json` and +`/tags/1.0/foo/bar/composer.json`, then you can make Composer access it by +setting the `"package-path"` option to the sub-directory, in this example it +would be `"package-path": "foo/bar/"`. + +If you have a private Subversion repository you can save credentials in the +http-basic section of your config (See [Config](06-config.md#http-basic)): + +```json +{ + "http-basic": { + "svn.example.org": { + "username": "username", + "password": "password" + } + } +} +``` + +If your Subversion client is configured to store credentials by default these +credentials will be saved for the current user and existing saved credentials +for this server will be overwritten. To change this behavior by setting the +`"svn-cache-credentials"` option in your repository configuration: + +```json +{ + "repositories": [ + { + "type": "vcs", + "url": "http://svn.example.org/projectA/", + "svn-cache-credentials": false + } + ] +} +``` + +### Path {#path} + +The `path` repository allows you to depend on a local directory, either +absolute or relative. This can be especially useful when dealing with +monolithic repositories. + +For instance, if you have the following directory structure in your repository: +```text +... +├── apps +│ └── my-app +│ └── composer.json +├── packages +│ └── my-package +│ └── composer.json +... +``` + +Then, to add the package `my/package` as a dependency, in your +`apps/my-app/composer.json` file, you can use the following configuration: + +```json +{ + "repositories": [ + { + "type": "path", + "url": "../../packages/my-package" + } + ], + "require": { + "my/package": "*" + } +} +``` + +If the package is a local VCS repository, the version may be inferred by +the branch or tag that is currently checked out. Otherwise, the version should +be explicitly defined in the package's `composer.json` file. If the version +cannot be resolved by these means, it is assumed to be `dev-master`. + +When the version cannot be inferred from the local VCS repository, or when you +want to override the version, you can use the `versions` option when declaring +the repository: + +```json +{ + "repositories": [ + { + "type": "path", + "url": "../../packages/my-package", + "options": { + "versions": { + "my/package": "4.2-dev" + } + } + } + ] +} +``` + +The local package will be symlinked if possible, in which case the output in +the console will read `Symlinking from ../../packages/my-package`. If symlinking +is _not_ possible the package will be copied. In that case, the console will +output `Mirrored from ../../packages/my-package`. + +Instead of default fallback strategy you can force to use symlink with +`"symlink": true` or mirroring with `"symlink": false` option. Forcing +mirroring can be useful when deploying or generating package from a +monolithic repository. + +> **Note:** On Windows, directory symlinks are implemented using NTFS junctions +> because they can be created by non-admin users. Mirroring will always be used +> on versions below Windows 7 or if `proc_open` has been disabled. + +```json +{ + "repositories": [ + { + "type": "path", + "url": "../../packages/*", + "options": { + "symlink": false + } + } + ] +} +``` + +Leading tildes are expanded to the current user's home folder, and environment +variables are parsed in both Windows and Linux/Mac notations. For example +`~/git/mypackage` will automatically load the mypackage clone from +`/home//git/mypackage`, equivalent to `$HOME/git/mypackage` or +`%USERPROFILE%/git/mypackage`. + +> **Note:** Repository paths can also contain wildcards like `*` and `?`. +> For details, see the [PHP glob function](https://php.net/glob). + +You can configure the way the package's dist reference (which appears in +the composer.lock file) is built. + +The following modes exist: +- `none` - reference will be always null. This can help reduce lock file conflicts + in the lock file but reduces clarity as to when the last update happened and whether + the package is in the latest state. +- `config` - reference is built based on a hash of the package's composer.json and repo config +- `auto` (used by default) - reference is built basing on the hash like with `config`, but if + the package folder contains a git repository, the HEAD commit's hash is used as reference instead. + +```json +{ + "repositories": [ + { + "type": "path", + "url": "../../packages/*", + "options": { + "reference": "config" + } + } + ] +} +``` + +### Package {#package-1} + +If you want to use a project that does not support Composer through any of the +means above, you still can define the package yourself by using a `package` +repository. + +Basically, you define the same information that is included in the `composer` +repository's `packages.json`, but only for a single package. Again, the +minimum required fields are `name`, `version`, and either of `dist` or +`source`. + +Here is an example for the smarty template engine: + +```json +{ + "repositories": [ + { + "type": "package", + "package": { + "name": "smarty/smarty", + "version": "3.1.7", + "dist": { + "url": "https://www.smarty.net/files/Smarty-3.1.7.zip", + "type": "zip" + }, + "source": { + "url": "http://smarty-php.googlecode.com/svn/", + "type": "svn", + "reference": "tags/Smarty_3_1_7/distribution/" + }, + "autoload": { + "classmap": ["libs/"] + } + } + } + ], + "require": { + "smarty/smarty": "3.1.*" + } +} +``` + +Typically, you would leave the source part off, as you don't really need it. + +If a source key is included, the reference field should be a reference to the version that will be installed. +Where the type field is `git`, this will the be the commit id, branch or tag name. + +> **Note**: It is not recommended to use a git branch name for the reference field. While this is valid since it is supported by `git checkout`, +> branch names are mutable so cannot be locked. + +Where the type field is `svn`, the reference field should contain the reference that gets appended to the URL when running `svn co`. + +> **Note**: This repository type has a few limitations and should be avoided +> whenever possible: +> +> - Composer will not update the package unless you change the `version` field. +> - Composer will not update the commit references, so if you use `master` as +> reference you will have to delete the package to force an update, and will +> have to deal with an unstable lock file. + +The `"package"` key in a `package` repository may be set to an array to define multiple versions of a package: + +```json +{ + "repositories": [ + { + "type": "package", + "package": [ + { + "name": "foo/bar", + "version": "1.0.0", + ... + }, + { + "name": "foo/bar", + "version": "2.0.0", + ... + } + ] + } + ] +} +``` + +### Artifact {#artifact} + +There are some cases, when there is no ability to have one of the previously +mentioned repository types online, even the VCS one. A typical example could be +cross-organisation library exchange through build artifacts. Of course, most +of the time these are private. To use these archives as-is, one can use a +repository of type `artifact` with a folder containing ZIP or TAR archives of +those private packages: + +```json +{ + "repositories": [ + { + "type": "artifact", + "url": "path/to/directory/with/zips/" + } + ], + "require": { + "private-vendor-one/core": "15.6.2", + "private-vendor-two/connectivity": "*", + "acme-corp/parser": "10.3.5" + } +} +``` + +Each zip artifact is a ZIP archive with `composer.json` in root folder: + +```shell +unzip -l acme-corp-parser-10.3.5.zip +``` +```text +composer.json +... +``` + +If there are two archives with different versions of a package, they are both +imported. When an archive with a newer version is added in the artifact folder +and you run `update`, that version will be imported as well and Composer will +update to the latest version. + +## Hosting your own {#hosting-your-own} + +While you will probably want to put your packages on packagist most of the +time, there are some use cases for hosting your own repository. + +* **Private company packages:** If you are part of a company that uses Composer + for their packages internally, you might want to keep those packages private. + +* **Separate ecosystem:** If you have a project which has its own ecosystem, + and the packages aren't really reusable by the greater PHP community, you + might want to keep them separate to packagist. An example of this would be + WordPress plugins. + +For hosting your own packages, a native `composer` type of repository is +recommended, which provides the best performance. + +There are a few tools that can help you create a `composer` repository. + +### Private Packagist {#private-packagist} + +[Private Packagist](https://packagist.com/?utm_source=getcomposer.org&utm_medium=docs&utm_campaign=repositories) is a hosted or self-hosted +application providing private package hosting as well as mirroring of +GitHub, Packagist.org and other package repositories. + +Check out [Packagist.com](https://packagist.com/?utm_source=getcomposer.org&utm_medium=docs&utm_campaign=repositoriesmore) for more information. + +### Satis {#satis} + +Satis is a static `composer` repository generator. It is a bit like an ultra- +lightweight, static file-based version of packagist. + +You give it a `composer.json` containing repositories, typically VCS and +package repository definitions. It will fetch all the packages that are +`require`d and dump a `packages.json` that is your `composer` repository. + +Check the [Satis documentation](https://composer.github.io/satis/) for more +information. + +## Disabling Packagist.org {#disabling-packagistorg} + +You can disable the default Packagist.org repository by adding this to your +`composer.json`: + +```json +{ + "repositories": [ + { + "packagist.org": false + } + ] +} +``` + +You can disable Packagist.org globally by using the global config flag: + +```shell +php composer.phar config -g repo.packagist.org false +``` + +← [Schema](04-schema.md) | [Config](06-config.md) → diff --git a/src/06-config.md b/src/06-config.md new file mode 100644 index 0000000..f1d1210 --- /dev/null +++ b/src/06-config.md @@ -0,0 +1,1467 @@ +# Config {#config} + +This chapter will describe the `config` section of the `composer.json` +[schema](04-schema.md). + +## process-timeout {#process-timeout} + +The timeout in seconds for process executions, defaults to 300 (5mins). +The duration processes like `git clone`s can run before +Composer assumes they died out. You may need to make this higher if you have a +slow connection or huge vendors. + +Example: + +```json +{ + "config": { + "process-timeout": 900 + } +} +``` + +### Disabling timeouts for an individual script command {#disabling-timeouts-for-an-individual-script-command} + +To disable the process timeout on a custom command under `scripts`, a static +helper is available: + +```json +{ + "scripts": { + "test": [ + "Composer\\Config::disableProcessTimeout", + "phpunit" + ] + } +} +``` + +## allow-plugins {#allow-plugins} + +Defaults to `{}` which does not allow any plugins to be loaded. + +As of Composer 2.2.0, the `allow-plugins` option adds a layer of security +allowing you to restrict which Composer plugins are able to execute code during +a Composer run. + +When a new plugin is first activated, which is not yet listed in the config option, +Composer will print a warning. If you run Composer interactively it will +prompt you to decide if you want to execute the plugin or not. + +Use this setting to allow only packages you trust to execute code. Set it to +an object with package name patterns as keys. The values are **true** to allow +and **false** to disallow while suppressing further warnings and prompts. + +```json +{ + "config": { + "allow-plugins": { + "third-party/required-plugin": true, + "my-organization/*": true, + "unnecessary/plugin": false + } + } +} +``` + +You can also set the config option itself to `false` to disallow all plugins, or `true` to allow all plugins to run (NOT recommended). For example: + +```json +{ + "config": { + "allow-plugins": false + } +} +``` + +## use-include-path {#use-include-path} + +Defaults to `false`. If `true`, the Composer autoloader will also look for classes +in the PHP include path. + +## preferred-install {#preferred-install} + +Defaults to `dist` and can be any of `source`, `dist` or `auto`. This option +allows you to set the install method Composer will prefer to use. Can +optionally be an object with package name patterns for keys for more granular install preferences. + +```json +{ + "config": { + "preferred-install": { + "my-organization/stable-package": "dist", + "my-organization/*": "source", + "partner-organization/*": "auto", + "*": "dist" + } + } +} +``` + +- `source` means Composer will install packages from their `source` if there + is one. This is typically a git clone or equivalent checkout of the version + control system the package uses. This is useful if you want to make a bugfix + to a project and get a local git clone of the dependency directly. +- `auto` is the legacy behavior where Composer uses `source` automatically + for dev versions, and `dist` otherwise. +- `dist` (the default as of Composer 2.1) means Composer installs from `dist`, + where possible. This is typically a zip file download, which is faster than + cloning the entire repository. + +> **Note:** Order matters. More specific patterns should be earlier than +> more relaxed patterns. When mixing the string notation with the hash +> configuration in global and package configurations the string notation +> is translated to a `*` package pattern. + +> **Tip:** If you want a source checkout for some packages so you can make +> local edits, but only on your own machine (not in CI), prefer configuring +> `preferred-install` globally rather than committing it to the project. For +> example: +> +> ``` +> composer config --global preferred-install.my-vendor/* source +> ``` +> +> CI then keeps installing from `dist` by default, while your dev machine +> always pulls those packages from source. This avoids relying on a source +> install failure to fall back to dist, and saves CI from attempting a clone +> first, which keep the output leaner and your CI faster. + +## source-fallback {#source-fallback} + +> **Deprecated:** This option is deprecated and will be removed in Composer 2.11. +> Do not set it unless you absolutely need to. It exists as a temporary opt-in +> while we disable the dist → source fallback for security reasons (silently +> switching from a dist to a less-trusted or manipulated source checkout has +> security implications). If you have a legitimate use case for re-enabling +> the dist → source fallback and do not want us to remove it in 2.11, please +> open an issue at https://github.com/composer/composer/issues to let us know. + +Defaults to `false`. When set to `true`, a failed **dist** install will fall +back to a **source** checkout. This option only governs the dist → source +direction; falling back from a failed source checkout to the dist artifact is +always allowed regardless of this setting. + +```json +{ + "config": { + "source-fallback": true + } +} +``` + +> **Note:** With this option at its default (`false`) and a dist download +> failing, Composer throws an error immediately instead of trying a source +> checkout. Make sure your preferred installation source (`preferred-install`) +> is correctly configured. + +## policy {#policy} + +Unified dependency policy configuration. Controls Composer behavior for dependencies with security +advisories, flagged as malware, abandoned packages, and custom dependency policies. Audit reports +can be generated with `composer audit`; blocking prevents insecure or otherwise flagged package +versions from being installed during `composer update`, `require`, or `remove`. The [malware](#block-scope) +policy and [custom dependency policies](#block-scope-1) can additionally block during a +`composer install` via their `block-scope` setting. + +Set to `false` to disable all dependency policy enforcement: + +```json +{ + "config": { + "policy": false + } +} +``` + +This disables auditing as well: nothing is checked during `install`/`update`, and `composer audit` +only prints a warning that dependency policies are disabled and exits with a zero code. The +[`COMPOSER_POLICY`](03-cli.md#composer_policy) env var set to `0` has the same effect. + +> **Migrating from `config.audit`?** See +> [How `config.audit` interacts with `config.policy`](#how-configaudit-interacts-with-configpolicy) +> for how the legacy keys are still honored as a fallback while you migrate. + +### advisories {#advisories} + +Configuration for packages affected by security advisories. + +#### block {#block} + +Defaults to `true`. When `true`, package versions with active security advisories are blocked and +cannot be installed during `update`/`require`/`remove` unless the advisory or package is ignored. + +```json +{ + "config": { + "policy": { + "advisories": { + "block": false + } + } + } +} +``` + +Advisories are matched against version numbers, so `dev-*` versions from branch names like `dev-main` are never +blocked, even when required through an inline alias like `dev-main as 1.0.0`. Numeric branch names, which are turned into numbered dev versions like +`3.3.x-dev`, and numeric branch aliases are matched normally. For example if `dev-main` has a branch alias +of `3.3.x-dev`, an advisory affecting `<3.5` blocks requiring `^3.3`, but requiring `dev-main` +explicitly still works. The audit still reports it though, as the installed code matches the +advisory through its branch alias. + +For advisory authors, this means an advisory cannot target a named branch with a `dev-*` version directly, not even with +`*` listed as the affected versions. To cover one, the affected versions must include its branch alias, like +`3.3.x-dev` above. + +#### audit {#audit} + +Defaults to `fail`. How `composer audit` treats packages with security advisories. + +- `ignore` — advisories are not checked nor reported +- `report` — advisories are reported but do not cause a non-zero exit code +- `fail` — advisories cause `composer audit` to exit with a non-zero code + +```json +{ + "config": { + "policy": { + "advisories": { + "audit": "report" + } + } + } +} +``` + +Setting `policy.advisories` or the whole `policy` config to `false` implies `ignore`. + +#### ignore-id {#ignore-id} + +A list of advisory IDs (CVE, GHSA, PKSA, …) to ignore. Each entry can optionally include a reason +and scoping (`on-block`/`on-audit`) to limit where the ignore applies. + +##### Simple list: {#simple-list} + +```json +{ + "config": { + "policy": { + "advisories": { + "ignore-id": ["CVE-1234", "GHSA-xx"] + } + } + } +} +``` + +##### With reasons: {#with-reasons} + +```json +{ + "config": { + "policy": { + "advisories": { + "ignore-id": { + "CVE-1234": "Not affected.", + "GHSA-xx": "Patch applied." + } + } + } + } +} +``` + +##### With scoping: {#with-scoping} + +`on-block: false` means the advisory no longer blocks updates but is still reported in audit. +`on-audit: false` means the advisory still blocks updates but is no longer reported in audit. + +```json +{ + "config": { + "policy": { + "advisories": { + "ignore-id": { + "CVE-1234": {"on-block": false, "reason": "Patch applied, still want blocking."}, + "GHSA-xx": {"on-audit": false, "reason": "False positive, still report."} + } + } + } + } +} +``` + +#### ignore {#ignore} + +A list of package names to ignore for security advisory handling. Supports wildcards and optional +version constraints. See the [ignore format](#ignore-format) for all supported syntax variants. + +#### ignore-severity {#ignore-severity} + +A list of advisory severity levels to ignore: `low`, `medium`, `high`, `critical`. + +##### Simple list: {#simple-list-1} + +```json +{ + "config": { + "policy": { + "advisories": { + "ignore-severity": ["low", "medium"] + } + } + } +} +``` + +##### With scoping: {#with-scoping-1} + +```json +{ + "config": { + "policy": { + "advisories": { + "ignore-severity": { + "low": {"on-block": false}, + "medium": {"on-audit": false, "reason": "Handled via WAF"} + } + } + } + } +} +``` + +### abandoned {#abandoned} + +Configuration for abandoned packages. + +#### block {#block-1} + +Defaults to `false`. When `true`, abandoned packages cannot be installed during +`update`/`require`/`remove`. + +```json +{ + "config": { + "policy": { + "abandoned": { + "block": true + } + } + } +} +``` + +#### audit {#audit-1} + +Defaults to `fail`. How `composer audit` treats abandoned packages. + +- `ignore` — abandoned packages are not reported +- `report` — abandoned packages are reported but do not cause a non-zero exit code +- `fail` — abandoned packages cause `composer audit` to exit with a non-zero code + +```json +{ + "config": { + "policy": { + "abandoned": { + "audit": "report" + } + } + } +} +``` + +Can be overridden via the [`COMPOSER_AUDIT_ABANDONED`](03-cli.md#composer_audit_abandoned) +environment variable or the [`--abandoned`](03-cli.md#audit) CLI option. + +#### ignore {#ignore-1} + +A list of package names (or patterns) to ignore for the abandoned check, regardless of their +abandoned state. See the [ignore format](#ignore-format) for all supported syntax variants. + +```json +{ + "config": { + "policy": { + "abandoned": { + "ignore": { + "acme/*": "Scheduled for replacement next quarter.", + "vendor/legacy": {"on-block": false, "reason": "Allow in updates but still report."} + } + } + } + } +} +``` + +### malware {#malware} + +Configuration for package versions flagged as containing malware. + +#### block {#block-2} + +Defaults to `true`. When `true`, package versions flagged as malware are blocked. + +#### block-scope {#block-scope} + +Defaults to `all`. Controls which commands trigger blocking: + +- `all` — block during both `update`/`require`/`remove` and `install` +- `update` — block only during `update`/`require`/`remove` +- `install` — block only during `install` + +```json +{ + "config": { + "policy": { + "malware": { + "block-scope": "update" + } + } + } +} +``` + +#### audit {#audit-2} + +Defaults to `fail`. Same values as [advisories.audit](#audit). + +#### ignore {#ignore-2} + +Package names to exclude from malware checks. See the [ignore format](#ignore-format) for all +supported syntax variants. + +#### ignore-source {#ignore-source} + +A list of source names to exclude from malware checks. + +```json +{ + "config": { + "policy": { + "malware": { + "ignore-source": ["aikido"] + } + } + } +} +``` + +### cooldown {#cooldown} + +Withholds newly released package versions for a configurable period to reduce exposure to supply +chain attacks. By introducing a waiting period before a new version becomes installable, you reduce +the risk of pulling in a release that was compromised shortly after publication — many malicious +versions are identified and removed within hours or days of being published. + +The cooldown policy applies when resolving dependencies during `composer update`/`require`. `composer require`, +`init` and `create-project` also skip withheld versions when picking a version constraint or the +project version, so that the constraint they write can be resolved. `composer outdated` and +`composer show --latest` report the newest version the policy allows installing, and mark a newer +release that is still in the cooldown period. + +The cooldown period is measured from the publication time reported by the package repository +(`published-time`, which Packagist.org provides), as package authors cannot influence it. Composer +repositories must provide it for every version Composer considers while a cooldown period is +configured, otherwise the command errors out and names the package that lacks it. Set +[`require-published-time`](05-repositories.md#require-published-time) to `false` on a repository that +cannot provide it to fall back to the `time` field of each package's `composer.json`. Packages from +VCS, path or artifact repositories always use that fallback, and Composer says so when it withholds +such a version. + +#### period {#period} + +A duration string in the form `" "` where the unit is one of `second`, `minute`, +`hour`, `day` or `week` (lowercase, singular or plural — e.g. `"7 days"`, `"24 hours"`, `"30 minutes"`, +`"1 week"`), an integer number of seconds, or `null` to disable. Relative phrases such as +`"tomorrow"` or `"next week"` are rejected. Defaults to `null` (no cooldown period). The policy only +takes effect once a period is set. + +```json +{ + "config": { + "policy": { + "cooldown": { + "period": "7 days" + } + } + } +} +``` + +The following are never withheld by the cooldown policy: + +- **Dev versions** (e.g. `dev-main`) — they represent mutable branch state +- **Locked packages that are not being updated** — a partial update (`composer update vendor/pkg`, + `composer require`) keeps the locked version of every other package. A full `composer update` + re-evaluates all versions, so a locked version still inside the cooldown period will be replaced by + an older release, or the update fails if no other version satisfies the requirements +- **Platform packages** — PHP, extensions and other platform requirements +- **Packages without any publication date** — for example a version defined inline in a + [`package` repository](05-repositories.md#package-1) without a `time` field, or a path repository + whose `composer.json` has none. Composer cannot tell how old such a version is and lets it through + rather than blocking it forever. A Composer repository that omits `published-time` errors out + instead, see above + +#### block {#block-3} + +Defaults to `true`. When `true`, versions still within the cooldown period cannot be installed during +`update`/`require`. Set to `false` to skip blocking for a cooldown period entirely. + +#### ignore {#ignore-3} + +Packages listed under `ignore` bypass the cooldown policy. This uses the same +[ignore format](#ignore-format) as the other policies, so each entry may carry a reason and an +optional version constraint, and package names support wildcards (e.g. `vendor/*`). + +```json +{ + "config": { + "policy": { + "cooldown": { + "period": "7 days", + "ignore": { + "mycompany/*": "We trust the code in our own packages", + "symfony/security-bundle": "Security fixes need to be applied immediately" + } + } + } + } +} +``` + +#### Bypassing the cooldown {#bypassing-the-cooldown} + +To bypass the cooldown for a single run, pass `--no-cooldown` to `update`, `require`, `remove` +or `create-project`. Other policies still apply, unlike with `--no-blocking`. + +#### Environment variables {#environment-variables} + +`COMPOSER_POLICY_COOLDOWN_PERIOD` overrides the configured `period` (the `ignore` rules from +`composer.json` are still respected), and `COMPOSER_POLICY_COOLDOWN_BLOCK` overrides `block`. +A non-zero `COMPOSER_POLICY_COOLDOWN_PERIOD` also enables the cooldown policy when `cooldown` is set to +`false`, but is ignored when the whole `policy` config is set to `false`: + +```bash +# Disable the cooldown policy temporarily +COMPOSER_POLICY_COOLDOWN_PERIOD=0 composer update + +# Set a specific duration +COMPOSER_POLICY_COOLDOWN_PERIOD="24 hours" composer update +``` + +### ignore-unreachable {#ignore-unreachable} + +Defaults to `["update", "install"]`. When the operation is listed here, repositories and policies with URL sources that are unreachable or +return a non-200 response are silently ignored rather than causing an error. Useful in environments where not all package +repositories are accessible. + +Set to `true` to ignore unreachable repositories and custom dependency policy sources for all operations and to `false` to ignore them +for no operations. Possible values are: `audit`, `install`, and `update`. + +```json +{ + "config": { + "policy": { + "ignore-unreachable": ["install", "update", "audit"] + } + } +} +``` + +### Custom dependency policies {#custom-dependency-policies} + +In addition to the built-in `advisories`, `malware`, and `abandoned` dependency policies, you can +define named custom dependency policies. A custom dependency policy needs its own set of package +versions, supplied by one or more sources (advertised by package repositories or set explicitly here). + +```json +{ + "config": { + "policy": { + "my-policy": { + "block": true, + "audit": "fail", + "sources": [ + {"type": "url", "url": "https://example.org/my-bad-packages-list.json"} + ], + "ignore": { + "vendor/package": "Assessed and accepted." + } + } + } + } +} +``` + +Source URLs must use `https://`. `http://` and other schemes are rejected both at +schema validation time (`composer validate`) and at config load time. + +A `url` source is queried the same way as a repository's [`api-url`](05-repositories.md#filter): +Composer sends a POST request with the relevant package PURLs and the custom dependency policy name, +and expects the matching filter entries back. The request is not cached client-side because each +request body is different. Implementors should be aware that large amounts (a few hundred would be +normal) of package names can be submitted. The submitted PURLs are the full set of candidate package +names gathered *before* dependency resolution, so they identify packages by name only (no version +constraints yet), and not every submitted package will necessarily be selected by the resolver +afterwards. + +The endpoint receives a JSON body of the form: + +```json +{ + "packages": ["pkg://composer/vendor/package", "pkg://composer/other/package"], + "lists": ["my-policy"] +} +``` + +The request body reuses the wire format of a Composer repository's [`api-url`](05-repositories.md#filter). +There, a single endpoint can serve several named filter lists (for example `malware` and +`typosquatting`), so `lists` is an array naming which of them Composer wants, and the response is a +`filter` object keyed by list name. A custom dependency policy has no such multiplexing: its `url` +source exists only to serve that one policy. Composer therefore always sends the policy name as the +sole element of `lists` (so the array carries exactly one value here), and the endpoint should treat +any list name it receives as referring to that policy. + +The endpoint must return JSON of the form: + +```json +{ + "filter": [ + { + "package": "vendor/package", + "constraint": ">=1.0.0,<1.2.0", + "url": "https://example.org/filters/123", + "reason": "Assessed and rejected.", + "id": "PKFE-xxxx-xxxx-xxxx" + } + ] +} +``` + +Because the `url` source only ever serves this one policy, the response drops the per-list keying used +by a repository's `api-url` (where `filter` is an object mapping each requested list name to its +entries). Here `filter` is instead a flat array of entries that all belong to this policy. The +`package` and `constraint` fields are required on each entry; `url`, `reason`, and `id` are optional. +Entries whose package does not match a package in the request are ignored. + +Custom dependency policy names must not conflict with the reserved names `advisories`, `malware`, or +`abandoned`, and must not start with `ignore` (the only `ignore`-prefixed key allowed at this +level is the documented `ignore-unreachable` setting). + +The following names are reserved for future built-in dependency policies and cannot be used as custom +dependency policy names: `package`, `packages`, `license`, `licence`, `licenses`, `licences`, `support`, +`maintenance`, `security`, `minimum-release-age`. Composer rejects any colliding key both at +schema validation time (`composer validate`) and at config load time. + +#### block-scope {#block-scope-1} + +Defaults to `update`. Controls which commands trigger blocking for this custom policy: + +- `all` — block during both `update`/`require`/`remove` and `install` +- `update` — block only during `update`/`require`/`remove` +- `install` — block only during `install` + +Unlike the [`malware`](#malware) policy (which defaults to `all`), custom dependency policies +default to `update`, so they only block during `composer install` when you opt in with +`block-scope` set to `install` or `all`. This is useful for enforcing a policy in environments +where only `composer install` runs, such as CI or deployment. + +```json +{ + "config": { + "policy": { + "my-policy": { + "block-scope": "all" + } + } + } +} +``` + +### ignore format {#ignore-format} + +The `ignore` key on every dependency policy accepts package name patterns with optional version constraints +and per-rule scoping. All formats may be mixed in the same map. + +##### Simple list (ignore all versions): {#simple-list-ignore-all-versions} + +```json +{ + "config": { + "policy": { + "": { + "ignore": ["vendor/package", "acme/*"] + } + } + } +} +``` + +##### With reason: {#with-reason} + +```json +{ + "config": { + "policy": { + "": { + "ignore": { + "vendor/package": "Assessed, no risk." + } + } + } + } +} +``` + +##### With version constraint: {#with-version-constraint} + +```json +{ + "config": { + "policy": { + "": { + "ignore": { + "vendor/package": {"constraint": "^2.0", "reason": "Only v2 is affected."} + } + } + } + } +} +``` + +##### With scoping: {#with-scoping-2} + +`on-block: false` ignores only for audit (the package is still blocked during updates as on-block ignoring is disabled). +`on-audit: false` ignores only for blocking (the package is still reported in audit). + +```json +{ + "config": { + "policy": { + "": { + "ignore": { + "vendor/package": {"on-audit": false, "reason": "Workaround applied; keep reporting."} + } + } + } + } +} +``` + +##### Multiple rules for the same package: {#multiple-rules-for-the-same-package} + +```json +{ + "config": { + "policy": { + "": { + "ignore": { + "vendor/package": [ + {"constraint": "^1.0", "on-audit": false}, + {"constraint": "^2.0", "reason": "v2 is patched."} + ] + } + } + } + } +} +``` + +## audit {#audit-3} + +> **Deprecated.** Use [`config.policy`](#policy) instead. All `config.audit` keys are still +> supported for backwards compatibility but will be removed in a future major version. + +Security audit and version blocking configuration options. Audit reports can be generated with `composer audit` +and short format versions are automatically reported at the end of update or require commands. Version blocking +discards package versions identified as insecure or abandoned, depending on configuration, before resolving +dependencies, ensuring they cannot be installed. + +### How `config.audit` interacts with `config.policy` {#how-configaudit-interacts-with-configpolicy} + +The legacy `config.audit` keys are only read as a fallback when the corresponding +[`config.policy`](#policy) section is **absent**. The fallback is all-or-nothing per built-in dependency policy: + +- If [`config.policy.advisories`](#advisories) is set (to any value, including `false`), + every advisories-related `audit.*` key ([`audit.block-insecure`](#block-insecure), [`audit.ignore`](#ignore-3), + [`audit.ignore-severity`](#ignore-severity-1)) is **ignored entirely** — only + [`policy.advisories.block`](#block), [`policy.advisories.ignore`](#ignore), and + [`policy.advisories.ignore-severity`](#ignore-severity) are read. Mix-and-matching, + e.g. setting `policy.advisories.block` while expecting `audit.ignore-severity` to still + apply, is not supported. Migrate all advisories-related settings together. +- If [`config.policy.abandoned`](#abandoned) is set (to any value, including `false`), + every abandoned-related `audit.*` key ([`audit.block-abandoned`](#block-abandoned), [`audit.abandoned`](#abandoned-1), + [`audit.ignore-abandoned`](#ignore-abandoned)) is **ignored entirely** — only + [`policy.abandoned.block`](#block-1), [`policy.abandoned.audit`](#audit-1), and + [`policy.abandoned.ignore`](#ignore-1) are read. +- The two built-in dependency policies are independent: configuring `policy.advisories` while leaving the + abandoned settings under `audit.*` is allowed and vice versa. +- Setting [`policy.ignore-unreachable`](#ignore-unreachable) supersedes the legacy + [`audit.ignore-unreachable`](#ignore-unreachable-1) key. + +### ignore {#ignore-4} + +> **Deprecated.** Use [`config.policy.advisories.ignore-id`](#ignore-id) for advisory IDs +> (CVE, GHSA, PKSA) and [`config.policy.advisories.ignore`](#ignore) for package names instead. +> Note: the new format uses `on-block`/`on-audit` booleans instead of `"apply": "audit|block|all"`. + +A list of advisory ids, remote ids, CVE ids or package names (not recommended) that are ignored in audit reports and/or version blocking. + +#### Simple format with reasons: {#simple-format-with-reasons} + +```json +{ + "config": { + "audit": { + "ignore": { + "CVE-1234": "The affected component is not in use.", + "GHSA-xx": "The security fix was applied as a patch.", + "PKSA-yy": "Due to mitigations in place the update can be delayed." + } + } + } +} +``` + +#### Simple format without reasons: {#simple-format-without-reasons} + +```json +{ + "config": { + "audit": { + "ignore": ["CVE-1234", "GHSA-xx", "PKSA-yy"] + } + } +} +``` + +#### Detailed format with apply scope: {#detailed-format-with-apply-scope} + +The detailed format allows you to control whether an ignore applies to audit reports only, version blocking only, or both. The `apply` field accepts: +- `audit` - Only ignore for audit reports (advisory doesn't appear in audit reports, but package is still blocked during updates) +- `block` - Only ignore for version blocking (package can be used during updates, but advisory still appears in audit reports) +- `all` - Ignore during audit reports and version blocking (default behavior) + +```json +{ + "config": { + "audit": { + "ignore": { + "CVE-1234": { + "apply": "audit", + "reason": "Not applicable to us, so don't report, but still want to make sure we don't use this version in updates." + }, + "GHSA-xx": { + "apply": "block", + "reason": "Workaround applied, can only fix next week, allow during updates but still report in audits" + }, + "PKSA-yy": { + "apply": "all", + "reason": "False report, Ignore completely in all contexts" + } + } + } + } +} +``` + +All formats can be mixed together in the same configuration. + +### abandoned {#abandoned-1} + +> **Deprecated.** Use [`config.policy.abandoned.audit`](#audit-1) instead. + +Defaults to `fail` since Composer 2.7 (defaulted to `report` in Composer 2.6 that added the option). Defines whether and how audit reports should report abandoned packages. There are three possible values: + +- `ignore` means audit reports do not consider abandoned packages at all. +- `report` means abandoned packages are reported as an error but do not cause the composer audit command return a non-zero exit code. +- `fail` means abandoned packages will cause the audit command to fail with a non-zero exit code. + +Note, that this only applies to audit reports, this setting does not impact the blocking of insecure +package versions. To configure blocking of abandoned packages, see the [`block-abandoned`](#block-abandoned) +option. + +```json +{ + "config": { + "audit": { + "abandoned": "report" + } + } +} +``` + +Since Composer 2.7, the option can be overridden via the [`COMPOSER_AUDIT_ABANDONED`](03-cli.md#composer_audit_abandoned) environment variable. + +Since Composer 2.8, the option can be overridden via the +[`--abandoned`](03-cli.md#audit) command line option, which overrides both the +config value and the environment variable. + +### ignore-abandoned {#ignore-abandoned} + +> **Deprecated.** Use [`config.policy.abandoned.ignore`](#ignore-1) instead. +> Note: the new format uses `on-block`/`on-audit` booleans instead of `"apply": "audit|block|all"`. + +A list of abandoned package names that are ignored for audit reports and/or version blocking. Allows you to select packages that you want to keep +using despite their abandoned state. + +#### Simple format with reasons: {#simple-format-with-reasons-1} + +```json +{ + "config": { + "audit": { + "ignore-abandoned": { + "acme/*": "Work scheduled for removal next month.", + "acme/package": "Transitive dependency but unreachable and not in active use within our project context." + } + } + } +} +``` + +#### Simple format without reasons: {#simple-format-without-reasons-1} + +```json +{ + "config": { + "audit": { + "ignore-abandoned": ["acme/*", "acme/package"] + } + } +} +``` + +#### Detailed format with apply scope: {#detailed-format-with-apply-scope-1} + +The detailed format allows you to control whether an ignore applies to audit reports only, version blocking only, or both. The `apply` field accepts: +- `audit` - Only ignore for audit reports (package doesn't appear in audit reports, but is still blocked during updates if [`block-abandoned`](#block-abandoned) is enabled) +- `block` - Only ignore for version blocking (package can be used during updates even if [`block-abandoned`](#block-abandoned) is enabled, but still appears in audit reports) +- `all` - Ignore for audit reports and version blocking (default behavior) + +```json +{ + "config": { + "audit": { + "ignore-abandoned": { + "acme/package": { + "apply": "block", + "reason": "Allow during updates but still report as abandoned" + }, + "vendor/*": { + "apply": "all", + "reason": "We maintain these packages internally" + } + } + } + } +} +``` + +All formats can be mixed together in the same configuration. + +### ignore-severity {#ignore-severity-1} + +> **Deprecated.** Use [`config.policy.advisories.ignore-severity`](#ignore-severity) instead. +> Note: the new format uses `on-block`/`on-audit` booleans instead of `"apply": "audit|block|all"`. + +Defaults to `[]`. A list of severity levels that are ignored for audit reports and/or version blocking. + +#### Simple format: {#simple-format} + +```json +{ + "config": { + "audit": { + "ignore-severity": ["low", "medium"] + } + } +} +``` + +#### Detailed format with apply scope: {#detailed-format-with-apply-scope-2} + +The detailed format allows you to control whether an ignore applies to audit reports only, version blocking only, or both. The `apply` field accepts: +- `audit` - Only ignore for audit reports (advisories with this severity don't appear in audit reports, but packages are still blocked during updates) +- `block` - Only ignore for version blocking (packages can be used during updates, but advisories with this severity still appear in audit reports) +- `all` - Ignore during both auditing and blocking (default behavior) + +```json +{ + "config": { + "audit": { + "ignore-severity": { + "low": { + "apply": "all" + }, + "medium": { + "apply": "block" + } + } + } + } +} +``` + +All formats can be mixed together in the same configuration. + +### ignore-unreachable {#ignore-unreachable-1} + +> **Deprecated.** Use [`config.policy.ignore-unreachable`](#ignore-unreachable) instead. + +Defaults to `false`. Should unreachable repositories be ignored during a `composer audit`. This can be helpful if you are running the command +in an environment from which not all repositories can be accessed. This setting does not apply to version blocking or audit reports generated +in other places than the `composer audit` command. + +```json +{ + "config": { + "audit": { + "ignore-unreachable": true + } + } +} +``` + +### block-insecure {#block-insecure} + +> **Deprecated.** Use [`config.policy.advisories.block`](#block) instead. + +Defaults to `true`. If `true`, any package versions affected by security advisories will be blocked and cannot be used +during a composer update/require/delete commands, unless the security advisories are ignored. If [`block-abandoned`](#block-abandoned) is +enabled, version blocking will also prevent use of abandoned packages. + +```json +{ + "config": { + "audit": { + "block-insecure": false + } + } +} +``` + +### block-abandoned {#block-abandoned} + +> **Deprecated.** Use [`config.policy.abandoned.block`](#block-1) instead. + +Defaults to `false`. If `true`, any abandoned packages cannot be used during a composer update/required/delete command. Only applies if +version blocking is not disabled by setting [`block-insecure`](#block-insecure) to false. + + +```json +{ + "config": { + "audit": { + "block-abandoned": true + } + } +} +``` + +## use-parent-dir {#use-parent-dir} + +When running Composer in a directory where there is no composer.json, if there +is one present in a directory above Composer will by default ask you whether +you want to use that directory's composer.json instead. + +If you always want to answer yes to this prompt, you can set this config value +to `true`. To never be prompted, set it to `false`. The default is `"prompt"`. + +> **Note:** This config must be set in your global user-wide config for it +> to work. Use for example `php composer.phar config --global use-parent-dir true` +> to set it. + +## store-auths {#store-auths} + +What to do after prompting for authentication, one of: `true` (always store), +`false` (do not store) and `"prompt"` (ask every time), defaults to `"prompt"`. + +## github-protocols {#github-protocols} + +Defaults to `["https", "ssh", "git"]`. A list of protocols to use when cloning +from github.com, in priority order. By default `git` is present but only if [secure-http](#secure-http) +is disabled, as the git protocol is not encrypted. If you want your origin remote +push URLs to be using https and not ssh (`git@github.com:...`), then set the protocol +list to be only `["https"]` and Composer will stop overwriting the push URL to an ssh +URL. + +## github-oauth {#github-oauth} + +A list of domain names and oauth keys. For example using `{"github.com": +"oauthtoken"}` as the value of this option will use `oauthtoken` to access +private repositories on github and to circumvent the low IP-based rate limiting +of their API. Composer may prompt for credentials when needed, but these can also be +manually set. Read more on how to get an OAuth token for GitHub and cli syntax +[here](articles/authentication-for-private-packages.md#github-oauth). + +## gitlab-domains {#gitlab-domains} + +Defaults to `["gitlab.com"]`. A list of domains of GitLab servers. +This is used if you use the `gitlab` repository type. + +## gitlab-oauth {#gitlab-oauth} + +A list of domain names and oauth keys. For example using `{"gitlab.com": +"oauthtoken"}` as the value of this option will use `oauthtoken` to access +private repositories on gitlab. Please note: If the package is not hosted at +gitlab.com the domain names must be also specified with the +[`gitlab-domains`](06-config.md#gitlab-domains) option. +Further info can also be found [here](articles/authentication-for-private-packages.md#gitlab-oauth) + +## gitlab-token {#gitlab-token} + +A list of domain names and private tokens. Private token can be either simple +string, or array with username and token. For example using `{"gitlab.com": +"privatetoken"}` as the value of this option will use `privatetoken` to access +private repositories on gitlab. Using `{"gitlab.com": {"username": "gitlabuser", + "token": "privatetoken"}}` will use both username and token for gitlab deploy +token functionality (https://docs.gitlab.com/ee/user/project/deploy_tokens/) +Using `gitlab-ci-token` as the username instead stores a +[GitLab CI job token](https://docs.gitlab.com/ci/jobs/ci_job_token/), which Composer sends as a +`JOB-TOKEN` header (downloading dist archives from `vcs` repositories that way requires GitLab +19.3 or newer), except for GitLab's Composer package registry, which only accepts job tokens via +HTTP basic auth with the `gitlab-ci-token` username, so Composer uses that there. +Please note: If the package is not hosted at +gitlab.com the domain names must be also specified with the +[`gitlab-domains`](06-config.md#gitlab-domains) option. The token must have +`api` or `read_api` scope. +Further info can also be found [here](articles/authentication-for-private-packages.md#gitlab-token) + +## gitlab-protocol {#gitlab-protocol} + +A protocol to force use of when creating a repository URL for the `source` +value of the package metadata. One of `git` or `http`. (`https` is treated +as a synonym for `http`.) Helpful when working with projects referencing +private repositories which will later be cloned in GitLab CI jobs with a +[GitLab CI_JOB_TOKEN](https://docs.gitlab.com/ee/ci/variables/predefined_variables.html#predefined-variables-reference) +using HTTP basic auth for the clone. By default, Composer will generate a git-over-SSH +URL for private repositories and HTTP(S) only for public. + +## forgejo-domains {#forgejo-domains} + +Defaults to `["codeberg.org"]`. A list of domains of Forgejo servers. +This is used if you use the `forgejo` repository type. + +## forgejo-token {#forgejo-token} + +A list of domain names and username/access-tokens to authenticate against them. For +example using `{"codeberg.org": {"username": "forgejo-user", "token": "access-token"}}` as the +value of this option will let Composer authenticate against codeberg.org. +Please note: If the package is not hosted at +codeberg.org the domain names must be also specified with the +[`forgejo-domains`](06-config.md#forgejo-domains) option. +Further info can also be found [here](articles/authentication-for-private-packages.md#forgejo-token) + + +## disable-tls {#disable-tls} + +Defaults to `false`. If set to true all HTTPS URLs will be tried with HTTP +instead and no network level encryption is performed. Enabling this is a +security risk and is NOT recommended. The better way is to enable the +php_openssl extension in php.ini. Enabling this will implicitly disable the +`secure-http` option. + +## secure-http {#secure-http} + +Defaults to `true`. If set to true only HTTPS URLs are allowed to be +downloaded via Composer. If you really absolutely need HTTP access to something +then you can disable it, but using [Let's Encrypt](https://letsencrypt.org/) to +get a free SSL certificate is generally a better alternative. + +## bitbucket-oauth {#bitbucket-oauth} + +A list of domain names and consumers. For example using `{"bitbucket.org": +{"consumer-key": "myKey", "consumer-secret": "mySecret"}}`. +Read more [here](articles/authentication-for-private-packages.md#bitbucket-oauth). + +## cafile {#cafile} + +Location of Certificate Authority file on local filesystem. In PHP 5.6+ you +should rather set this via openssl.cafile in php.ini, although PHP 5.6+ should +be able to detect your system CA file automatically. + +## capath {#capath} + +If cafile is not specified or if the certificate is not found there, the +directory pointed to by capath is searched for a suitable certificate. +capath must be a correctly hashed certificate directory. + +## http-basic {#http-basic} + +A list of domain names and username/passwords to authenticate against them. For +example using `{"example.org": {"username": "alice", "password": "foo"}}` as the +value of this option will let Composer authenticate against example.org. +More info can be found [here](articles/authentication-for-private-packages.md#http-basic). + +## bearer {#bearer} + +A list of domain names and tokens to authenticate against them. For example using +`{"example.org": "foo"}` as the value of this option will let Composer authenticate +against example.org using an `Authorization: Bearer foo` header. + +## custom-headers {#custom-headers} + +A list of domain names and HTTP headers to send to them. For example using +`{"example.org": ["API-TOKEN: foo", "X-Custom-Header: bar"]}` as the value of +this option will send both headers with every request to example.org. Each +header must be in the `Header-Name: Header-Value` format. +More info can be found [here](articles/authentication-for-private-packages.md#custom-headers). + +## client-certificate {#client-certificate} + +A list of domain names and client TLS certificates to use for them. For example +using `{"example.org": {"local_cert": "/path/to/cert.pem", "local_pk": "/path/to/key.pem", "passphrase": "foo"}}` +as the value of this option will let Composer authenticate against example.org +with that certificate. `local_cert` is required, `local_pk` and `passphrase` are +optional. More info can be found [here](articles/authentication-for-private-packages.md#client-tls-certificates). + +## platform {#platform} + +Lets you fake platform packages (PHP and extensions) so that you can emulate a +production env or define your target platform in the config. Example: `{"php": +"7.0.3", "ext-something": "4.0.3"}`. + +This will make sure that no package requiring more than PHP 7.0.3 can be installed +regardless of the actual PHP version you run locally. However it also means +the dependencies are not checked correctly anymore, if you run PHP 5.6 it will +install fine as it assumes 7.0.3, but then it will fail at runtime. This also means if +`{"php":"7.4"}` is specified; no packages will be used that define `7.4.1` as minimum. + +Therefore if you use this it is recommended, and safer, to also run the +[`check-platform-reqs`](03-cli.md#check-platform-reqs) command as part of your +deployment strategy. + +If a dependency requires some extension that you do not have installed locally +you may ignore it instead by passing `--ignore-platform-req=ext-foo` to `update`, +`install` or `require`. In the long run though you should install required +extensions as if you ignore one now and a new package you add a month later also +requires it, you may introduce issues in production unknowingly. + +If you have an extension installed locally but *not* on production, you may want +to artificially hide it from Composer using `{"ext-foo": false}`. + +## vendor-dir {#vendor-dir} + +Defaults to `vendor`. You can install dependencies into a different directory if +you want to. `$HOME` and `~` will be replaced by your home directory's path in +vendor-dir and all `*-dir` options below. + +## bin-dir {#bin-dir} + +Defaults to `vendor/bin`. If a project includes binaries, they will be symlinked +into this directory. + +## data-dir {#data-dir} + +Defaults to `C:\Users\\AppData\Roaming\Composer` on Windows, +`$XDG_DATA_HOME/composer` on unix systems that follow the XDG Base Directory +Specifications, and `$COMPOSER_HOME` on other unix systems. Right now it is only +used for storing past composer.phar files to be able to roll back to older +versions. See also [COMPOSER_HOME](03-cli.md#composer_home). + +Because `self-update --rollback` restores a previously stored `composer.phar` from +this directory, it must be writable only by the user that owns the Composer +installation and should be treated as a trusted location. A directory writable by +other users would let them plant a malicious phar that a privileged rollback would +install. + +## cache-dir {#cache-dir} + +Defaults to `C:\Users\\AppData\Local\Composer` on Windows, +`/Users//Library/Caches/composer` on macOS, `$XDG_CACHE_HOME/composer` +on unix systems that follow the XDG Base Directory Specifications, and +`$COMPOSER_HOME/cache` on other unix systems. Stores all the caches used by +Composer. See also [COMPOSER_HOME](03-cli.md#composer_home), and +[Caching Composer dependencies](articles/caching.md) for caching it in CI. + +## cache-files-dir {#cache-files-dir} + +Defaults to `$cache-dir/files`. Stores the zip archives of packages. + +## cache-repo-dir {#cache-repo-dir} + +Defaults to `$cache-dir/repo`. Stores repository metadata for the `composer` +type and the VCS repos of type `svn`, `fossil`, `github` and `bitbucket`. + +## cache-vcs-dir {#cache-vcs-dir} + +Defaults to `$cache-dir/vcs`. Stores VCS clones for loading VCS repository +metadata for the `git`/`hg` types and to speed up installs. + +## cache-ttl {#cache-ttl} + +Defaults to `15552000` (6 months). The time-to-live (in seconds) applied to the +repo and vcs caches when running `composer clear-cache --gc`, which is the only +time those are garbage collected. Entries that have not been used for this long +are removed. It is also used for the files cache unless +[cache-files-ttl](#cache-files-ttl) is set. + +Setting it to 0 makes `composer clear-cache --gc` empty the repo and vcs caches, +and disables the files cache unless [cache-files-ttl](#cache-files-ttl) is set. + +## cache-files-ttl {#cache-files-ttl} + +Defaults to the value of [cache-ttl](#cache-ttl), so `15552000` (6 months) +unless that is changed. Composer caches all dist (zip, tar, ...) packages that +it downloads. Those are purged after being unused for that long. This option +allows you to tweak this duration (in seconds) or disable it completely by +setting it to 0. + +## cache-files-maxsize {#cache-files-maxsize} + +Defaults to `300MiB`. Composer caches all dist (zip, tar, ...) packages that it +downloads. When the garbage collection is periodically ran, this is the maximum +size the cache will be able to use. Older (less used) files will be removed +first until the cache fits. + +## cache-read-only {#cache-read-only} + +Defaults to `false`. Whether to use the Composer cache in read-only mode. + +## bin-compat {#bin-compat} + +Defaults to `auto`. Determines the compatibility of the binaries to be installed. +If it is `auto` then Composer only installs .bat proxy files when on Windows or WSL. If +set to `full` then both .bat files for Windows and scripts for Unix-based +operating systems will be installed for each binary. This is mainly useful if you +run Composer inside a linux VM but still want the `.bat` proxies available for use +in the Windows host OS. If set to `proxy` Composer will only create bash/Unix-style +proxy files and no .bat files even on Windows/WSL. + +## prepend-autoloader {#prepend-autoloader} + +Defaults to `true`. If `false`, the Composer autoloader will not be prepended to +existing autoloaders. This is sometimes required to fix interoperability issues +with other autoloaders. + +## autoloader-suffix {#autoloader-suffix} + +Defaults to `null`. When set to a non-empty string, this value will be used as a +suffix for the generated Composer autoloader. If set to `null`, the +`content-hash` value from the `composer.lock` file will be used if available; +otherwise, a random suffix will be generated. + +## optimize-autoloader {#optimize-autoloader} + +Defaults to `false`. If `true`, always optimize when dumping the autoloader. + +## strict-psr-autoloader {#strict-psr-autoloader} + +Defaults to `false`. If `true`, `install` and `update` return a failed exit code (6), +and `dump-autoload` returns a failed exit code (1), if PSR-4 or PSR-0 mapping errors +are present in the current project (dependencies excluded). Requires `optimize-autoloader` +or `classmap-authoritative` to be enabled to work. + +## sort-packages {#sort-packages} + +Defaults to `false`. If `true`, the `require` command keeps packages sorted +by name in `composer.json` when adding a new package. + +## classmap-authoritative {#classmap-authoritative} + +Defaults to `false`. If `true`, the Composer autoloader will only load classes +from the classmap. Implies `optimize-autoloader`. + +## apcu-autoloader {#apcu-autoloader} + +Defaults to `false`. If `true`, the Composer autoloader will check for APCu and +use it to cache found/not-found classes when the extension is enabled. + +## github-domains {#github-domains} + +Defaults to `["github.com"]`. A list of domains to use in github mode. This is +used for GitHub Enterprise setups. + +## github-expose-hostname {#github-expose-hostname} + +Defaults to `true`. If `false`, the OAuth tokens created to access the +github API will have a date instead of the machine hostname. + +## use-github-api {#use-github-api} + +Defaults to `true`. Similar to the `no-api` key on a specific repository, +setting `use-github-api` to `false` will define the global behavior for all +GitHub repositories to clone the repository as it would with any other git +repository instead of using the GitHub API. But unlike using the `git` +driver directly, Composer will still attempt to use GitHub's zip files. + +## notify-on-install {#notify-on-install} + +Defaults to `true`. Composer allows repositories to define a notification URL, +so that they get notified whenever a package from that repository is installed. +This option allows you to disable that behavior. + +## discard-changes {#discard-changes} + +Defaults to `false` and can be any of `true`, `false` or `"stash"`. This option +allows you to set the default style of handling dirty updates when in +non-interactive mode. `true` will always discard changes in vendors, while +`"stash"` will try to stash and reapply. Use this for CI servers or deploy +scripts if you tend to have modified vendors. + +## archive-format {#archive-format} + +Defaults to `tar`. Overrides the default format used by the archive command. + +## archive-dir {#archive-dir} + +Defaults to `.`. Default destination for archives created by the archive +command. + +Example: + +```json +{ + "config": { + "archive-dir": "/home/user/.composer/repo" + } +} +``` + +## htaccess-protect {#htaccess-protect} + +Defaults to `true`. If set to `false`, Composer will not create `.htaccess` files +in the Composer home, cache, and data directories. + +## lock {#lock} + +Defaults to `true`. If set to `false`, Composer will not create a `composer.lock` +file and will ignore it if one is present. + +## platform-check {#platform-check} + +Defaults to `php-only` which only checks the PHP version. Set to `true` to also +check the presence of extension. If set to `false`, Composer will not create and +require a `platform_check.php` file as part of the autoloader bootstrap. + +## secure-svn-domains {#secure-svn-domains} + +Defaults to `[]`. Lists domains which should be trusted/marked as using a secure +Subversion/SVN transport. By default svn:// protocol is seen as insecure and will +throw, but you can set this config option to `["example.org"]` to allow using svn +URLs on that hostname. This is a better/safer alternative to disabling `secure-http` +altogether. + +## bump-after-update {#bump-after-update} + +Defaults to `false` and can be any of `true`, `false`, `"dev"` or `"no-dev"`. If +set to true, Composer will run the `bump` command after running the `update` command. +If set to `"dev"` or `"no-dev"` then only the corresponding dependencies will be bumped. + +## allow-missing-requirements {#allow-missing-requirements} + +Defaults to `false`. Ignores error during `install` if there are any missing +requirements - the lock file is not up to date with the latest changes in +`composer.json`. + +## update-with-minimal-changes {#update-with-minimal-changes} + +Defaults to `false`. If set to true, Composer will only perform absolutely necessary +changes to transitive dependencies during update. +Can also be set via the `COMPOSER_MINIMAL_CHANGES=1` env var. + +← [Repositories](05-repositories.md) | [Runtime](07-runtime.md) → diff --git a/src/07-runtime.md b/src/07-runtime.md new file mode 100644 index 0000000..7c0fd7b --- /dev/null +++ b/src/07-runtime.md @@ -0,0 +1,178 @@ +# Runtime Composer utilities {#runtime-composer-utilities} + +While Composer is mostly used around your project to install its dependencies, +there are a few things which are made available to you at runtime. + +If you need to rely on some of these in a specific version, you can require +the `composer-runtime-api` package. + +## Autoload {#autoload} + +The autoloader is the most used one, and is already covered in our +[basic usage guide](01-basic-usage.md#autoloading). It is available in all +Composer versions. + +## Installed versions {#installed-versions} + +composer-runtime-api 2.0 introduced a new `Composer\InstalledVersions` class which offers +a few static methods to inspect which versions are currently installed. This is +automatically available to your code as long as you include the Composer autoloader. + +The main use cases for this class are the following: + +### Knowing whether package X (or virtual package) is present {#knowing-whether-package-x-or-virtual-package-is-present} + +```php +\Composer\InstalledVersions::isInstalled('vendor/package'); // returns bool +\Composer\InstalledVersions::isInstalled('psr/log-implementation'); // returns bool +``` + +As of Composer 2.1, you may also check if something was installed via require-dev or not by +passing false as second argument: + +```php +\Composer\InstalledVersions::isInstalled('vendor/package'); // returns true assuming this package is installed +\Composer\InstalledVersions::isInstalled('vendor/package', false); // returns true if vendor/package is in require, false if in require-dev +``` + +Note that this can not be used to check whether platform packages are installed. + +### Knowing whether package X is installed in version Y {#knowing-whether-package-x-is-installed-in-version-y} + +> **Note:** To use this, your package must require `"composer/semver": "^3.0"`. + +```php +use Composer\Semver\VersionParser; + +\Composer\InstalledVersions::satisfies(new VersionParser, 'vendor/package', '2.0.*'); +\Composer\InstalledVersions::satisfies(new VersionParser, 'psr/log-implementation', '^1.0'); +``` + +This will return true if e.g. vendor/package is installed in a version matching +`2.0.*`, but also if the given package name is replaced or provided by some other +package. + +### Knowing the version of package X {#knowing-the-version-of-package-x} + +> **Note:** This will return `null` if the package name you ask for is not itself installed +> but merely provided or replaced by another package. We therefore recommend using satisfies() +> in library code at least. In application code you have a bit more control and it is less +> important. + +```php +// returns a normalized version (e.g. 1.2.3.0) if vendor/package is installed, +// or null if it is provided/replaced, +// or throws OutOfBoundsException if the package is not installed at all +\Composer\InstalledVersions::getVersion('vendor/package'); +``` + +```php +// returns the original version (e.g. v1.2.3) if vendor/package is installed, +// or null if it is provided/replaced, +// or throws OutOfBoundsException if the package is not installed at all +\Composer\InstalledVersions::getPrettyVersion('vendor/package'); +``` + +```php +// returns the package dist or source reference (e.g. a git commit hash) if vendor/package is installed, +// or null if it is provided/replaced, +// or throws OutOfBoundsException if the package is not installed at all +\Composer\InstalledVersions::getReference('vendor/package'); +``` + +### Knowing a package's own installed version {#knowing-a-packages-own-installed-version} + +If you are only interested in getting a package's own version, e.g. in the source of acme/foo you want +to know which version acme/foo is currently running to display that to the user, then it is +acceptable to use getVersion/getPrettyVersion/getReference. + +The warning in the section above does not apply in this case as you are sure the package is present +and not being replaced if your code is running. + +It is nonetheless a good idea to make sure you handle the `null` return value as gracefully as +possible for safety. + +---- + +A few other methods are available for more complex usages, please refer to the +source/docblocks of [the class itself](https://github.com/composer/composer/blob/main/src/Composer/InstalledVersions.php). + +### Knowing the path in which a package is installed {#knowing-the-path-in-which-a-package-is-installed} + +The `getInstallPath` method to retrieve a package's absolute install path. + +> **Note:** The path, while absolute, may contain `../` or symlinks. It is +> not guaranteed to be equivalent to a `realpath()` so you should run a +> realpath on it if that matters to you. + +```php +// returns an absolute path to the package installation location if vendor/package is installed, +// or null if it is provided/replaced, or the package is a metapackage +// or throws OutOfBoundsException if the package is not installed at all +\Composer\InstalledVersions::getInstallPath('vendor/package'); +``` + +> Available as of Composer 2.1 (i.e. `composer-runtime-api ^2.1`) + +### Knowing which packages of a given type are installed {#knowing-which-packages-of-a-given-type-are-installed} + +The `getInstalledPackagesByType` method accepts a package type (e.g. foo-plugin) and lists +the packages of that type which are installed. You can then use the methods above to retrieve +more information about each package if needed. + +This method should alleviate the need for custom installers placing plugins in a specific path +instead of leaving them in the vendor dir. You can then find plugins to initialize at runtime +via InstalledVersions, including their paths via getInstallPath if needed. + +```php +\Composer\InstalledVersions::getInstalledPackagesByType('foo-plugin'); +``` + +> Available as of Composer 2.1 (i.e. `composer-runtime-api ^2.1`) + +## Platform check {#platform-check} + +composer-runtime-api 2.0 introduced a new `vendor/composer/platform_check.php` file, which +is included automatically when you include the Composer autoloader. + +It verifies that platform requirements (i.e. php and php extensions) are fulfilled +by the PHP process currently running. If the requirements are not met, the script +prints a warning with the missing requirements and exits with code 104. + +To avoid an unexpected white page of death with some obscure PHP extension warning in +production, you can run `composer check-platform-reqs` as part of your +deployment/build and if that returns a non-0 code you should abort. + +The default value is `php-only` which only checks the PHP version. + +If you for some reason do not want to use this safety check, and would rather +risk runtime errors when your code executes, you can disable this by setting the +[`platform-check`](06-config.md#platform-check) config option to `false`. + +If you want the check to include verifying the presence of PHP extensions, +set the config option to `true`. `ext-*` requirements will then be verified +but for performance reasons Composer only checks the extension is present, +not its exact version. + +`lib-*` requirements are never supported/checked by the platform check feature. + +## Autoloader path in binaries {#autoloader-path-in-binaries} + +composer-runtime-api 2.2 introduced a new `$_composer_autoload_path` global +variable set when running binaries installed with Composer. Read more +about this [on the vendor binaries docs](articles/vendor-binaries.md#finding-the-composer-autoloader-from-a-binary). + +This is set by the binary proxy and as such is not made available to projects +by Composer's `vendor/autoload.php`, which would be useless as it would point back +to itself. + +## Binary (bin-dir) path in binaries {#binary-bin-dir-path-in-binaries} + +composer-runtime-api 2.2.2 introduced a new `$_composer_bin_dir` global +variable set when running binaries installed with Composer. Read more +about this [on the vendor binaries docs](articles/vendor-binaries.md#finding-the-composer-bin-dir-from-a-binary). + +This is set by the binary proxy and as such is not made available to projects +by Composer's `vendor/autoload.php`. + +← [Config](06-config.md) | [Community](08-community.md) → diff --git a/src/08-community.md b/src/08-community.md new file mode 100644 index 0000000..78a21f0 --- /dev/null +++ b/src/08-community.md @@ -0,0 +1,36 @@ +# Community {#community} + +There are many people using Composer already, and quite a few of them are +contributing. + +## Contributing {#contributing} + +If you would like to contribute to Composer, please read the +[README](https://github.com/composer/composer) and +[CONTRIBUTING](https://github.com/composer/composer/blob/main/.github/CONTRIBUTING.md) +documents. + +The most important guidelines are described as follows: + +> All code contributions - including those of people having commit access - must +> go through a pull request and approved by a core developer before being +> merged. This is to ensure proper review of all the code. +> +> Fork the project, create a feature branch, and send us a pull request. +> +> To ensure a consistent code base, you should make sure the code follows +> the [PSR-12 Coding Standards](https://www.php-fig.org/psr/psr-12/). + +## Support {#support} + +The IRC channel is on irc.libera.chat: [#composer](ircs://irc.libera.chat:6697/composer). + +[Stack Overflow](https://stackoverflow.com/questions/tagged/composer-php) and +[GitHub Discussions](https://github.com/composer/composer/discussions) both have a +collection of Composer related questions. + +For paid support, we do provide Composer-related support via chat and email to +[Private Packagist](https://packagist.com/?utm_source=getcomposer.org&utm_medium=docs&utm_campaign=community) customers. + + +← [Runtime](07-runtime.md) diff --git a/src/articles/aliases.md b/src/articles/aliases.md new file mode 100644 index 0000000..c78816c --- /dev/null +++ b/src/articles/aliases.md @@ -0,0 +1,113 @@ +--- +description: "Alias branch names to versions" +--- + +# Aliases {#aliases} + +## Why aliases? {#why-aliases} + +When you are using a VCS repository, you will only get comparable versions for +branches that look like versions, such as `2.0` or `2.0.x`. For your `main` branch, you +will get a `dev-main` version. For your `bugfix` branch, you will get a +`dev-bugfix` version. + +If your `main` branch is used to tag releases of the `1.0` development line, +i.e. `1.0.1`, `1.0.2`, `1.0.3`, etc., any package depending on it will +probably require version `1.0.*`. + +If anyone wants to require the latest `dev-main`, they have a problem: Other +packages may require `1.0.*`, so requiring that dev version will lead to +conflicts, since `dev-main` does not match the `1.0.*` constraint. + +Enter aliases. + +## Branch alias {#branch-alias} + +The `dev-main` branch is one in your main VCS repo. It is rather common that +someone will want the latest main dev version. Thus, Composer allows you to +alias your `dev-main` branch to a `1.0.x-dev` version. It is done by +specifying a `branch-alias` field under `extra` in `composer.json`: + +```json +{ + "extra": { + "branch-alias": { + "dev-main": "1.0.x-dev" + } + } +} +``` + +If you alias a non-comparable version (such as dev-develop) `dev-` must prefix the +branch name. You may also alias a comparable version (i.e. start with numbers, +and end with `.x-dev`), but only as a more specific version. +For example, a `1.x` or `1.x-dev` branch could be aliased from `1.x-dev` to +`1.2.x-dev` as that is more specific. + +The alias must be a comparable dev version (you cannot alias `dev-main` +to `dev-master` for example), and the `branch-alias` must be present on +the branch that it references. To alias `dev-main`, you need to define and +commit it on the `main` branch. + +As a result, anyone can now require `1.0.*` and it will happily install +`dev-main`. + +In order to use branch aliasing, you must own the repository of the package +being aliased. If you want to alias a third party package without maintaining +a fork of it, use inline aliases as described below. + +## Require inline alias {#require-inline-alias} + +Branch aliases are great for aliasing main development lines. But in order to +use them you need to have control over the source repository, and you need to +commit changes to version control. + +This is not really fun when you want to try a bugfix of some library that +is a dependency of your local project. + +For this reason, you can alias packages in your `require` and `require-dev` +fields. Let's say you found a bug in the `monolog/monolog` package. You cloned +[Monolog](https://github.com/Seldaek/monolog) on GitHub and fixed the issue in +a branch named `bugfix`. Now you want to install that version of monolog in your +local project. + +You are using `symfony/monolog-bundle` which requires `monolog/monolog` version +`1.*`. So you need your `dev-bugfix` to match that constraint. + +Add this to your project's root `composer.json`: + +```json +{ + "repositories": [ + { + "type": "vcs", + "url": "https://github.com/you/monolog" + } + ], + "require": { + "symfony/monolog-bundle": "2.0", + "monolog/monolog": "dev-bugfix as 1.0.x-dev" + } +} +``` + +Or let Composer add it for you with: + +```shell +php composer.phar require "monolog/monolog:dev-bugfix as 1.0.x-dev" +``` + +That will fetch the `dev-bugfix` version of `monolog/monolog` from your GitHub +and alias it to `1.0.x-dev`. + +> **Note:** Inline aliasing is a root-only feature. If a package with inline +> aliases is required, the alias (right of the `as`) is used as the version +> constraint. The part left of the `as` is discarded. As a consequence, if +> A requires B and B requires `monolog/monolog` version `dev-bugfix as 1.0.x-dev`, +> installing A will make B require `1.0.x-dev`, which may exist as a branch +> alias or an actual `1.0` branch. If it does not, it must be +> inline-aliased again in A's `composer.json`. + +> **Note:** Inline aliasing should be avoided, especially for published +> packages/libraries. If you found a bug, try to get your fix merged upstream. +> This helps to avoid issues for users of your package. diff --git a/src/articles/authentication-for-private-packages.md b/src/articles/authentication-for-private-packages.md new file mode 100644 index 0000000..03f9b00 --- /dev/null +++ b/src/articles/authentication-for-private-packages.md @@ -0,0 +1,561 @@ +--- +description: "Access privately hosted packages/repositories" +--- + +# Authentication for privately hosted packages and repositories {#authentication-for-privately-hosted-packages-and-repositories} + +Your [private package server](handling-private-packages.md) or version control system is probably secured with one +or more authentication options. In order to allow your project to have access to these +packages and repositories you will have to tell Composer how to authenticate with the server that hosts them. + +# Authentication principles {#authentication-principles} + +Whenever Composer encounters a protected Composer repository it will try to authenticate +using already defined credentials first. When none of those credentials apply it will prompt +for credentials and save them (or a token if Composer is able to retrieve one). + +| type | Generated by Prompt? | +|:---------------------------------------------------:|:--------------------:| +| [http-basic](#http-basic) | yes | +| [Inline http-basic](#inline-http-basic) | no | +| [HTTP Bearer](#http-bearer) | no | +| [Custom Headers](#custom-headers) | no | +| [Inline Custom Headers](#inline-custom-headers) | no | +| [gitlab-oauth](#gitlab-oauth) | yes | +| [gitlab-token](#gitlab-token) | yes | +| [github-oauth](#github-oauth) | yes | +| [bitbucket-oauth](#bitbucket-oauth) | yes | +| [Client TLS certificates](#client-tls-certificates) | no | +| [forgejo-token](#forgejo-token) | yes | + +Sometimes automatic authentication is not possible, or you may want to predefine +authentication credentials. + +Credentials can be stored on 4 different places; in an `auth.json` for the project, a global +`auth.json`, in the `composer.json` itself or in the `COMPOSER_AUTH` environment variable. + +## Authentication in auth.json per project {#authentication-in-authjson-per-project} + +In this authentication storage method, an `auth.json` file will be present in the same folder +as the projects' `composer.json` file. You can either create and edit this file using the +command line or manually edit or create it. + +> **Note: Make sure the `auth.json` file is in `.gitignore`** to avoid +> leaking credentials into your git history. + +## Global authentication credentials {#global-authentication-credentials} + +If you don't want to supply credentials for every project you work on, storing your credentials +globally might be a better idea. These credentials are stored in a global `auth.json` in your +Composer home directory. + +### Command line global credential editing {#command-line-global-credential-editing} + +For all authentication methods it is possible to edit them using the command line; + +- [http-basic](#command-line-http-basic) +- [Inline http-basic](#command-line-inline-http-basic) +- [HTTP Bearer](#command-line-http-bearer-authentication) +- [Custom Headers](#command-line-custom-headers) +- [gitlab-oauth](#command-line-gitlab-oauth) +- [gitlab-token](#command-line-gitlab-token) +- [github-oauth](#command-line-github-oauth) +- [bitbucket-oauth](#command-line-bitbucket-oauth) +- [forgejo-token](#command-line-forgejo-token) + +### Manually editing global authentication credentials {#manually-editing-global-authentication-credentials} + +> **Note:** It is not recommended to manually edit your authentication options as this might +> result in invalid json. Instead preferably use [the command line](#command-line-global-credential-editing). + +To manually edit it, run: + +```shell +php composer.phar config --global --editor [--auth] +``` + +For specific authentication implementations, see their sections; + +- [http-basic](#manual-http-basic) +- [Inline http-basic](#manual-inline-http-basic) +- [HTTP Bearer](#manual-http-bearer-authentication) +- [Custom Headers](#manual-custom-headers) +- [Inline Custom Headers](#manual-inline-custom-headers) +- [gitlab-oauth](#manual-gitlab-oauth) +- [gitlab-token](#manual-gitlab-token) +- [github-oauth](#manual-github-oauth) +- [bitbucket-oauth](#manual-bitbucket-oauth) +- [Client TLS certificates](#manual-client-certificates) +- [forgejo-token](#manual-forgejo-token) + +Manually editing this file instead of using the command line may result in invalid json errors. +To fix this you need to open the file in an editor and fix the error. To find the location of +your global `auth.json`, execute: + +```shell +php composer.phar config --global home +``` + +The folder will contain your global `auth.json` if it exists. + +You can open this file in your favorite editor and fix the error. + +## Authentication in composer.json file itself {#authentication-in-composerjson-file-itself} + +> **Note:** **This is not recommended** as these credentials are visible +> to anyone who has access to the composer.json, either when it is shared through +> a version control system like git or when an attacker gains (read) access to +> your production server files. + +It is also possible to add credentials to a `composer.json` on a per-project basis in the `config` +section or directly in the repository definition. + +## Authentication using the COMPOSER_AUTH environment variable {#authentication-using-the-composer_auth-environment-variable} + +> **Note:** Using the command line environment variable method also has security implications. +> These credentials will most likely be stored in memory, +> and may be persisted to a file like `~/.bash_history` (linux) or `ConsoleHost_history.txt` +> (PowerShell on Windows) when closing a session. + +The final option to supply Composer with credentials is to use the `COMPOSER_AUTH` environment variable. +These variables can be either passed as command line variables or set in actual environment variables. +Read more about the usage of this environment variable [here](../03-cli.md#composer_auth). + +# Authentication methods {#authentication-methods} + +## http-basic {#http-basic} + +### Command line http-basic {#command-line-http-basic} + +```shell +php composer.phar config [--global] http-basic.repo.example.org username password +``` + +In the above command, the config key `http-basic.repo.example.org` consists of two parts: + +- `http-basic` is the authentication method. +- `repo.example.org` is the repository host name, you should replace it with the host name of your repository. + +### Manual http-basic {#manual-http-basic} + +```shell +php composer.phar config [--global] --editor --auth +``` + +```json +{ + "http-basic": { + "example.org": { + "username": "username", + "password": "password" + } + } +} +``` + +## Inline http-basic {#inline-http-basic} + +For the inline http-basic authentication method the credentials are not stored in a separate +`auth.json` in the project or globally, but in the `composer.json` or global configuration +in the same place where the Composer repository definition is defined. + +Make sure that the username and password are encoded according +to [RFC 3986](https://www.rfc-editor.org/rfc/rfc3986#section-2.1) (2.1. Percent-Encoding). +If the username e.g. is an email address it needs to be passed as `name%40example.com`. + +### Command line inline http-basic {#command-line-inline-http-basic} + +```shell +php composer.phar config [--global] repositories.unique-name composer https://username:password@repo.example.org +``` + +### Manual inline http-basic {#manual-inline-http-basic} + +```shell +php composer.phar config [--global] --editor +``` + +```json +{ + "repositories": [ + { + "type": "composer", + "url": "https://username:password@example.org" + } + ] +} +``` + +## HTTP Bearer {#http-bearer} + +### Command line HTTP Bearer authentication {#command-line-http-bearer-authentication} + +```shell +php composer.phar config [--global] bearer.repo.example.org token +``` + +In the above command, the config key `bearer.repo.example.org` consists of two parts: + +- `bearer` is the authentication method. +- `repo.example.org` is the repository host name, you should replace it with the host name of your repository. + +### Manual HTTP Bearer authentication {#manual-http-bearer-authentication} + +```shell +php composer.phar config [--global] --editor --auth +``` + +```json +{ + "bearer": { + "example.org": "TOKEN" + } +} +``` + +## custom-headers {#custom-headers} + +Use custom HTTP headers for authentication with private repositories that require header-based authentication. + +### Command line custom-headers {#command-line-custom-headers} + +```shell +php composer.phar config [--global] custom-headers.repo.example.org "API-TOKEN: YOUR-API-TOKEN" "X-CUSTOM-HEADER: Value" +``` + +In the above command, the config key `custom-headers.repo.example.org` consists of two parts: + +- `custom-headers` is the authentication method. +- `repo.example.org` is the repository host name, you should replace it with the host name of your repository. + +You can provide multiple custom headers as separate arguments. Each header must be in the standard HTTP header +format `"Header-Name: Header-Value"`. + +### Manual custom-headers {#manual-custom-headers} + +```shell +php composer.phar config [--global] --editor --auth +``` + +```json +{ + "custom-headers": { + "repo.example.org": [ + "API-TOKEN: YOUR-API-TOKEN", + "X-CUSTOM-HEADER: Value" + ] + } +} +``` + +## Inline custom-headers {#inline-custom-headers} + +### Manual inline custom-headers {#manual-inline-custom-headers} + +For the inline custom-headers authentication method, the custom headers are defined directly +in your `composer.json` file as part of the repository configuration. + +```shell +php composer.phar config [--global] --editor +``` + +```json +{ + "repositories": [ + { + "type": "composer", + "url": "https://repo.example.org", + "options": { + "http": { + "header": [ + "API-TOKEN: YOUR-API-TOKEN", + "X-CUSTOM-HEADER: Value" + ] + } + } + } + ] +} +``` + +## gitlab-oauth {#gitlab-oauth} + +> **Note:** For the gitlab authentication to work on private gitlab instances, the +> [`gitlab-domains`](../06-config.md#gitlab-domains) section should also contain the URL. + +### Command line gitlab-oauth {#command-line-gitlab-oauth} + +```shell +php composer.phar config [--global] gitlab-oauth.gitlab.example.org token +``` + +In the above command, the config key `gitlab-oauth.gitlab.example.org` consists of two parts: + +- `gitlab-oauth` is the authentication method. +- `gitlab.example.org` is the host name of your GitLab instance, you should replace it with the host name of your GitLab + instance or use `gitlab.com` if you don't have a self-hosted GitLab instance. + +### Manual gitlab-oauth {#manual-gitlab-oauth} + +```shell +php composer.phar config [--global] --editor --auth +``` + +```json +{ + "gitlab-oauth": { + "example.org": "token" + } +} +``` + +## gitlab-token {#gitlab-token} + +> **Note:** For the gitlab authentication to work on private gitlab instances, the +> [`gitlab-domains`](../06-config.md#gitlab-domains) section should also contain the URL. + +To create a new access token, go to +your [access tokens section on GitLab](https://gitlab.com/-/user_settings/personal_access_tokens) +(or the equivalent URL on your private instance) and create a new token. See +also [the GitLab access token documentation](https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html#creating-a-personal-access-token) +for more information. + +When creating a gitlab token manually, make sure it has either the `read_api` or `api` scope. + +### Command line gitlab-token {#command-line-gitlab-token} + +```shell +php composer.phar config [--global] gitlab-token.gitlab.example.org token +``` + +In the above command, the config key `gitlab-token.gitlab.example.org` consists of two parts: + +- `gitlab-token` is the authentication method. +- `gitlab.example.org` is the host name of your GitLab instance, you should replace it with the host name of your GitLab + instance or use `gitlab.com` if you don't have a self-hosted GitLab instance. + +### Manual gitlab-token {#manual-gitlab-token} + +```shell +php composer.phar config [--global] --editor --auth +``` + +```json +{ + "gitlab-token": { + "example.org": "token" + } +} +``` + +### GitLab CI job tokens {#gitlab-ci-job-tokens} + +Inside a GitLab CI job you can authenticate with the ephemeral `CI_JOB_TOKEN` instead of a personal +access token, by storing it with `gitlab-ci-token` as the username: + +```shell +php composer.phar config [--global] -- gitlab-token.gitlab.example.org gitlab-ci-token "${CI_JOB_TOKEN}" +``` + +Composer then sends the job token as a `JOB-TOKEN` header (downloading dist archives from `vcs` +repositories that way requires GitLab 19.3 or newer), except for GitLab's Composer package registry, +which only accepts job tokens via HTTP basic auth with the `gitlab-ci-token` username, so Composer +uses that there. Note that the job token must be +[allowed to access](https://docs.gitlab.com/ci/jobs/ci_job_token/#control-job-token-access-to-your-project) +the projects it fetches packages from. + +## github-oauth {#github-oauth} + +GitHub currently offers two types of access tokens: + +- [Fine-grained tokens](https://github.com/settings/personal-access-tokens) +- [Tokens (classic)](https://github.com/settings/personal-access-tokens) + +These can be found in [Settings](https://github.com/settings/profile), at the very bottom of the left-side menu ([Developer options](https://github.com/settings/apps)). To create a new access token, head to your [token settings section on GitHub](https://github.com/settings/personal-access-tokens) and [generate a new token](https://github.com/settings/personal-access-tokens/new). + +Read more about [Personal Access Tokens](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token). + +It is [recommended](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#types-of-personal-access-tokens) to use fine-grained tokens, +as you can have much tighter control over what can be accessed. Composer requires read-only access to repository metadata and contents. + +In most cases, a fine-grained token with read-only access to public repositories might be sufficient. Even without any additional permissions, these tokens [raise your API rate limits](https://docs.github.com/en/rest/using-the-rest-api/rate-limits-for-the-rest-api). + +Additional permissions will be necessary in the following cases: + +- You are using `vcs` type `repositories` entries in your `composer.json` file pointing to private repositories. +- You are cloning `source` or downloading `dist` files for private repositories over HTTPS (and not over SSH, for example). + +In these cases, create a fine-grained token with read-only access to "contents". The token can be bound to either all of your or the organisation's repositories, or even scoped down to only selected repositories. + +As of November 2025, fine-grained tokens are limited in that you can only use them to access the private repositories of a single user _or_ a single organisation at once. You may want to check the [GitHub documentation](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#fine-grained-personal-access-tokens-limitations) on details about that. If you need to work with repositories from different organisations, check if using directory-specific authentication configuration can meet your requirements. + +As a last option, a "classic" token with the `repo` scope will give broad access to all of your private repositories – including write permissions and much more. The [scopes documentation](https://docs.github.com/en/developers/apps/building-oauth-apps/scopes-for-oauth-apps) contains the complete list. Be careful when using this kind of token. + +Regardless of the type of token used, we recommend using tokens with a limited lifetime. This reduces the exposure in case the token is compromised. + +### Command line github-oauth {#command-line-github-oauth} + +```shell +php composer.phar config [--global] github-oauth.github.com token +``` + +In the above command, the config key `github-oauth.github.com` consists of two parts: + +- `github-oauth` is the authentication method. +- `github.com` is the host name for which this token applies. For GitHub you most likely do not need to change this. + +### Manual github-oauth {#manual-github-oauth} + +```shell +php composer.phar config [--global] --editor --auth +``` + +```json +{ + "github-oauth": { + "github.com": "token" + } +} +``` + +## bitbucket-oauth {#bitbucket-oauth} + +The Bitbucket driver uses OAuth to access your private repositories via the Bitbucket REST APIs, and you will need to +create an OAuth consumer to use the driver, please refer +to [Atlassian's Documentation](https://support.atlassian.com/bitbucket-cloud/docs/use-oauth-on-bitbucket-cloud/). You +will need to fill the callback URL with something to satisfy Bitbucket, but the address does not need to go anywhere and +is not used by Composer. + +The created consumer needs to have at least the "Repository > Read" permissions. + +### Command line bitbucket-oauth {#command-line-bitbucket-oauth} + +```shell +php composer.phar config [--global] bitbucket-oauth.bitbucket.org consumer-key consumer-secret +``` + +In the above command, the config key `bitbucket-oauth.bitbucket.org` consists of two parts: + +- `bitbucket-oauth` is the authentication method. +- `bitbucket.org` is the host name for which this token applies. Unless you have a private instance you don't need to + change this. + +### Manual bitbucket-oauth {#manual-bitbucket-oauth} + +```shell +php composer.phar config [--global] --editor --auth +``` + +```json +{ + "bitbucket-oauth": { + "bitbucket.org": { + "consumer-key": "key", + "consumer-secret": "secret" + } + } +} +``` + +### Bitbucket API tokens {#bitbucket-api-tokens} + +As an alternative to OAuth consumers, you can use Atlassian API tokens. Create a token with +the `read:repository:bitbucket` scope in [your Atlassian account](https://id.atlassian.com/manage-profile/security/api-tokens). + +Once you have a token, configure it using HTTP Basic authentication with your Atlassian account +email as the username and the token as the password: + +```shell +php composer.phar config [--global] http-basic.bitbucket.org your@email.com api-token +``` + +Or manually in `auth.json`: + +```shell +php composer.phar config [--global] --editor --auth +``` + +```json +{ + "http-basic": { + "bitbucket.org": { + "username": "your@email.com", + "password": "api-token" + } + } +} +``` + +## Client TLS certificates {#client-tls-certificates} + +Accessing private repositories that require client TLS certificates. + +For global/project-wide configuration +see [Handling private packages: Security section](handling-private-packages.md#security). + +### Manual client certificates {#manual-client-certificates} + +```shell +php composer.phar config [--global] --editor --auth +``` + +```json +{ + "client-certificate": { + "repo.example.org": { + "local_cert": "/path/to/certificate", + "local_pk": "/path/to/key", + "passphrase": "MySecretPassword" + } + } +} +``` + +Supported options are `local_cert` (required), `local_pk`, `passphrase`. +More information for options can be found at [SSL context options](https://www.php.net/manual/en/context.ssl.php) + +Options could be omitted: + +- `local_pk`: in case of keeping certificate and private key in a single file; +- `passphrase`: in case of passwordless private key. + +## forgejo-token {#forgejo-token} + +> **Note:** For the forge authentication to work on private Forgejo instances, the +> [`forgejo-domains`](../06-config.md#forgejo-domains) section should also contain the domain. + +To create a new access token, go to +your [applications section on Forgejo](https://codeberg.org/user/settings/applications) +(or the equivalent URL on your private instance) and create a new access token. See +also [the Forgejo access token documentation](https://docs.codeberg.org/advanced/access-token/) for more information. + +When creating a Forgejo access token, make sure it has the `read:repository` scope. + +### Command line forgejo-token {#command-line-forgejo-token} + +```shell +php composer.phar config [--global] forgejo-token.forgejo.example.org username access-token +``` + +In the above command, the config key `forgejo-token.forgejo.example.org` consists of two parts: + +- `forgejo-token` is the authentication method. +- `forgejo.example.org` is the host name of your Forgejo instance, you should replace it with the host name of your + Forgejo instance or use `codeberg.org` if you don't have a self-hosted Forgejo instance. + +### Manual forgejo-token {#manual-forgejo-token} + +```shell +php composer.phar config [--global] --editor --auth +``` + +```json +{ + "forgejo-token": { + "forgejo.example.org": { + "username": "forgejo-user", + "token": "access-token" + } + } +} +``` diff --git a/src/articles/autoloader-optimization.md b/src/articles/autoloader-optimization.md new file mode 100644 index 0000000..d966af0 --- /dev/null +++ b/src/articles/autoloader-optimization.md @@ -0,0 +1,111 @@ +--- +description: "How to reduce the performance impact of the autoloader" +--- + +# Autoloader optimization {#autoloader-optimization} + +By default, the Composer autoloader runs relatively fast. However, due to the way +PSR-4 and PSR-0 autoloading rules are set up, it needs to check the filesystem +before resolving a classname conclusively. This slows things down quite a bit, +but it is convenient in development environments because when you add a new class +it can immediately be discovered/used without having to rebuild the autoloader +configuration. + +The problem however is in production you generally want things to happen as fast +as possible, as you can rebuild the configuration every time you deploy and +new classes do not appear at random between deploys. + +For this reason, Composer offers a few strategies to optimize the autoloader. + +> **Note:** You **should not** enable any of these optimizations in **development** as +> they all will cause various problems when adding/removing classes. The performance +> gains are not worth the trouble in a development setting. + +## Optimization Level 1: Class map generation {#optimization-level-1-class-map-generation} + +### How to run it? {#how-to-run-it} + +There are a few options to enable this: + +- Set `"optimize-autoloader": true` inside the config key of composer.json +- Call `install` or `update` with `-o` / `--optimize-autoloader` +- Call `dump-autoload` with `-o` / `--optimize` + +### What does it do? {#what-does-it-do} + +Class map generation essentially converts PSR-4/PSR-0 rules into classmap rules. +This makes everything quite a bit faster as for known classes the class map +returns instantly the path, and Composer can guarantee the class is in there so +there is no filesystem check needed. + +On PHP 5.6+, the class map is also cached in opcache which improves the initialization +time greatly. If you make sure opcache is enabled, then the class map should load +almost instantly and then class loading is fast. + +### Trade-offs {#trade-offs} + +There are no real trade-offs with this method. It should always be enabled in +production. + +The only issue is it does not keep track of autoload misses (i.e. when +it cannot find a given class), so those fall back to PSR-4 rules and can still +result in slow filesystem checks. To solve this issue two Level 2 optimization +options exist, and you can decide to enable either if you have a lot of +class_exists checks that are done for classes that do not exist in your project. + +## Optimization Level 2/A: Authoritative class maps {#optimization-level-2a-authoritative-class-maps} + +### How to run it? {#how-to-run-it-1} + +There are a few options to enable this: + +- Set `"classmap-authoritative": true` inside the config key of composer.json +- Call `install` or `update` with `-a` / `--classmap-authoritative` +- Call `dump-autoload` with `-a` / `--classmap-authoritative` + +### What does it do? {#what-does-it-do-1} + +Enabling this automatically enables Level 1 class map optimizations. + +This option says that if something is not found in the classmap, +then it does not exist and the autoloader should not attempt to look on the +filesystem according to PSR-4 rules. + +### Trade-offs {#trade-offs-1} + +This option makes the autoloader always return very quickly. On the flipside it +also means that in case a class is generated at runtime for some reason, it will +not be allowed to be autoloaded. If your project or any of your dependencies does that +then you might experience "class not found" issues in production. Enable this with care. + +> Note: This cannot be combined with Level 2/B optimizations. You have to choose one as +> they address the same issue in different ways. + +## Optimization Level 2/B: APCu cache {#optimization-level-2b-apcu-cache} + +### How to run it? {#how-to-run-it-2} + +There are a few options to enable this: + +- Set `"apcu-autoloader": true` inside the config key of composer.json +- Call `install` or `update` with `--apcu-autoloader` +- Call `dump-autoload` with `--apcu` + +### What does it do? {#what-does-it-do-2} + +This option adds an APCu cache as a fallback for the class map. It will not +automatically generate the class map though, so you should still enable Level 1 +optimizations manually if you so desire. + +Whether a class is found or not, that fact is always cached in APCu, so it can be +returned quickly on the next request. + +### Trade-offs {#trade-offs-2} + +This option requires APCu which may or may not be available to you. It also +uses APCu memory for autoloading purposes, but it is safe to use and cannot +result in classes not being found like the authoritative class map +optimization above. + +> Note: This cannot be combined with Level 2/A optimizations. You have to choose one as +> they address the same issue in different ways. diff --git a/src/articles/caching.md b/src/articles/caching.md new file mode 100644 index 0000000..eb74704 --- /dev/null +++ b/src/articles/caching.md @@ -0,0 +1,236 @@ +--- +description: "Cache Composer downloads safely in CI and containers" +--- + +# Caching Composer dependencies {#caching-composer-dependencies} + +Composer keeps a cache of everything it downloads on the machine it runs on, so that later runs on the same machine do not have to download it again. CI jobs and container builds usually start on a fresh machine or in a fresh container though, so this cache is empty at the start of every build unless you persist it between builds, for example with your CI provider's cache feature or a Docker BuildKit cache mount. + +This article explains which parts of Composer's cache are worth persisting between builds and how to do so safely. Two kinds of cache are involved: + +- the **Composer cache**: the directory in which Composer itself stores downloaded files, see [`cache-dir`](../06-config.md#cache-dir); +- the **CI cache**: a feature of your CI provider that saves a directory at the end of a job under a **cache key**, and restores it at the start of a later job that asks for the same (or a matching) key. + +Persisting the Composer cache between builds should remain an optimization: a build must still produce the same result when the cache is empty. + +For most projects, persist the Composer cache rather than the installed `vendor/` directory. Composer can then reuse previously downloaded package archives instead of downloading them again, while `composer install` still installs exactly the versions `composer.lock` specifies and still checks that the PHP version and extensions of the build environment satisfy the requirements of those packages. + +## What to cache {#what-to-cache} + +The Composer cache consists of several parts, each stored in its own subdirectory of the cache directory. You can print the location of the cache directory on the current machine with: + +```sh +composer config cache-dir --absolute +``` + +The parts are: + +- the **files cache** ([`cache-files-dir`](../06-config.md#cache-files-dir)), which stores the dist archives (zip, tar, ...) of packages Composer has downloaded; +- the **repository metadata cache** ([`cache-repo-dir`](../06-config.md#cache-repo-dir)), which stores the package metadata Composer fetched from repositories like Packagist.org to resolve dependencies; +- the **VCS cache** ([`cache-vcs-dir`](../06-config.md#cache-vcs-dir)), which stores clones of VCS repositories, used to read metadata from `vcs` repositories and to install packages from source. + +The files cache is the part that saves the most time when persisted between builds, because `composer install` extracts every package from its dist archive, and the archives for a given `composer.lock` are the same in every build. Composer automatically removes old entries from the files cache: archives unused for six months are deleted, and the files cache is limited to 300 MiB, see [`cache-files-ttl`](../06-config.md#cache-files-ttl) and [`cache-files-maxsize`](../06-config.md#cache-files-maxsize). The repository metadata cache and the VCS cache are only cleaned up when you run `composer clear-cache --gc`, which you can do before the CI cache is saved to keep it from growing indefinitely. + +The CI examples below persist the entire Composer cache directory, because that is the simplest setup. A job that only runs `composer install` with a `composer.lock` mainly reads from the files cache (and the VCS cache for packages installed from source), so if CI cache storage is limited you can persist only `cache-files-dir`. A job that runs `composer update` also benefits from the repository metadata cache, because Composer then has to load package metadata to resolve dependencies. + +Many CI providers can only save directories inside the job's working directory, while Composer's default cache directory is in the user's home directory. You can set the `COMPOSER_CACHE_DIR` environment variable to move the Composer cache into the working directory, so the CI cache can save it from a known path: + +```sh +COMPOSER_CACHE_DIR="$PWD/.composer-cache" composer install --no-interaction --prefer-dist +``` + +Add such a cache directory inside your project to `.gitignore`, and to `.dockerignore` if you build images from the same checkout, so it does not show up as an untracked change or ends up in archives, Docker build contexts and code-analysis runs. + +A CI cache is usually shared between jobs, and often between branches, so do not add credentials, `auth.json`, SSH keys, tokens, or other secrets to the paths it saves. In particular, persist the Composer cache directory rather than the whole [`COMPOSER_HOME`](../03-cli.md#composer_home) directory, which can contain `auth.json`. + +## Cache downloads, not installed dependencies {#cache-downloads-not-installed-dependencies} + +Persisting `vendor/` in the CI cache can be tempting because restoring it lets you skip `composer install`, but it is often not faster: `vendor/` usually contains many small files, and on most CI systems saving and restoring many small files takes longer than saving and restoring the few larger archives in the Composer cache. A restored `vendor/` can also easily differ from what a fresh install in the current job would produce. Its contents depend on more than `composer.lock`: on install flags such as `--no-dev` or `--optimize-autoloader`, on files generated by Composer plugins or scripts, and on any changes made to files inside `vendor/`, which `composer install` does not detect or undo. + +A restored Composer cache cannot cause these problems: it only supplies downloaded archives, and Composer still reads `composer.lock`, checks the platform requirements, and installs every package into `vendor/` as it would without the cache. This makes persisting the Composer cache a good default. Persist `vendor/` only when every job restoring it uses the same install flags, PHP version and PHP extensions, and you include all of these in the cache key. + +Applications should always commit `composer.lock` to version control and run `composer install` in CI. A restored Composer cache should only make that install faster by avoiding downloads, not replace it. + +## Cache keys {#cache-keys} + +A CI cache stores each saved directory as an entry under a cache key, and restores the entry whose key matches the key a later job requests. A good key keeps builds from restoring an entry created by an incompatible build environment, while still letting builds reuse entries created before a dependency change. + +Dist archives in the files cache are the same regardless of the PHP version or operating system they were downloaded on, so all jobs of a project, such as the jobs of a PHP version matrix, can usually share one Composer cache entry. + +When persisting the Composer cache, configure fallback keys (called `restore-keys` on GitHub Actions and `fallback_keys` on GitLab), so that when no entry matches the key of a changed `composer.lock`, the CI cache restores the most recent entry of an earlier `composer.lock` instead. Most archives will still be the same, so Composer only needs to download the packages that changed. + +When persisting `vendor/`, do not use fallback keys, and include the hash of `composer.lock`, the install flags, the PHP version, and the list of enabled PHP extensions in the key. `composer install` checks the platform requirements of the locked packages against the PHP version and extensions (unless you use `--ignore-platform-reqs`), and a `vendor/` restored from a different environment would skip that check. + +CI jobs running `composer update`, such as library jobs testing against the latest dependency versions, need a different approach. A key based on the hash of `composer.lock` is then the same in every run, because it is computed from the committed file (or from no file at all) rather than the versions that get installed. Most CI providers do not overwrite an existing entry, so the Composer cache is saved once and never updated with newer package versions. Instead, build the key from the hash of `composer.json` plus a value that is different on every run, and use prefixes of that key as fallback keys, so every run restores the most recent entry and saves a new one. On GitHub Actions for example: + +```yaml +key: composer-${{ hashFiles('composer.json') }}-${{ github.run_id }} +restore-keys: | + composer-${{ hashFiles('composer.json') }}- + composer- +``` + +Some CI providers let jobs for pull requests from untrusted contributors, such as forks, save CI cache entries that jobs on trusted branches later restore. Such a job could save a Composer cache containing modified package archives, which a later trusted build would then install. Do not let untrusted jobs save cache entries that trusted jobs restore, following your CI provider's security documentation, and never put secrets in a CI cache. + +## GitHub Actions {#github-actions} + +For most workflows, [ramsey/composer-install](https://github.com/ramsey/composer-install) is the simplest option. It runs `composer install` and persists the Composer cache directory in the CI cache by default, so you usually do not need a separate caching step or a custom `COMPOSER_CACHE_DIR`: + +```yaml +- uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php }} + +- uses: ramsey/composer-install@v4 +``` + +If you need explicit control over the cached path or the key, use `actions/cache` directly. The following example moves the Composer cache into the workspace, saves it under a key based on `composer.lock`, and restores the most recent entry starting with `composer-` when no entry matches the current `composer.lock`: + +```yaml +jobs: + tests: + runs-on: ubuntu-latest + env: + COMPOSER_CACHE_DIR: ${{ github.workspace }}/.composer-cache + steps: + - uses: actions/checkout@v7 + + - uses: actions/cache@v6 + with: + path: .composer-cache + key: composer-${{ hashFiles('composer.lock') }} + restore-keys: | + composer- + + - name: Install dependencies + run: composer install --no-interaction --prefer-dist --no-progress +``` + +Setting `COMPOSER_CACHE_DIR` on the job rather than on a single step makes every Composer command in the job use the persisted directory. + +When a workflow runs for pull requests from forks, follow GitHub Actions' cache-security guidance, see [Cache keys](#cache-keys), so that these jobs cannot save cache entries that jobs on trusted branches later restore. + +## GitLab CI/CD {#gitlab-cicd} + +GitLab can compute the cache key from the contents of `composer.lock`. GitLab only caches paths inside the project directory, so the example moves the Composer cache there: + +```yaml +variables: + COMPOSER_CACHE_DIR: "$CI_PROJECT_DIR/.composer-cache" + +default: + cache: + key: + files: + - composer.lock + paths: + - .composer-cache/ + before_script: + - composer install --no-interaction --prefer-dist --no-progress +``` + +With this key, a changed `composer.lock` starts with an empty Composer cache. To reuse the archives of an earlier `composer.lock`, use a key that does not change with `composer.lock`, or list older keys in `cache:fallback_keys`. If the project has no `composer.lock`, GitLab uses the key `default`, which never changes, see [Cache keys](#cache-keys) for an alternative. + +## Bitbucket Pipelines {#bitbucket-pipelines} + +Bitbucket Pipelines provides a predefined `composer` cache. It always saves `~/.composer/cache`, but Composer uses a different cache directory in many environments, for example `/tmp/cache` in the official `composer` Docker image or `~/.cache/composer` on systems following the XDG specification. Set `COMPOSER_CACHE_DIR` to `~/.composer/cache`, otherwise Bitbucket saves an empty directory and Composer downloads everything again in every build, without any error: + +```yaml +pipelines: + default: + - step: + caches: + - composer + script: + - export COMPOSER_CACHE_DIR="$HOME/.composer/cache" + - composer install --no-interaction --prefer-dist --no-progress +``` + +Once saved, a predefined cache entry is not updated, and it is only deleted after a week without use, so packages added to `composer.lock` in the meantime are downloaded in every build. Define a custom cache with a key based on `composer.lock` when you want a new entry saved whenever dependencies change, or when you need a different path. + +## CircleCI {#circleci} + +CircleCI cache entries are immutable: once an entry is saved under a key, it is never updated. Include the checksum of `composer.lock` in the key, so a new entry is saved when dependencies change. Restore the cache before running Composer and save it afterwards. The example moves the Composer cache into the working directory, so the same relative path can be used in `save_cache`: + +```yaml +steps: + - checkout + - restore_cache: + keys: + - composer-v1-{{ checksum "composer.lock" }} + - composer-v1- + - run: + name: Install dependencies + command: | + export COMPOSER_CACHE_DIR="$PWD/.composer-cache" + composer install --no-interaction --prefer-dist --no-progress + - save_cache: + key: composer-v1-{{ checksum "composer.lock" }} + paths: + - .composer-cache +``` + +To discard all previously saved entries, for example after a corrupted cache, change the `v1` in the key prefix to `v2` in both places. + +## Docker and BuildKit {#docker-and-buildkit} + +In Docker builds, a BuildKit cache mount lets the Composer cache persist from one build to the next, without being copied into the resulting image: + +```dockerfile +# syntax=docker/dockerfile:1 +FROM php:8.4-cli +RUN apt-get update && apt-get install -y --no-install-recommends git unzip \ + && rm -rf /var/lib/apt/lists/* +WORKDIR /app +COPY . . +RUN --mount=type=bind,from=composer/composer:2-bin,source=/composer,target=/usr/bin/composer \ + --mount=type=cache,target=/tmp/composer-cache \ + COMPOSER_CACHE_DIR=/tmp/composer-cache \ + composer install --no-interaction --prefer-dist --no-progress +``` + +Run `composer install` in an image with the same PHP version and extensions as the image your application runs in. This example does so by installing in the application image itself and mounting the Composer binary from the [`composer/composer:2-bin` image](../00-intro.md#docker-image) only for the duration of the install step, so the Composer binary does not end up in the resulting image. Do not run the install in the full `composer` or `composer/composer` images instead: they ship the latest PHP version with only a few extensions, so `composer install` would fail its platform requirement checks for many projects, or produce a `vendor/` directory meant for a different PHP environment than the one your application runs in. + +BuildKit keeps cache mounts on the builder that ran the build. They are not included in exported build caches such as `--cache-to`, so on CI runners that start fresh for every job the cache mount is empty in every build, unless you use a persistent builder or a tool that saves and restores cache mounts, like [buildkit-cache-dance](https://github.com/reproducible-containers/buildkit-cache-dance). + +Exclude `vendor/` and any Composer cache directory inside your project in `.dockerignore`, so `COPY . .` does not copy them into the image. + +Independently of the Composer cache, Docker reuses the result of a build step (a layer) as long as the files copied before it did not change. With `COPY . .` before `composer install`, any change to your application's source therefore reruns the install. If your Composer scripts and plugins do not need the application source, you can copy only `composer.json` and `composer.lock` first, install, and copy the rest of the source afterwards, so the install step is only rerun when dependencies change. As the autoloader cannot be generated before the source is copied, generate it in a separate step: + +```dockerfile +COPY composer.json composer.lock ./ +RUN --mount=type=bind,from=composer/composer:2-bin,source=/composer,target=/usr/bin/composer \ + --mount=type=cache,target=/tmp/composer-cache \ + COMPOSER_CACHE_DIR=/tmp/composer-cache \ + composer install --no-interaction --prefer-dist --no-progress --no-autoloader +COPY . . +RUN --mount=type=bind,from=composer/composer:2-bin,source=/composer,target=/usr/bin/composer \ + composer dump-autoload --optimize +``` + +Every `RUN` step that calls `composer`, like the `composer dump-autoload` step above, needs the bind mount, because the Composer binary is only available while it is mounted. + +If your scripts or plugins do need application files, keep copying the full source before `composer install`. Do not disable scripts or plugins with `--no-scripts` or `--no-plugins` only to get more layer reuse, as the resulting `vendor/` directory would be missing whatever they generate. + +## Diagnosing cache problems {#diagnosing-cache-problems} + +When a build that restored a cache behaves differently from a build without one, first run it again without restoring the cache, for example by changing the cache key, to find out whether the cache is the cause at all. Locally, you can find and empty the Composer cache with these commands: + +```sh +composer config cache-dir --absolute +composer clear-cache +``` + +In CI, also check which key the restored entry was saved under, and which job, branch and build environment saved it. A restored `vendor/` directory is most commonly stale because the key did not account for install flags, files generated by Composer plugins or scripts, or files modified inside `vendor/`. + +A reliable cache setup has three properties: the build still works when no cache entry is restored, a restored entry never supplies secrets, and the key prevents a build from restoring a `vendor/` directory installed for a different build environment. + +## Further reading {#further-reading} + +- [Composer configuration: cache settings](../06-config.md#cache-dir) +- [Composer CLI: `clear-cache`](../03-cli.md#clear-cache--clearcache--cc) +- [GitHub Actions dependency caching](https://docs.github.com/actions/reference/workflows-and-actions/dependency-caching) +- [ramsey/composer-install](https://github.com/ramsey/composer-install) +- [GitLab CI/CD cache examples](https://docs.gitlab.com/ci/caching/examples/) +- [Bitbucket Pipelines dependency caches](https://support.atlassian.com/bitbucket-cloud/docs/cache-dependencies/) +- [CircleCI dependency caching](https://circleci.com/docs/guides/optimize/caching/) diff --git a/src/articles/composer-platform-dependencies.md b/src/articles/composer-platform-dependencies.md new file mode 100644 index 0000000..67cec0a --- /dev/null +++ b/src/articles/composer-platform-dependencies.md @@ -0,0 +1,77 @@ +--- +description: "Making your package depend on specific Composer versions" +--- + +# Composer platform dependencies {#composer-platform-dependencies} + +## What are platform dependencies {#what-are-platform-dependencies} + +Composer makes information about the environment Composer runs in available as virtual packages. This allows other +packages to define dependencies ([require](../04-schema.md#require), [conflict](../04-schema.md#conflict), +[provide](../04-schema.md#provide), [replace](../04-schema.md#replace)) on different aspects of the platform, like PHP, +extensions or system libraries, including version constraints. + +When you require one of the platform packages no code is installed. The version numbers of platform packages are +derived from the environment Composer is executed in and they cannot be updated or removed. They can however be +overwritten for the purposes of dependency resolution with a [platform configuration](../06-config.md#platform). + +**For example:** If you are executing `composer update` with a PHP interpreter in version +`7.4.42`, then Composer automatically adds a package to the pool of available packages +called `php` and assigns version `7.4.42` to it. + +That's how packages can add a dependency on the used PHP version: + +```json +{ + "require": { + "php": ">=7.4" + } +} +``` + +Composer will check this requirement against the currently used PHP version when running the composer command. + +### Different types of platform packages {#different-types-of-platform-packages} + +The following types of platform packages exist and can be depended on: + +1. PHP (`php` and the subtypes: `php-64bit`, `php-ipv6`, `php-zts` `php-debug`) +2. PHP Extensions (`ext-*`, e.g. `ext-mbstring`) +3. PHP Libraries (`lib-*`, e.g. `lib-curl`) +4. Composer (`composer`, `composer-plugin-api`, `composer-runtime-api`) + +To see the complete list of platform packages available in your environment +you can run `php composer.phar show --platform` (or `show -p` for short). + +The differences between the various Composer platform packages are explained further in this document. + +## Plugin package `composer-plugin-api` {#plugin-package-composer-plugin-api} + +You can modify Composer's behavior with [plugin](plugins.md) packages. Composer provides a set of versioned APIs for +plugins. Because internal Composer changes may **not** change the plugin APIs, the API version may not increase every +time the Composer version increases. E.g. In Composer version `2.3.12`, the `composer-plugin-api` version could still +be `2.2.0`. + +## Runtime package `composer-runtime-api` {#runtime-package-composer-runtime-api} + +When applications which were installed with Composer are run (either on CLI or through a web request), they require the +`vendor/autoload.php` file, typically as one of the first lines of executed code. Invocations of the Composer +autoloader are considered the application "runtime". + +Starting with version 2.0, Composer makes [additional features](../07-runtime.md) (besides registering the class autoloader) available to the application runtime environment. + +Similar to `composer-plugin-api`, not every Composer release adds new runtime features, +thus the version of `composer-runtime-api` is also increased independently from Composer's version. + +## Composer package `composer` {#composer-package-composer} + +Starting with Composer 2.2.0, a new platform package called `composer` is available, which represents the exact +Composer version that is executed. Packages depending on this platform package can therefore depend on (or conflict +with) individual Composer versions to cover edge cases where neither the `composer-runtime-api` version nor the +`composer-plugin-api` was changed. + +Because this option was introduced with Composer 2.2.0, it is recommended to add a `composer-plugin-api` dependency on +at least `>=2.2.0` to provide a more meaningful error message for users running older Composer versions. + +In general, depending on `composer-plugin-api` or `composer-runtime-api` is always recommended +over depending on concrete Composer versions with the `composer` platform package. diff --git a/en-back/articles/custom-installers.md b/src/articles/custom-installers.md similarity index 72% rename from en-back/articles/custom-installers.md rename to src/articles/custom-installers.md index 98a9a22..1502feb 100644 --- a/en-back/articles/custom-installers.md +++ b/src/articles/custom-installers.md @@ -1,19 +1,29 @@ - +--- +description: "Modify the way certain types of packages are installed" +--- -# Setting up and using custom installers +# Setting up and using custom installers {#setting-up-and-using-custom-installers} -## Synopsis +## Synopsis {#synopsis} -At times it may be necessary for a package to require additional actions during +At times, it may be necessary for a package to require additional actions during installation, such as installing packages outside of the default `vendor` library. In these cases you could consider creating a Custom Installer to handle your specific logic. -## Calling a Custom Installer +## Alternative to custom installers with Composer 2.1+ {#alternative-to-custom-installers-with-composer-21} + +As of Composer 2.1, the `Composer\InstalledVersions` class has a +[`getInstalledPackagesByType`](../07-runtime.md#knowing-which-packages-of-a-given-type-are-installed) +method which can let you figure out at runtime which plugins/modules/extensions are installed. + +It is highly recommended to use that instead of building new custom +installers if you are building a new application. This has the advantage of leaving +all vendor code in the vendor directory, and not requiring custom installer code. + +## Calling a Custom Installer {#calling-a-custom-installer} Suppose that your project already has a Custom Installer for specific modules then invoking that installer is a matter of defining the correct [type][1] in @@ -48,10 +58,10 @@ An example composer.json of such a template package would be: > time the template package is installed, template packages should require > the plugin package. -## Creating an Installer +## Creating an Installer {#creating-an-installer} A Custom Installer is defined as a class that implements the -[`Composer\Installer\InstallerInterface`][3] and is usually distributed in a +[`Composer\Installer\InstallerInterface`][4] and is usually distributed in a Composer Plugin. A basic Installer Plugin would thus compose of three files: @@ -60,7 +70,7 @@ A basic Installer Plugin would thus compose of three files: 2. The Plugin class, e.g.: `My\Project\Composer\Plugin.php`, containing a class that implements `Composer\Plugin\PluginInterface`. 3. The Installer class, e.g.: `My\Project\Composer\Installer.php`, containing a class that implements `Composer\Installer\InstallerInterface`. -### composer.json +### composer.json {#composerjson} The package file is the same as any other package file but with the following requirements: @@ -68,7 +78,7 @@ requirements: 1. the [type][1] attribute must be `composer-plugin`. 2. the [extra][2] attribute must contain an element `class` defining the class name of the plugin (including namespace). If a package contains - multiple plugins this can be array of class names. + multiple plugins, this can be an array of class names. Example: @@ -84,12 +94,18 @@ Example: "class": "phpDocumentor\\Composer\\TemplateInstallerPlugin" }, "require": { - "composer-plugin-api": "1.0.0" + "composer-plugin-api": "^1.0" + }, + "require-dev": { + "composer/composer": "^1.3" } } ``` -### The Plugin class +The example above has Composer itself in its require-dev, which allows you to use +the Composer classes in your test suite for example. + +### The Plugin class {#the-plugin-class} The class defining the Composer plugin must implement the [`Composer\Plugin\PluginInterface`][3]. It can then register the Custom @@ -119,7 +135,7 @@ class TemplateInstallerPlugin implements PluginInterface } ``` -### The Custom Installer class +### The Custom Installer class {#the-custom-installer-class} The class that executes the custom installation should implement the [`Composer\Installer\InstallerInterface`][4] (or extend another installer that @@ -141,8 +157,8 @@ source for the exact signature): invoked with the update argument. * **uninstall()**, here you can determine the actions that need to be executed when the package needs to be removed. -* **getInstallPath()**, this method should return the location where the - package is to be installed, _relative from the location of composer.json._ +* **getInstallPath()**, this method should return the absolute path where the + package is to be installed. The path _must not end with a slash._ Example: @@ -157,9 +173,9 @@ use Composer\Installer\LibraryInstaller; class TemplateInstaller extends LibraryInstaller { /** - * {@inheritDoc} + * @inheritDoc */ - public function getPackageBasePath(PackageInterface $package) + public function getInstallPath(PackageInterface $package) { $prefix = substr($package->getPrettyName(), 0, 23); if ('phpdocumentor/template-' !== $prefix) { @@ -174,7 +190,7 @@ class TemplateInstaller extends LibraryInstaller } /** - * {@inheritDoc} + * @inheritDoc */ public function supports($packageType) { @@ -183,7 +199,7 @@ class TemplateInstaller extends LibraryInstaller } ``` -The example demonstrates that it is quite simple to extend the +The example demonstrates that it is possible to extend the [`Composer\Installer\LibraryInstaller`][5] class to strip a prefix (`phpdocumentor/template-`) and use the remaining part to assemble a completely different installation path. @@ -193,6 +209,6 @@ different installation path. [1]: ../04-schema.md#type [2]: ../04-schema.md#extra -[3]: https://github.com/composer/composer/blob/master/src/Composer/Plugin/PluginInterface.php -[4]: https://github.com/composer/composer/blob/master/src/Composer/Installer/InstallerInterface.php -[5]: https://github.com/composer/composer/blob/master/src/Composer/Installer/LibraryInstaller.php +[3]: https://github.com/composer/composer/blob/main/src/Composer/Plugin/PluginInterface.php +[4]: https://github.com/composer/composer/blob/main/src/Composer/Installer/InstallerInterface.php +[5]: https://github.com/composer/composer/blob/main/src/Composer/Installer/LibraryInstaller.php diff --git a/src/articles/handling-private-packages.md b/src/articles/handling-private-packages.md new file mode 100644 index 0000000..0fa27f9 --- /dev/null +++ b/src/articles/handling-private-packages.md @@ -0,0 +1,134 @@ +--- +description: "Hosting and installing private Composer packages" +--- + +# Handling private packages {#handling-private-packages} + +# Private Packagist {#private-packagist} + +[Private Packagist](https://packagist.com/?utm_source=getcomposer.org&utm_medium=docs&utm_campaign=privatepackages) +is a commercial Composer repository service by the team behind Composer and +Packagist.org. It hosts your private packages and mirrors your third-party +dependencies, including their zip files, so installs are faster and you can deploy +even when GitHub or another source is down. + +Private Packagist also: + +- updates package information through webhooks from GitHub, GitLab and Bitbucket + as soon as you push, without waiting for a rebuild +- gives every developer and CI environment its own authentication token, with + access control per team and package, synchronized with your GitHub, GitLab or + Bitbucket organization +- offers suborganizations: separate repositories for clients or projects, each + with its own packages and access +- monitors your projects' `composer.lock` files for security advisories and alerts + you by email, Slack or Microsoft Teams +- blocks malware-flagged package versions on the server for every Composer version, + and can hold back new releases with a cooldown period +- comments on pull requests with a summary of all dependency changes +- shows which of your projects use a package, with install statistics and an + overview of licenses +- lets you distribute packages to your customers, with a repository per customer + and access limited by version or expiration date + +Private Packagist is available as a cloud service or self-hosted on your own +infrastructure. + +Part of Private Packagist's revenue funds the development and hosting of Composer +and Packagist.org. See +[packagist.com](https://packagist.com/?utm_source=getcomposer.org&utm_medium=docs&utm_campaign=privatepackagesmore) +for features, pricing and a free trial, and the +[Satis documentation](https://composer.github.io/satis/private-packagist) for a +comparison of Satis and Private Packagist. + +# Satis {#satis} + +[Satis](https://composer.github.io/satis/) is an open source static `composer` +repository generator. It is a bit like an ultra-lightweight, static file-based +version of packagist and can be used to host the metadata of your company's +private packages, or your own. See the [Satis documentation](https://composer.github.io/satis/) +for how to install, configure and run it. + +# Using a private repository {#using-a-private-repository} + +In your projects all you need to add is your own Composer repository URL, +then you can require your private packages and everything should work smoothly. +You don't need to copy all your repositories in every project anymore. Only that +one unique repository that will update itself. + +```json +{ + "repositories": [ { "type": "composer", "url": "http://packages.example.org/" } ], + "require": { + "company/package": "1.2.0", + "company/package2": "1.5.2", + "company/package3": "dev-master" + } +} +``` + +## Security {#security} + +To secure your private repository you can host it over SSH or SSL using a client +certificate. In your project you can use the `options` parameter to specify the +connection options for the server. + +Example using a custom repository using SSH (requires the SSH2 PECL extension): + +```json +{ + "repositories": [{ + "type": "composer", + "url": "ssh2.sftp://example.org", + "options": { + "ssh2": { + "username": "composer", + "pubkey_file": "/home/composer/.ssh/id_rsa.pub", + "privkey_file": "/home/composer/.ssh/id_rsa" + } + } + }] +} +``` + +> **Tip:** See [ssh2 context options](https://secure.php.net/manual/en/wrappers.ssh2.php#refsect1-wrappers.ssh2-options) for more information. + +Example using SSL/TLS (HTTPS) using a client certificate: + +```json +{ + "repositories": [{ + "type": "composer", + "url": "https://example.org", + "options": { + "ssl": { + "local_cert": "/home/composer/.ssl/composer.pem" + } + } + }] +} +``` + +> **Tip:** See [ssl context options](https://secure.php.net/manual/en/context.ssl.php) for more information. + +Example using a custom HTTP Header field for token authentication: + +```json +{ + "repositories": [{ + "type": "composer", + "url": "https://example.org", + "options": { + "http": { + "header": [ + "API-TOKEN: YOUR-API-TOKEN" + ] + } + } + }] +} +``` + +## Authentication {#authentication} + +Authentication can be handled in [several different ways](authentication-for-private-packages.md). diff --git a/src/articles/plugins.md b/src/articles/plugins.md new file mode 100644 index 0000000..cf44901 --- /dev/null +++ b/src/articles/plugins.md @@ -0,0 +1,393 @@ +--- +description: "Modify and extend Composer's functionality" +--- + +# Setting up and using plugins {#setting-up-and-using-plugins} + +## Synopsis {#synopsis} + +You may wish to alter or expand Composer's functionality with your own. For +example if your environment poses special requirements on the behaviour of +Composer which do not apply to the majority of its users or if you wish to +accomplish something with Composer in a way that is not desired by most users. + +In these cases you could consider creating a plugin to handle your +specific logic. + +## Creating a Plugin {#creating-a-plugin} + +A plugin is a regular Composer package which ships its code as part of the +package and may also depend on further packages. + +### Plugin Package {#plugin-package} + +The package file is the same as any other package file but with the following +requirements: + +1. The [type][1] attribute must be `composer-plugin`. +2. The [extra][2] attribute must contain an element `class` defining the + class name of the plugin (including namespace). If a package contains + multiple plugins, this can be an array of class names. +3. You must require the special package called `composer-plugin-api` + to define which Plugin API versions your plugin is compatible with. + Requiring this package doesn't actually include any extra dependencies, + it only specifies which version of the plugin API to use. + +> **Note:** When developing a plugin, although not required, it's useful to add +> a require-dev dependency on `composer/composer` to have IDE autocompletion on Composer classes. + +The required version of the `composer-plugin-api` follows the same [rules][7] +as a normal package's rules. + +The current Composer plugin API version is `2.11.0`. + +An example of a valid plugin `composer.json` file (with the autoloading +part omitted and an optional require-dev dependency on `composer/composer` for IDE auto completion): + +```json +{ + "name": "my/plugin-package", + "type": "composer-plugin", + "require": { + "composer-plugin-api": "^2.0" + }, + "require-dev": { + "composer/composer": "^2.0" + }, + "extra": { + "class": "My\\Plugin" + } +} +``` + +### Plugin Class {#plugin-class} + +Every plugin has to supply a class which implements the +[`Composer\Plugin\PluginInterface`][3]. The `activate()` method of the plugin +is called after the plugin is loaded and receives an instance of +[`Composer\Composer`][4] as well as an instance of +[`Composer\IO\IOInterface`][5]. Using these two objects all configuration can +be read and all internal objects and state can be manipulated as desired. + +Example: + +```php +getInstallationManager()->addInstaller($installer); + } +} +``` + +## Event Handler {#event-handler} + +Furthermore plugins may implement the +[`Composer\EventDispatcher\EventSubscriberInterface`][6] in order to have its +event handlers automatically registered with the `EventDispatcher` when the +plugin is loaded. + +To register a method to an event, implement the method `getSubscribedEvents()` +and have it return an array. The array key must be the +[event name](./scripts.md#event-names) +and the value is the name of the method in this class to be called. + +> **Note:** If you don't know which event to listen to, you can run a Composer +> command with the COMPOSER_DEBUG_EVENTS=1 environment variable set, which might +> help you identify what event you are looking for. + +```php +public static function getSubscribedEvents() +{ + return [ + 'post-autoload-dump' => 'methodToBeCalled', + // ^ event name ^ ^ method name ^ + ]; +} +``` + +By default, the priority of an event handler is set to 0. The priority can be +changed by attaching a tuple where the first value is the method name, as +before, and the second value is an integer representing the priority. +Higher integers represent higher priorities. Priority 2 is called before +priority 1, etc. + +```php +public static function getSubscribedEvents() +{ + return [ + // Will be called before events with priority 0 + 'post-autoload-dump' => ['methodToBeCalled', 1] + ]; +} +``` + +If multiple methods should be called, then an array of tuples can be attached +to each event. The tuples do not need to include the priority. If it is +omitted, it will default to 0. + +```php +public static function getSubscribedEvents() +{ + return [ + 'post-autoload-dump' => [ + ['methodToBeCalled' ], // Priority defaults to 0 + ['someOtherMethodName', 1], // This fires first + ] + ]; +} +``` + +Here's a complete example: + +```php +composer = $composer; + $this->io = $io; + } + + public function deactivate(Composer $composer, IOInterface $io) + { + } + + public function uninstall(Composer $composer, IOInterface $io) + { + } + + public static function getSubscribedEvents() + { + return [ + PluginEvents::PRE_FILE_DOWNLOAD => [ + ['onPreFileDownload', 0] + ], + ]; + } + + public function onPreFileDownload(PreFileDownloadEvent $event) + { + $protocol = parse_url($event->getProcessedUrl(), PHP_URL_SCHEME); + + if ($protocol === 's3') { + // ... + } + } +} +``` + +## Plugin capabilities {#plugin-capabilities} + +Composer defines a standard set of capabilities which may be implemented by plugins. +Their goal is to make the plugin ecosystem more stable as it reduces the need to mess +with [`Composer\Composer`][4]'s internal state, by providing explicit extension points +for common plugin requirements. + +Capable Plugins classes must implement the [`Composer\Plugin\Capable`][8] interface +and declare their capabilities in the `getCapabilities()` method. +This method must return an array, with the _key_ as a Composer Capability class name, +and the _value_ as the Plugin's own implementation class name of said Capability: + +```php + 'My\Composer\CommandProvider', + ]; + } +} +``` + +### Command provider {#command-provider} + +The [`Composer\Plugin\Capability\CommandProvider`][9] capability allows to register +additional commands for Composer: + +```php +setName('custom-plugin-command'); + } + + protected function execute(InputInterface $input, OutputInterface $output): int + { + $output->writeln('Executing'); + + return 0; + } +} +``` + +Now the `custom-plugin-command` is available alongside Composer commands. + +> _Composer commands are based on the [Symfony Console Component][10]._ + +## Running plugins manually {#running-plugins-manually} + +Plugins for an event can be run manually by the `run-script` command. This works the same way as +[running scripts manually](scripts.md#running-scripts-manually). + +If it is another type of plugin the best way to test it is probably using a [path repository](../05-repositories.md#path) +to require the plugin in a test project. If you are developing locally and want to test frequently, you can make sure the path repository uses symlinks, as changes are updated immediately. Otherwise, you'll have to run `rm -rf vendor && composer update` +every time you want to install/run it again. + +## Using Plugins {#using-plugins} + +Plugin packages are automatically loaded as soon as they are installed and will +be loaded when Composer starts up if they are found in the current project's +list of installed packages. Additionally all plugin packages installed in the +`COMPOSER_HOME` directory using the Composer global command are loaded before +local project plugins are loaded. + +> You may pass the `--no-plugins` option to Composer commands to disable all +> installed plugins. This may be particularly helpful if any of the plugins +> causes errors and you wish to update or uninstall it. + +## Plugin Helpers {#plugin-helpers} + +As of Composer 2, due to the fact that DownloaderInterface can sometimes return Promises +and have been split up in more steps than they used to, we provide a [SyncHelper][11] +to make downloading and installing packages easier. + +## Plugin Extra Attributes {#plugin-extra-attributes} + +A few special plugin capabilities can be unlocked using extra attributes in the plugin's composer.json. + +### class {#class} + +[See above](#plugin-package) for an explanation of the class attribute and how it works. + +### plugin-modifies-downloads {#plugin-modifies-downloads} + +Some special plugins need to update package download URLs before they get downloaded. + +As of Composer 2.0, all packages are downloaded before they get installed. This means +on the first installation, your plugin is not yet installed when the download occurs, +and it does not get a chance to update the URLs on time. + +Specifying `{"extra": {"plugin-modifies-downloads": true}}` in your composer.json will +hint to Composer that the plugin should be installed on its own before proceeding with +the rest of the package downloads. This slightly slows down the overall installation +process however, so do not use it in plugins which do not absolutely require it. + +### plugin-modifies-install-path {#plugin-modifies-install-path} + +Some special plugins modify the install path of packages. + +As of Composer 2.2.9, you can specify `{"extra": {"plugin-modifies-install-path": true}}` +in your composer.json to hint to Composer that the plugin should be activated as soon +as possible to prevent any bad side-effects from Composer assuming packages are installed +in another location than they actually are. + +### plugin-optional {#plugin-optional} + +Because Composer plugins can be used to perform actions which are necessary for installing +a working application, like modifying which path files get stored in, skipping required +plugins unintentionally can result in broken applications. So, in non-interactive mode, +Composer will fail if a new plugin is not listed in ["allow-plugins"](../06-config.md#allow-plugins) +to force users to decide if they want to execute the plugin, to avoid silent failures. + +As of Composer 2.5.3, you can use the setting `{"extra": {"plugin-optional": true}}` on +your plugin, to tell Composer that skipping the plugin has no catastrophic consequences, +and it can safely be disabled in non-interactive mode if it is not yet listed in +"allow-plugins". The next interactive run of Composer will still prompt users to choose if +they want to enable or disable the plugin. + +## Plugin Autoloading {#plugin-autoloading} + +Due to plugins being loaded by Composer at runtime, and to ensure that plugins which +depend on other packages can function correctly, a runtime autoloader is created whenever +a plugin is loaded. That autoloader is only configured to load with the plugin dependencies, +so you may not have access to all the packages which are installed. + +## Static Analysis support {#static-analysis-support} + +As of Composer 2.3.7 we ship a `phpstan/rules.neon` PHPStan config file, which provides additional error checking when working on Composer plugins. + +### Usage with [PHPStan Extension Installer][13] {#usage-with-phpstan-extension-installer13} + +The necessary configuration files are automatically loaded, in case your plugin projects declares a dependency to `phpstan/extension-installer`. + +### Alternative manual installation {#alternative-manual-installation} + +To make use of it, your Composer plugin project needs a [PHPStan config file][12], which includes the `phpstan/rules.neon` file: + +```neon +includes: + - vendor/composer/composer/phpstan/rules.neon + +// your remaining config.. +``` + +[1]: ../04-schema.md#type +[2]: ../04-schema.md#extra +[3]: https://github.com/composer/composer/blob/main/src/Composer/Plugin/PluginInterface.php +[4]: https://github.com/composer/composer/blob/main/src/Composer/Composer.php +[5]: https://github.com/composer/composer/blob/main/src/Composer/IO/IOInterface.php +[6]: https://github.com/composer/composer/blob/main/src/Composer/EventDispatcher/EventSubscriberInterface.php +[7]: ../01-basic-usage.md#package-version-constraints +[8]: https://github.com/composer/composer/blob/main/src/Composer/Plugin/Capable.php +[9]: https://github.com/composer/composer/blob/main/src/Composer/Plugin/Capability/CommandProvider.php +[10]: https://symfony.com/doc/current/components/console.html +[11]: https://github.com/composer/composer/blob/main/src/Composer/Util/SyncHelper.php +[12]: https://phpstan.org/config-reference#multiple-files +[13]: https://github.com/phpstan/extension-installer#usage diff --git a/src/articles/repository-priorities.md b/src/articles/repository-priorities.md new file mode 100644 index 0000000..266a429 --- /dev/null +++ b/src/articles/repository-priorities.md @@ -0,0 +1,95 @@ +--- +description: "Configure which packages are found in which repositories" +--- + +# Repository priorities {#repository-priorities} + +## Canonical repositories {#canonical-repositories} + +When Composer resolves dependencies, it will look up a given package in the +topmost repository. If that repository does not contain the package, it +goes on to the next one, until one repository contains it and the process ends. + +Canonical repositories are better for a few reasons: + +- Performance wise, it is more efficient to stop looking for a package once it + has been found somewhere. It also avoids loading duplicate packages in case + the same package is present in several of your repositories. +- Security wise, it is safer to treat them canonically as it means that packages you + expect to come from your most important repositories will never be loaded from + another repository instead. Let's + say you have a private repository which is not canonical, and you require your + private package `foo/bar ^2.0` for example. Now if someone publishes + `foo/bar 2.999` to packagist.org, suddenly Composer will pick that package as it + has a higher version than your latest release (say 2.4.3), and you end up installing + something you may not have meant to. However, if the private repository is canonical, + that 2.999 version from packagist.org will not be considered at all. + +There are however a few cases where you may want to specifically load some packages +from a given repository, but not all. Or you may want a given repository to not be +canonical, and to be only preferred if it has higher package versions than the +repositories defined below. + +## Default behavior {#default-behavior} + +By default in Composer 2.x all repositories are canonical. Composer 1.x treated +all repositories as non-canonical. + +Another default is that the packagist.org repository is always added implicitly +as the last repository, unless you [disable it](../05-repositories.md#disabling-packagistorg). + +## Making repositories non-canonical {#making-repositories-non-canonical} + +You can add the canonical option to any repository to disable this default behavior +and make sure Composer keeps looking in other repositories, even if that repository +contains a given package. + +```json +{ + "repositories": [ + { + "type": "composer", + "url": "https://example.org", + "canonical": false + } + ] +} +``` + +## Filtering packages {#filtering-packages} + +You can also filter packages which a repository will be able to load, either by +selecting which ones you want, or by excluding those you do not want. + +For example here we want to pick only the package `foo/bar` and all the packages from +`some-vendor/` from this Composer repository. + +```json +{ + "repositories": [ + { + "type": "composer", + "url": "https://example.org", + "only": ["foo/bar", "some-vendor/*"] + } + ] +} +``` + +And in this other example we exclude `toy/package` from a repository, which +we may not want to load in this project. + +```json +{ + "repositories": [ + { + "type": "composer", + "url": "https://example.org", + "exclude": ["toy/package"] + } + ] +} +``` + +Both `only` and `exclude` should be arrays of package names, which can also +contain wildcards (`*`), which will match any character. diff --git a/src/articles/resolving-merge-conflicts.md b/src/articles/resolving-merge-conflicts.md new file mode 100644 index 0000000..cdbd396 --- /dev/null +++ b/src/articles/resolving-merge-conflicts.md @@ -0,0 +1,162 @@ +--- +description: "On gracefully resolving conflicts while merging" +--- + +# Resolving merge conflicts {#resolving-merge-conflicts} + +When working as a team on the same Composer project, you will eventually run into a scenario +where multiple people added, updated or removed something in the `composer.json` and +`composer.lock` files in multiple branches. When those branches are eventually merged +together, you will get merge conflicts. Resolving these merge conflicts is not as straight +forward as on other files, especially not regarding the `composer.lock` file. + +> **Note:** It might not immediately be obvious why text based merging is not possible for +> lock files, so let's imagine the following example where we want to merge two branches; +> +> - Branch 1 has added package A which requires package B. Package B is locked at version `1.0.0`. +> - Branch 2 has added package C which conflicts with all versions below `1.2.0` of package B. +> +> A text based merge would result in package A version `1.0.0`, package B version `1.0.0` +> and package C version `1.0.0`. This is an invalid result, as the conflict of package C +> was not considered and would require an upgrade of package B. + +## 1. Reapplying changes {#1-reapplying-changes} + +The safest method to merge Composer files is to accept the version from one branch and apply +the changes from the other branch. + +An example where we have two branches: + +1. Package 'A' has been added +2. Package 'B' has been removed and package 'C' is added. + +To resolve the conflict when we merge these two branches: + +- We choose the branch that has the most changes, and accept the `composer.json` and `composer.lock` + files from that branch. In this case, we choose the Composer files from branch 2. +- We reapply the changes from the other branch (branch 1). In this case we have to run + `composer require package/A` again. + +## 2. Validating your merged files {#2-validating-your-merged-files} + +Before committing, make sure the resulting `composer.json` and `composer.lock` files are valid. +To do this, run the following commands: + +```shell +php composer.phar validate +php composer.phar install [--dry-run] +``` + +## Automating merge conflict resolving with git {#automating-merge-conflict-resolving-with-git} + +Some improvement _could_ be made to git's conflict resolving by using a custom git merge driver. + +An example of this can be found at [balbuf's composer git merge driver](https://github.com/balbuf/composer-git-merge-driver). + +### Handling the trivial case {#handling-the-trivial-case} + +In a small number of cases, only the `content-hash` will show as being conflicted as the version control system may +be able to cleanly merge the remaining text in the file. This typically happens when two different packages have +been added or updated in each side of the merge, with no overlapping nor conflicting dependencies. When this occurs, +running `composer update --lock` may be enough to remove the conflict marker and update the lock file hash. You may +also run any other variant of `composer update` to remove the conflict marker and potentially update packages. + +## Important considerations {#important-considerations} + +Keep in mind that whenever merge conflicts occur on the lock file, the information, about the exact version +new packages were locked on for one of the branches, is lost. When package A in branch 1 is constrained +as `^1.2.0` and locked as `1.2.0`, it might get updated when branch 2 is used as baseline and a new +`composer require package/A:^1.2.0` is executed, as that will use the most recent version that the +constraint allows when possible. There might be a version 1.3.0 for that package available by now, which +will now be used instead. + +Choosing the correct [version constraints](../articles/versions.md) and making sure the packages adhere +to [semantic versioning](https://semver.org/) when using +[next significant release operators](versions.md#next-significant-release-operators) should make sure +that merging branches does not break anything by accidentally updating a dependency. + +# Recovering from incorrectly resolved merge conflicts {#recovering-from-incorrectly-resolved-merge-conflicts} + +If the above steps aren't followed and text based merges have been done anyway, +your Composer project might be in a state where unexpected behaviour is observed +because the `composer.lock` file is not (fully) in sync with the `composer.json` file. + +There are two things that can happen here: + +1. There are packages in the `require` or `require-dev` section of the `composer.json` file that are not in the lock file and as a result never installed + +> **Note:** Starting from Composer release 2.5, having packages that are required but not present in `composer.lock` results in an error when running `install` + +2. There are packages in the `composer.lock` file that are not a direct or indirect dependency of any of the packages required. As a result, a package is installed, even though running `composer why vendor/package` says it is not required. + +There are several ways to fix these issues; + +## A. Start from scratch {#a-start-from-scratch} + +The easiest but most impactful option is run a `composer update` to resolve to a correct state from scratch. + +A drawback to this is that previously locked package versions are now updated, as the information about previous package versions has been lost. If all your dependencies follow [semantic versioning](https://semver.org/) and your [version constraints](../articles/versions.md) are using [next significant release operators](versions.md#next-significant-release-operators) this should not be an issue, otherwise you might inadvertently break your application. + +## B. Reconstruct from the git history {#b-reconstruct-from-the-git-history} + +An option that is probably not very feasible in a lot of situations but that deserves an honorable mention; + +It might be possible to reconstruct the correct package state by going back into the git history and finding the most recent valid `composer.lock` file, and re-requiring the new dependencies from there. + +## C. Resolve issues manually {#c-resolve-issues-manually} + +There is an option to recover from a discrepancy between the `composer.json` and `composer.lock` file without having to dig through the git history or starting from scratch. For that, we need to solve issue 1 and 2 separately. + +### 1. Detecting and fixing missing required packages {#1-detecting-and-fixing-missing-required-packages} + +To detect any package that is required but not installed, you can simply run: + +```shell +php composer.phar validate +``` + +If there are packages that are required but not installed, you should get output similar to this: + +```shell +./composer.json is valid but your composer.lock has some errors +# Lock file errors +- Required package "vendor/package-name" is not present in the lock file. +This usually happens when composer files are incorrectly merged or the composer.json file is manually edited. +Read more about correctly resolving merge conflicts https://getcomposer.org/doc/articles/resolving-merge-conflicts.md +and prefer using the "require" command over editing the composer.json file directly https://getcomposer.org/doc/03-cli.md#require-r +``` + +To recover from this, simply run `composer update vendor/package-name` for each package listed here. After doing this for each package listed here, running `composer validate` again should result in no lock file errors: + +```shell +./composer.json is valid +``` + +### 2. Detecting and fixing superfluous packages {#2-detecting-and-fixing-superfluous-packages} + +To detect and fix packages that are locked but not a direct/indirect dependency, you can run the following command: + +```shell +php composer.phar remove --unused +``` + +If there are no packages locked that are not a dependency, the command will have the following output: + +```shell +No unused packages to remove +``` + +If there are packages to be cleaned up, the output will be as follows: + +```shell +vendor/package-name is not required in your composer.json and has not been removed +./composer.json has been updated +Running composer update vendor/package-name +Loading composer repositories with package information +Updating dependencies +Lock file operations: 0 installs, 0 updates, 1 removal + - Removing vendor/package-name (1.0) +Writing lock file +Installing dependencies from lock file (including require-dev) +Nothing to install, update or remove +``` diff --git a/src/articles/scripts.md b/src/articles/scripts.md new file mode 100644 index 0000000..1e160a4 --- /dev/null +++ b/src/articles/scripts.md @@ -0,0 +1,507 @@ +--- +description: "Script are callbacks that are called before/after installing packages" +--- + +# Scripts {#scripts} + +## What is a script? {#what-is-a-script} + +A script, in Composer's terms, can either be a PHP callback (defined as a +static method) or any command-line executable command. Scripts are useful +for executing a package's custom code or package-specific commands during +the Composer execution process. + +As of Composer 2.5 scripts can also be Symfony Console Command classes, +which allows you to easily run them including passing options. This is +however not recommended for handling events. + +> **Note:** Only scripts defined in the root package's `composer.json` are +> executed. If a dependency of the root package specifies its own scripts, +> Composer does not execute those additional scripts. + +## Event names {#event-names} + +Composer fires the following named events during its execution process: + +### Command Events {#command-events} + +- **pre-install-cmd**: occurs before the `install` command is executed with a + lock file present. +- **post-install-cmd**: occurs after the `install` command has been executed + with a lock file present. +- **pre-update-cmd**: occurs before the `update` command is executed, or before + the `install` command is executed without a lock file present. +- **post-update-cmd**: occurs after the `update` command has been executed, or + after the `install` command has been executed without a lock file present. +- **pre-status-cmd**: occurs before the `status` command is executed. +- **post-status-cmd**: occurs after the `status` command has been executed. +- **pre-archive-cmd**: occurs before the `archive` command is executed. +- **post-archive-cmd**: occurs after the `archive` command has been executed. +- **pre-autoload-dump**: occurs before the autoloader is dumped, either during + `install`/`update`, or via the `dump-autoload` command. +- **post-autoload-dump**: occurs after the autoloader has been dumped, either + during `install`/`update`, or via the `dump-autoload` command. +- **post-root-package-install**: occurs after the root package has been + installed during the `create-project` command (but before its + dependencies are installed). +- **post-create-project-cmd**: occurs after the `create-project` command has + been executed. + +### Installer Events {#installer-events} + +- **pre-operations-exec**: occurs before the install/upgrade/.. operations + are executed when installing a lock file. Plugins that need to hook into + this event will need to be installed globally to be usable, as otherwise + they would not be loaded yet when a fresh install of a project happens. + +### Package Events {#package-events} + +- **pre-package-install**: occurs before a package is installed. +- **post-package-install**: occurs after a package has been installed. +- **pre-package-update**: occurs before a package is updated. +- **post-package-update**: occurs after a package has been updated. +- **pre-package-uninstall**: occurs before a package is uninstalled. +- **post-package-uninstall**: occurs after a package has been uninstalled. + +### Plugin Events {#plugin-events} + +- **init**: occurs after a Composer instance is done being initialized. +- **command**: occurs before any Composer Command is executed on the CLI. It + provides you with access to the input and output objects of the program. +- **pre-file-download**: occurs before files are downloaded and allows + you to manipulate the `HttpDownloader` object prior to downloading files + based on the URL to be downloaded. +- **post-file-download**: occurs after package dist files are downloaded and + allows you to perform additional checks on the file if required. +- **pre-command-run**: occurs before a command is executed and allows you to + manipulate the `InputInterface` object's options and arguments to tweak + a command's behavior. +- **pre-pool-create**: occurs before the Pool of packages is created, and lets + you filter the list of packages that is going to enter the Solver. + +> **Note:** Composer makes no assumptions about the state of your dependencies +> prior to `install` or `update`. Therefore, you should not specify scripts +> that require Composer-managed dependencies in the `pre-update-cmd` or +> `pre-install-cmd` event hooks. If you need to execute scripts prior to +> `install` or `update` please make sure they are self-contained within your +> root package. + +## Defining scripts {#defining-scripts} + +The root JSON object in `composer.json` should have a property called +`"scripts"`, which contains pairs of named events and each event's +corresponding scripts. An event's scripts can be defined as either a string +(only for a single script) or an array (for single or multiple scripts.) + +For any given event: + +- Scripts execute in the order defined when their corresponding event is fired. +- An array of scripts wired to a single event can contain both PHP callbacks +and command-line executable commands. +- PHP classes and commands containing defined callbacks must be autoloadable +via Composer's autoload functionality. +- Callbacks can only autoload classes from psr-0, psr-4 and classmap +definitions. If a defined callback relies on functions defined outside of a +class, the callback itself is responsible for loading the file containing these +functions. + +Script definition example: + +```json +{ + "scripts": { + "post-update-cmd": "MyVendor\\MyClass::postUpdate", + "post-package-install": [ + "MyVendor\\MyClass::postPackageInstall" + ], + "post-install-cmd": [ + "MyVendor\\MyClass::warmCache", + "phpunit -c app/" + ], + "post-autoload-dump": [ + "MyVendor\\MyClass::postAutoloadDump" + ], + "post-create-project-cmd": [ + "php -r \"copy('config/local-example.php', 'config/local.php');\"" + ] + } +} +``` + +Using the previous definition example, here's the class `MyVendor\MyClass` +that might be used to execute the PHP callbacks: + +```php +getComposer(); + // do stuff + } + + public static function postAutoloadDump(Event $event) + { + $vendorDir = $event->getComposer()->getConfig()->get('vendor-dir'); + require $vendorDir . '/autoload.php'; + + some_function_from_an_autoloaded_file(); + } + + public static function postPackageInstall(PackageEvent $event) + { + $installedPackage = $event->getOperation()->getPackage(); + // do stuff + } + + public static function warmCache(Event $event) + { + // make cache toasty + } +} +``` + +**Note:** During a Composer `install` or `update` command run, a variable named +`COMPOSER_DEV_MODE` will be added to the environment. If the command was run +with the `--no-dev` flag, this variable will be set to 0, otherwise it will be +set to 1. The variable is also available while `dump-autoload` runs, and it +will be set to the same as the last `install` or `update` was run in. + +## Event classes {#event-classes} + +When an event is fired, your PHP callback receives as first argument a +`Composer\EventDispatcher\Event` object. This object has a `getName()` method +that lets you retrieve the event name. + +Depending on the [script types](#event-names) you will get various event +subclasses containing various getters with relevant data and associated +objects: + +- Base class: [`Composer\EventDispatcher\Event`](https://github.com/composer/composer/blob/main/src/Composer/EventDispatcher/Event.php) +- Command Events: [`Composer\Script\Event`](https://github.com/composer/composer/blob/main/src/Composer/Script/Event.php) +- Installer Events: [`Composer\Installer\InstallerEvent`](https://github.com/composer/composer/blob/main/src/Composer/Installer/InstallerEvent.php) +- Package Events: [`Composer\Installer\PackageEvent`](https://github.com/composer/composer/blob/main/src/Composer/Installer/PackageEvent.php) +- Plugin Events: + - init: [`Composer\EventDispatcher\Event`](https://github.com/composer/composer/blob/main/src/Composer/EventDispatcher/Event.php) + - command: [`Composer\Plugin\CommandEvent`](https://github.com/composer/composer/blob/main/src/Composer/Plugin/CommandEvent.php) + - pre-file-download: [`Composer\Plugin\PreFileDownloadEvent`](https://github.com/composer/composer/blob/main/src/Composer/Plugin/PreFileDownloadEvent.php) + - post-file-download: [`Composer\Plugin\PostFileDownloadEvent`](https://github.com/composer/composer/blob/main/src/Composer/Plugin/PostFileDownloadEvent.php) + +## Running scripts manually {#running-scripts-manually} + +If you would like to run the scripts for an event manually, the syntax is: + +```shell +php composer.phar run-script [--dev] [--no-dev] script +``` + +For example, `composer run-script post-install-cmd` will run any +**post-install-cmd** scripts and [plugins](plugins.md) that have been defined. + +You can also give additional arguments to the script handler by appending `--` +followed by the handler arguments. e.g. +`composer run-script post-install-cmd -- --check` will pass`--check` along to +the script handler. Those arguments are received as CLI arg by CLI handlers, +and can be retrieved as an array via `$event->getArguments()` by PHP handlers. + +## Writing custom commands {#writing-custom-commands} + +If you add custom scripts that do not fit one of the predefined event names +above, you can either run them with `run-script`, or as native +Composer commands. For example, the handler defined below is executable by +running `composer test`: + +```json +{ + "scripts": { + "test": "phpunit", + "do-something": "MyVendor\\MyClass::doSomething", + "my-cmd": "MyVendor\\MyCommand" + } +} +``` + +Similar to the `run-script` command you can give additional arguments to scripts, +e.g. `composer test -- --filter ` will pass `--filter ` along +to the `phpunit` script. + +Using a PHP method via `composer do-something arg` lets you execute a +`static function doSomething(\Composer\Script\Event $event)` and `arg` becomes +available in `$event->getArguments()`. This however does not let you easily pass +custom options in the form of `--flags`. + +Using a [symfony/console](https://packagist.org/packages/symfony/console) `Command` +class you can describe your script, define and access arguments and options more +easily. + +For example, with the command below you can then simply call `composer my-cmd +--arbitrary-flag` without even the need for a `--` separator. To be detected +as symfony/console commands, the class name must end with `Command` and extend +Symfony's `Command` class. Also note that this will run using Composer's built-in +symfony/console version, which may not match the one you have required in your +project and may change between Composer minor releases. If you need more +safety guarantees, you should rather use your own binary file that runs your own +symfony/console version in isolation in its own process then. + +Script names and descriptions defined inside a `Command` class will override the +details from your `composer.json`: the key for the entry in `scripts` (used as +the command passed to `run-script`) will be replaced with either `$defaultName` +or the value passed to `setName()`, and similar replacement will happen with +anything included in `scripts-descriptions` for that script class. + +```php +setName('custom-cmd') //if this gets included, it would execute with `composer custom-cmd` instead + ->setDescription('Custom description for this command') + ->setDefinition([ + new InputOption('arbitrary-flag', null, InputOption::VALUE_NONE, 'Example flag'), + new InputArgument('foo', InputArgument::OPTIONAL, 'Optional arg'), + ]) + ->setHelp( + "Here you can define a long description for your command\n". + "This would be visible with composer my-cmd --help" + ); + } + + public function execute(InputInterface $input, OutputInterface $output): int + { + if ($input->getOption('arbitrary-flag')) { + $output->writeln('The flag was used'); + } + + return 0; + } +} +``` + +> **Note:** Before executing scripts, Composer's bin-dir is temporarily pushed +> on top of the PATH environment variable, so that binaries of dependencies +> are directly accessible. In this example, no matter if the `phpunit` binary is +> actually in `vendor/bin/phpunit` or `bin/phpunit`, it will be found and executed. + + +## Managing the process timeout {#managing-the-process-timeout} + +Although Composer is not intended to manage long-running processes and other +such aspects of PHP projects, it can sometimes be handy to disable the process +timeout on custom commands. This timeout defaults to 300 seconds and can be +overridden in a variety of ways depending on the desired effect: + +- disable it for all commands using the config key `process-timeout`, +- disable it for the current or future invocations of composer using the + environment variable `COMPOSER_PROCESS_TIMEOUT`, +- for a specific invocation using the `--timeout` flag of the `run-script` command, +- using a static helper for specific scripts. + +To disable the timeout for specific scripts with the static helper directly in +composer.json: + +```json +{ + "scripts": { + "test": [ + "Composer\\Config::disableProcessTimeout", + "phpunit" + ] + } +} +``` + +To disable the timeout for every script on a given project, you can use the +composer.json configuration: + +```json +{ + "config": { + "process-timeout": 0 + } +} +``` + +It's also possible to set the global environment variable to disable the timeout +of all following scripts in the current terminal environment: + +```shell +export COMPOSER_PROCESS_TIMEOUT=0 +``` + +To disable the timeout of a single script call, you must use the `run-script` composer +command and specify the `--timeout` parameter: + +```shell +php composer.phar run-script --timeout=0 test +``` + +## Referencing scripts {#referencing-scripts} + +To enable script re-use and avoid duplicates, you can call a script from another +one by prefixing the command name with `@`: + +```json +{ + "scripts": { + "test": [ + "@clearCache", + "phpunit" + ], + "clearCache": "rm -rf cache/*" + } +} +``` + +You can also refer a script and pass it new arguments: + +```json +{ + "scripts": { + "tests": "phpunit", + "testsVerbose": "@tests -vvv" + } +} +``` + +## Calling Composer commands {#calling-composer-commands} + +To call Composer commands, you can use `@composer` which will automatically +resolve to whatever composer.phar is currently being used: + +```json +{ + "scripts": { + "test": [ + "@composer install", + "phpunit" + ] + } +} +``` + +One limitation of this is that you can not call multiple composer commands in +a row like `@composer install && @composer foo`. You must split them up in a +JSON array of commands. + +## Executing PHP scripts {#executing-php-scripts} + +To execute PHP scripts, you can use `@php` which will automatically +resolve to whatever php process is currently being used: + +```json +{ + "scripts": { + "test": [ + "@php script.php", + "phpunit" + ] + } +} +``` + +One limitation of this is that you can not call multiple commands in +a row like `@php install && @php foo`. You must split them up in a +JSON array of commands. + +You can also call a shell/bash script, which will have the path to +the PHP executable available in it as a `PHP_BINARY` env var. + +## Controlling additional arguments {#controlling-additional-arguments} + +As of Composer 2.8, you can control how additional arguments are passed to script commands. + +When running scripts like `composer script-name arg arg2` or `composer script-name -- --option`, +Composer will by default append `arg`, `arg2` and `--option` to the script's command. + +If you do not want these args in a given command, you can put `@no_additional_args` +anywhere in it, that will remove the default behavior and that flag will be removed +as well before running the command. + +If you want the args to be added somewhere else than at the very end, then you can put +`@additional_args` to be able to choose exactly where they go. + +For example running `composer run-commands ARG` with the below config: + +```json +{ + "scripts": { + "run-commands": [ + "echo hello @no_additional_args", + "command-with-args @additional_args && do-something-without-args --here" + ] + } +} +``` + +Would end up executing these commands: + +``` +echo hello +command-with-args ARG && do-something-without-args --here +``` + +## Setting environment variables {#setting-environment-variables} + +To set an environment variable in a cross-platform way, you can use `@putenv`: + +```json +{ + "scripts": { + "install-phpstan": [ + "@putenv COMPOSER=phpstan-composer.json", + "@composer install --prefer-dist" + ] + } +} +``` + +## Custom descriptions {#custom-descriptions} + +You can set custom script descriptions with the following in your `composer.json`: + +```json +{ + "scripts-descriptions": { + "test": "Run all tests!" + } +} +``` + +The descriptions are used in `composer list` or `composer run -l` commands to +describe what the scripts do when the command is run. + +> **Note:** You can only set custom descriptions of custom commands. + +## Custom aliases {#custom-aliases} + +As of Composer 2.7, you can set custom script aliases with the following in your `composer.json`: + +```json +{ + "scripts-aliases": { + "phpstan": ["stan", "analyze"] + } +} +``` + +The aliases provide alternate command names. + +> **Note:** You can only set custom aliases of custom commands. diff --git a/src/articles/troubleshooting.md b/src/articles/troubleshooting.md new file mode 100644 index 0000000..8486ffb --- /dev/null +++ b/src/articles/troubleshooting.md @@ -0,0 +1,454 @@ +--- +description: "Solving problems" +--- + +# Troubleshooting {#troubleshooting} + +This is a list of common pitfalls on using Composer, and how to avoid them. + + +## General {#general} + +1. When facing any kind of problems using Composer, be sure to **work with the + latest version**. See [self-update](../03-cli.md#self-update--selfupdate) for details. + +2. Before asking anyone, run [`composer diagnose`](../03-cli.md#diagnose) to check + for common problems. If it all checks out, proceed to the next steps. + +3. Make sure you have no problems with your setup by running the installer's + checks via `curl -sS https://getcomposer.org/installer | php -- --check`. + +4. Try clearing Composer's cache by running `composer clear-cache`. + +5. Ensure you're **installing vendors straight from your `composer.json`** via + `rm -rf vendor && composer update -v` when troubleshooting, excluding any + possible interferences with existing vendor installations or `composer.lock` + entries. + + +## Package not found {#package-not-found} + +1. Double-check you **don't have typos** in your `composer.json` or repository + branches and tag names. + +2. Be sure to **set the right + [minimum-stability](../04-schema.md#minimum-stability-root-only)**. To get started or be + sure this is no issue, set `minimum-stability` to "dev". + +3. Packages **not coming from [Packagist](https://packagist.org/)** should + always be **defined in the root package** (the package depending on all + vendors). + +4. Use the **same vendor and package name** throughout all branches and tags of + your repository, especially when maintaining a third party fork and using + `replace`. + +5. If you are updating to a recently published version of a package, be aware that + Packagist has a delay of up to 1 minute before new packages are visible to Composer. + +6. If you are updating a single package, it may depend on newer versions itself. + In this case add the `--with-dependencies` argument **or** add all dependencies which + need an update to the command. + + +## Package is not updating to the expected version {#package-is-not-updating-to-the-expected-version} + +Try running `php composer.phar why-not [package-name] [expected-version]`. + + +## Dependencies on the root package {#dependencies-on-the-root-package} + +When your root package depends on a package which ends up depending (directly or +indirectly) back on the root package itself, issues can occur in two cases: + +1. During development, if you are on a branch like `dev-main` and the branch has no + [branch-alias](aliases.md#branch-alias) defined, and the dependency on the root package + requires version `^2.0` for example, the `dev-main` version will not satisfy it. + The best solution here is to make sure you first define a branch alias. + +2. In CI (Continuous Integration) runs, the problem might be that Composer is not able + to detect the version of the root package properly. If it is a git clone it is + generally alright and Composer will detect the version of the current branch, + but some CIs do shallow clones so that process can fail when testing pull requests + and feature branches. In these cases the branch alias may then not be recognized. + The best solution is to define the version you are on via an environment variable + called `COMPOSER_ROOT_VERSION`. You set it to `dev-main` for example to define + the root package's version as `dev-main`. + Use for example: `COMPOSER_ROOT_VERSION=dev-main composer install` to export + the variable only for the call to composer, or you can define it globally in the + CI env vars. + +## Root package version detection {#root-package-version-detection} + +Composer relies on knowing the version of the root package to resolve +dependencies effectively. The version of the root package is determined +using a hierarchical approach: + +1. **composer.json Version Field**: Firstly, Composer looks for a `version` + field in the project's root `composer.json` file. If present, this field + specifies the version of the root package directly. This is generally not + recommended as it needs to be constantly updated, but it is an option. + +2. **Environment Variable**: Composer then checks for the `COMPOSER_ROOT_VERSION` + environment variable. This variable can be explicitly set by the user to + define the version of the root package, providing a straightforward way to + inform Composer of the exact version, especially in CI/CD environments or + when the VCS method is not applicable. + +3. **Version Control System (VCS) Inspection**: Composer then attempts to guess + the version by interfacing with the version control system of the project. For + instance, in projects versioned with Git, Composer executes specific Git + commands to deduce the project's current version based on tags, branches, and + commit history. If a `.git` directory is missing or the history is incomplete + because CI is using a shallow clone for example, this detection may fail to find + the correct version. + +4. **Fallback**: If all else fails, Composer uses `1.0.0` as default version. + +Note that relying on the default/fallback version might potentially lead to dependency +resolution issues, especially when the root package depends on a package which ends up +depending (directly or indirectly) +[back on the root package itself](#dependencies-on-the-root-package). + +## Network timeout issues, curl error {#network-timeout-issues-curl-error} + +If you see something along the lines of: + +``` +Failed to download * curl error 28 while downloading * Operation timed out after 300000 milliseconds +``` + +It means your network is probably so slow that a request took over 300seconds to complete. This is the +minimum timeout Composer will use, but you can increase it by increasing the `default_socket_timeout` +value in your php.ini to something higher. + +If instead you see something like: + +``` +Failed to download * curl error 28 while downloading * Operation too slow. Less than 1 bytes/sec transferred the last 30 seconds +``` + +It means the server accepted the request but did not send anything back for 30 seconds, so Composer +gave up on it. If the server is merely slow to start responding, you can raise this limit by setting the +[`COMPOSER_HTTP_STALL_TIMEOUT`](../03-cli.md#composer-http-stall-timeout) env var to a higher number of +seconds, or to `0` to disable it. + + +## Package not found in a Jenkins-build {#package-not-found-in-a-jenkins-build} + +1. Check the ["Package not found"](#package-not-found) item above. + +2. The git-clone / checkout within Jenkins leaves the branch in a "detached HEAD"-state. As + a result, Composer may not able to identify the version of the current checked out branch + and may not be able to resolve a [dependency on the root package](#dependencies-on-the-root-package). + To solve this problem, you can use the "Additional Behaviours" -> "Check out to specific local + branch" in your Git-settings for your Jenkins-job, where your "local branch" shall be the same + branch as you are checking out. Using this, the checkout will not be in detached state any more + and the dependency on the root package should become satisfied. + + +## I have a dependency which contains a "repositories" definition in its composer.json, but it seems to be ignored. {#i-have-a-dependency-which-contains-a-repositories-definition-in-its-composerjson-but-it-seems-to-be-ignored} + +The [`repositories`](../04-schema.md#repositories-root-only) configuration property is defined as [root-only](../04-schema.md#root-package). It is not inherited. You can read more about the reasons behind this in the "[why can't +Composer load repositories recursively?](../faqs/why-cant-composer-load-repositories-recursively.md)" article. +The simplest work-around to this limitation, is moving or duplicating the `repositories` definition into your root +composer.json. + + +## I have locked a dependency to a specific commit but get unexpected results. {#i-have-locked-a-dependency-to-a-specific-commit-but-get-unexpected-results} + +While Composer supports locking dependencies to a specific commit using the `#commit-ref` syntax, there are certain +caveats that one should take into account. The most important one is [documented](../04-schema.md#package-links), but +frequently overlooked: + +> **Note:** While this is convenient at times, it should not be how you use +> packages in the long term because it comes with a technical limitation. The +> composer.json metadata will still be read from the branch name you specify +> before the hash. Because of that in some cases it will not be a practical +> workaround, and you should always try to switch to tagged releases as soon +> as you can. + +There is no simple work-around to this limitation. It is therefore strongly recommended that you do not use it. + + +## Need to override a package version {#need-to-override-a-package-version} + +Let's say your project depends on package A, which in turn depends on a specific +version of package B (say 0.1). But you need a different version of said package B (say 0.11). + +You can fix this by aliasing version 0.11 to 0.1: + +composer.json: + +```json +{ + "require": { + "A": "0.2", + "B": "0.11 as 0.1" + } +} +``` + +See [aliases](aliases.md) for more information. + + +## Figuring out where a config value came from {#figuring-out-where-a-config-value-came-from} + +Use `php composer.phar config --list --source` to see where each config value originated from. + +## Memory limit errors {#memory-limit-errors} + +The first thing to do is to make sure you are running Composer 2, and if possible 2.2.0 or above. + +Composer 1 used much more memory and upgrading to the latest version will give you much better and faster results. + +Composer may sometimes fail on some commands with this message: + +`PHP Fatal error: Allowed memory size of XXXXXX bytes exhausted <...>` + +In this case, the PHP `memory_limit` should be increased. + +> **Note:** Composer internally increases the `memory_limit` to `1.5G`. + +To get the current `memory_limit` value, run: + +```shell +php -r "echo ini_get('memory_limit').PHP_EOL;" +``` + +Try increasing the limit in your `php.ini` file (ex. `/etc/php5/cli/php.ini` for +Debian-like systems): + +```ini +; Use -1 for unlimited or define an explicit value like 2G +memory_limit = -1 +``` + +Composer also respects a memory limit defined by the `COMPOSER_MEMORY_LIMIT` environment variable: + +```shell +COMPOSER_MEMORY_LIMIT=-1 composer.phar <...> +``` + +Or, you can increase the limit with a command-line argument: + +```shell +php -d memory_limit=-1 composer.phar <...> +``` + +However, please note that setting the memory limit using these methods primarily addresses memory issues within Composer itself and its immediate processes. Child processes or external commands invoked by Composer may still require separate adjustments if they have their own memory requirements. + +This issue can also happen on cPanel instances, when the shell fork bomb protection is activated. For more information, see the [documentation](https://documentation.cpanel.net/display/68Docs/Shell+Fork+Bomb+Protection) of the fork bomb feature on the cPanel site. + +## Xdebug impact on Composer {#xdebug-impact-on-composer} + +To improve performance when the Xdebug extension is enabled, Composer automatically restarts PHP without it. +You can override this behavior by using an environment variable: `COMPOSER_ALLOW_XDEBUG=1`. + +Composer will always show a warning if Xdebug is being used, but you can override this with an environment variable: +`COMPOSER_DISABLE_XDEBUG_WARN=1`. If you see this warning unexpectedly, then the restart process has failed: +please report this [issue](https://github.com/composer/composer/issues). + + +## "The system cannot find the path specified" (Windows) {#the-system-cannot-find-the-path-specified-windows} + +1. Open regedit. +2. Search for an `AutoRun` key inside `HKEY_LOCAL_MACHINE\Software\Microsoft\Command Processor`, + `HKEY_CURRENT_USER\Software\Microsoft\Command Processor` + or `HKEY_LOCAL_MACHINE\Software\Wow6432Node\Microsoft\Command Processor`. +3. Check if it contains any path to a non-existent file, if it's the case, remove them. + + +## SSL certificate problem: unable to get local issuer certificate {#ssl-certificate-problem-unable-to-get-local-issuer-certificate} + +1. Check that your root certificate store / CA bundle is up to date. Run `composer diagnose -vvv` + and look for `Checked CA file ...` or `Checked directory ...` lines in the first lines of output. + This will show you where Composer is looking for a CA bundle. You can get a + [new cacert.pem from cURL](https://curl.se/docs/caextract.html) and store it there. +2. If this did not help despite Composer finding a valid CA bundle, try disabling your antivirus and + firewall software to see if that helps. We have seen issues where Avast on Windows for example would + prevent Composer from functioning correctly. To disable the HTTPS scanning in Avast you can go in + "Protection > Core Shields > Web Shield > **uncheck** Enable HTTPS scanning". If this helps you + should report it to the software vendor so they can hopefully improve things. + + +## API rate limit and OAuth tokens {#api-rate-limit-and-oauth-tokens} + +Because of GitHub's rate limits on their API it can happen that Composer prompts +for authentication asking your username and password so it can go ahead with its work. + +If you would prefer not to provide your GitHub credentials to Composer you can +manually create a token using the [procedure documented here](authentication-for-private-packages.md#github-oauth). + +Now Composer should install/update without asking for authentication. + + +## proc_open(): fork failed errors {#proc_open-fork-failed-errors} + +If Composer shows proc_open() fork failed on some commands: + +`PHP Fatal error: Uncaught exception 'ErrorException' with message 'proc_open(): fork failed - Cannot allocate memory' in phar` + +This could be happening because the VPS runs out of memory and has no Swap space enabled. + +```shell +free -m +``` +```text +total used free shared buffers cached +Mem: 2048 357 1690 0 0 237 +-/+ buffers/cache: 119 1928 +Swap: 0 0 0 +``` + +To enable the swap you can use for example: + +```shell +/bin/dd if=/dev/zero of=/var/swap.1 bs=1M count=1024 +/sbin/mkswap /var/swap.1 +/bin/chmod 0600 /var/swap.1 +/sbin/swapon /var/swap.1 +``` +You can make a permanent swap file following this [tutorial](https://www.digitalocean.com/community/tutorials/how-to-add-swap-on-ubuntu-14-04). + + +## proc_open(): failed to open stream errors (Windows) {#proc_open-failed-to-open-stream-errors-windows} + +If Composer shows proc_open(NUL) errors on Windows: + +`proc_open(NUL): failed to open stream: No such file or directory` + +This could be happening because you are working in a _OneDrive_ directory and +using a version of PHP that does not support the file system semantics of this +service. The issue was fixed in PHP 7.2.23 and 7.3.10. + +Alternatively it could be because the Windows Null Service is not enabled. For +more information, see this [issue](https://github.com/composer/composer/issues/7186#issuecomment-373134916). + + +## Degraded Mode {#degraded-mode} + +Due to some intermittent issues on Travis and other systems, we introduced a +degraded network mode which helps Composer finish successfully but disables +a few optimizations. This is enabled automatically when an issue is first +detected. If you see this issue sporadically you probably don't have to worry +(a slow or overloaded network can also cause those time outs), but if it +appears repeatedly you might want to look at the options below to identify +and resolve it. + +If you have been pointed to this page, you want to check a few things: + +- If you are using ESET antivirus, go in "Advanced Settings" and disable "HTTP-scanner" + under "web access protection" +- If you are using IPv6, try disabling it. If that solves your issues, get in touch + with your ISP or server host, the problem is not at the Packagist level but in the + routing rules between you and Packagist (i.e. the internet at large). The best way to get + these fixed is to raise awareness to the network engineers that have the power to fix it. + Take a look at the next section for IPv6 workarounds. +- If none of the above helped, please report the error. + + +## Operation timed out (IPv6 issues) {#operation-timed-out-ipv6-issues} + +You may run into errors if IPv6 is not configured correctly. A common error is: + +```text +The "https://getcomposer.org/version" file could not be downloaded: failed to +open stream: Operation timed out +``` + +We recommend you fix your IPv6 setup. If that is not possible, you can try the +following workarounds: + +**Generic Workaround:** + +Set the [`COMPOSER_IPRESOLVE=4`](../03-cli.md#composer_ipresolve) environment variable which will force curl to resolve +domains using IPv4. This only works when the curl extension is used for downloads. + +**Workaround Linux:** + +On linux, it seems that running this command helps to make ipv4 traffic have a +higher priority than ipv6, which is a better alternative than disabling ipv6 entirely: + +```shell +sudo sh -c "echo 'precedence ::ffff:0:0/96 100' >> /etc/gai.conf" +``` + +**Workaround Windows:** + +On windows the only way is to disable ipv6 entirely I am afraid (either in windows or in your home router). + +**Workaround Mac OS X:** + +Get name of your network device: + +```shell +networksetup -listallnetworkservices +``` + +Disable IPv6 on that device (in this case "Wi-Fi"): + +```shell +networksetup -setv6off Wi-Fi +``` + +Run Composer ... + +You can enable IPv6 again with: + +```shell +networksetup -setv6automatic Wi-Fi +``` + +That said, if this fixes your problem, please talk to your ISP about it to +try to resolve the routing errors. That's the best way to get things resolved +for everyone. + + +## Composer hangs with SSH ControlMaster {#composer-hangs-with-ssh-controlmaster} + +When you try to install packages from a Git repository and you use the `ControlMaster` +setting for your SSH connection, Composer might hang endlessly and you see a `sh` +process in the `defunct` state in your process list. + +The reason for this is a SSH Bug: https://bugzilla.mindrot.org/show_bug.cgi?id=1988 + +As a workaround, open a SSH connection to your Git host before running Composer: + +```shell +ssh -t git@mygitserver.tld +php composer.phar update +``` + +See also https://github.com/composer/composer/issues/4180 for more information. + + +## Zip archives are not unpacked correctly. {#zip-archives-are-not-unpacked-correctly} + +Composer can unpack zipballs using either a system-provided `unzip` or `7z` (7-Zip) utility, or PHP's +native `ZipArchive` class. On OSes where ZIP files can contain permissions and symlinks, we recommend +installing `unzip` or `7z` as these features are not supported by `ZipArchive`. + + +## Disabling the pool optimizer {#disabling-the-pool-optimizer} + +In Composer, the `Pool` class contains all the packages that are relevant for the dependency +resolving process. That is what is used to generate all the rules which are then +passed on to the dependency solver. +In order to improve performance, Composer tries to optimize this `Pool` by removing useless +package information early on. + +If all goes well, you should never notice any issues with it but in case you run into +an unexpected result such as an unresolvable set of dependencies or conflicts where you +think Composer is wrong, you might want to disable the optimizer by using the environment +variable `COMPOSER_POOL_OPTIMIZER` and run the update again like so: + +```shell +COMPOSER_POOL_OPTIMIZER=0 php composer.phar update +``` + +Now double check if the result is still the same. It will take significantly longer and use +a lot more memory to run the dependency resolving process. + +If the result is different, you likely hit a problem in the pool optimizer. +Please [report this issue](https://github.com/composer/composer/issues) so it can be fixed. diff --git a/src/articles/vendor-binaries.md b/src/articles/vendor-binaries.md new file mode 100644 index 0000000..70c61e3 --- /dev/null +++ b/src/articles/vendor-binaries.md @@ -0,0 +1,170 @@ +--- +description: "Expose command-line scripts from packages" +--- + +# Vendor binaries and the `vendor/bin` directory {#vendor-binaries-and-the-vendorbin-directory} + +## What is a vendor binary? {#what-is-a-vendor-binary} + +Any command line script that a Composer package would like to pass along +to a user who installs the package should be listed as a vendor binary. + +If a package contains other scripts that are not needed by the package +users (like build or compile scripts) that code should not be listed +as a vendor binary. + +## How is it defined? {#how-is-it-defined} + +It is defined by adding the `bin` key to a project's `composer.json`. +It is specified as an array of files so multiple binaries can be added +for any given project. + +```json +{ + "bin": ["bin/my-script", "bin/my-other-script"] +} +``` + +Each path is relative to the package root, and is used verbatim to generate the proxy files in +`vendor/bin`. It must therefore not contain a `..` segment, nor any of the characters +``*$`"&^|<>()%!;`` or control characters. Wildcards are not expanded either, a `bin/*` entry is +simply a file that does not exist. + +## What does defining a vendor binary in composer.json do? {#what-does-defining-a-vendor-binary-in-composerjson-do} + +It instructs Composer to install the package's binaries to `vendor/bin` +for any project that **depends** on that project. + +This is a convenient way to expose useful scripts that would +otherwise be hidden deep in the `vendor/` directory. + +## What happens when Composer is run on a composer.json that defines vendor binaries? {#what-happens-when-composer-is-run-on-a-composerjson-that-defines-vendor-binaries} + +For the binaries that a package defines directly, nothing happens. + +## What happens when Composer is run on a composer.json that has dependencies with vendor binaries listed? {#what-happens-when-composer-is-run-on-a-composerjson-that-has-dependencies-with-vendor-binaries-listed} + +Composer looks for the binaries defined in all of the dependencies. A +proxy file (or two on Windows/WSL) is created from each dependency's +binaries to `vendor/bin`. + +Say package `my-vendor/project-a` has binaries setup like this: + +```json +{ + "name": "my-vendor/project-a", + "bin": ["bin/project-a-bin"] +} +``` + +Running `composer install` for this `composer.json` will not do +anything with `bin/project-a-bin`. + +Say project `my-vendor/project-b` has requirements setup like this: + +```json +{ + "name": "my-vendor/project-b", + "require": { + "my-vendor/project-a": "*" + } +} +``` + +Running `composer install` for this `composer.json` will look at +all of project-a's binaries and install them to `vendor/bin`. + +In this case, Composer will make `vendor/my-vendor/project-a/bin/project-a-bin` +available as `vendor/bin/project-a-bin`. + +## Finding the Composer autoloader from a binary {#finding-the-composer-autoloader-from-a-binary} + +As of Composer 2.2, a new `$_composer_autoload_path` global variable +is defined by the bin proxy file, so that when your binary gets executed +it can use it to easily locate the project's autoloader. + +This global will not be available however when running binaries defined +by the root package itself, so you need to have a fallback in place. + +This can look like this for example: + +```php +=1.1 <2.0`, or +`~4.0`). To resolve these constraints, Composer first asks the VCS to list +all available tags, then creates an internal list of available versions based +on these tags. In the above example, composer's internal list includes versions +`1.0`, `1.0.1`, `1.0.2`, the beta release of `1.1`, the first and second +release candidates of `1.1`, the final release version `1.1`, etc.... (Note +that Composer automatically removes the 'v' prefix in the actual tagname to +get a valid final version number.) + +When Composer has a complete list of available versions from your VCS, it then +finds the highest version that matches all version constraints in your project +(it's possible that other packages require more specific versions of the +library than you do, so the version it chooses may not always be the highest +available version) and it downloads a zip archive of that tag to unpack in the +correct location in your `vendor` directory. + +### Branches {#branches} + +If you want Composer to check out a branch instead of a tag, you need to point it to the branch using the special `dev-*` prefix (or sometimes suffix; see below). If you're checking out a branch, it's assumed that you want to *work* on the branch and Composer actually clones the repo into the correct place in your `vendor` directory. For tags, it copies the right files without actually cloning the repo. (You can modify this behavior with --prefer-source and --prefer-dist, see [install options](../03-cli.md#install--i).) + +In the above example, if you wanted to check out the `my-feature` branch, you would specify `dev-my-feature` as the version constraint in your `require` clause. This would result in Composer cloning the `my-library` repository into my `vendor` directory and checking out the `my-feature` branch. + +When branch names look like versions, we have to clarify for Composer that we're trying to check out a branch and not a tag. In the above example, we have two version branches: `v1` and `v2`. To get Composer to check out one of these branches, you must specify a version constraint that looks like this: `v1.x-dev`. The `.x` is an arbitrary string that Composer requires to tell it that we're talking about the `v1` branch and not a `v1` tag (alternatively, you can name the branch `v1.x` instead of `v1`). In the case of a branch with a version-like name (`v1`, in this case), you append `-dev` as a suffix, rather than using `dev-` as a prefix. + +### Stabilities {#stabilities} + +Composer recognizes the following stabilities (in order of stability): dev, +alpha, beta, RC, and stable where RC stands for release candidate. The stability +of a version is defined by its suffix e.g version `v1.1-BETA` has a stability of +`beta` and `v1.1-RC1` has a stability of `RC`. If such a suffix is missing +e.g. version `v1.1` then Composer considers that version `stable`. In addition +to that Composer automatically adds a `-dev` suffix to all numeric branches and +prefixes all other branches imported from a VCS repository with `dev-`. In both +cases the stability `dev` gets assigned. + +Keeping this in mind will help you in the next section. + +### Minimum Stability {#minimum-stability} + +There's one more thing that will affect which files are checked out of a library's VCS and added to your project: Composer allows you to specify stability constraints to limit which tags are considered valid. In the above example, note that the library released a beta and two release candidates for version `1.1` before the final official release. To receive these versions when running `composer install` or `composer update`, we have to explicitly tell Composer that we are ok with release candidates and beta releases (and alpha releases, if we want those). This can be done using either a project-wide `minimum-stability` value in `composer.json` or using "stability flags" in version constraints. Read more on the [schema page](../04-schema.md#minimum-stability-root-only). + +## Writing Version Constraints {#writing-version-constraints} + +Now that you have an idea of how Composer sees versions, let's talk about how +to specify version constraints for your project dependencies. + +### Exact Version Constraint {#exact-version-constraint} + +You can specify the exact version of a package. This will tell Composer to +install this version and this version only. If other dependencies require +a different version, the solver will ultimately fail and abort any install +or update procedures. + +Example: `1.0.2` + +### Version Range {#version-range} + +By using comparison operators you can specify ranges of valid versions. Valid +operators are `>`, `>=`, `<`, `<=`, `!=`. + +You can define multiple ranges. Ranges separated by a space ( ) +or comma (`,`) will be treated as a **logical AND**. A double pipe (`||`) +will be treated as a **logical OR**. AND has higher precedence than OR. + +> **Note:** Be careful when using unbounded ranges as you might end up +> unexpectedly installing versions that break backwards compatibility. +> Consider using the [caret](#caret-version-range-) operator instead for safety. + + +> **Note:** In older versions of Composer the single pipe (`|`) was the +> recommended alternative to the **logical OR**. Thus for backwards compatibility +> the single pipe (`|`) will still be treated as a **logical OR**. + +Examples: + +* `>=1.0` +* `>=1.0 <2.0` +* `>=1.0 <1.1 || >=1.2` + +### Hyphenated Version Range (` - `) {#hyphenated-version-range----} + +Inclusive set of versions. Partial versions on the right include are completed +with a wildcard. For example `1.0 - 2.0` is equivalent to `>=1.0.0 <2.1` as the +`2.0` becomes `2.0.*`. On the other hand `1.0.0 - 2.1.0` is equivalent to +`>=1.0.0 <=2.1.0`. + +Example: `1.0 - 2.0` + +### Wildcard Version Range (`.*`) {#wildcard-version-range-} + +You can specify a pattern with a `*` wildcard. `1.0.*` is the equivalent of +`>=1.0 <1.1`. + +Example: `1.0.*` + +## Next Significant Release Operators {#next-significant-release-operators} + +### Tilde Version Range (`~`) {#tilde-version-range-} + +The `~` operator is best explained by example: `~1.2` is equivalent to +`>=1.2 <2.0.0`, while `~1.2.3` is equivalent to `>=1.2.3 <1.3.0`. As you can see +it is mostly useful for projects respecting [semantic +versioning](https://semver.org/). A common usage would be to mark the minimum +minor version you depend on, like `~1.2` (which allows anything up to, but not +including, 2.0). Since in theory there should be no backwards compatibility +breaks until 2.0, that works well. Another way of looking at it is that using +`~` specifies a minimum version, but allows the last digit specified to go up. + +Example: `~1.2` + +> **Note:** Although `2.0-beta.1` is strictly before `2.0`, a version constraint +> like `~1.2` would not install it. As said above `~1.2` only means the `.2` +> can change but the `1.` part is fixed. + +> **Note:** The `~` operator has an exception on its behavior for the major +> release number. This means for example that `~1` is the same as `~1.0` as +> it will not allow the major number to increase trying to keep backwards +> compatibility. + +### Caret Version Range (`^`) {#caret-version-range-} + +The `^` operator behaves very similarly, but it sticks closer to semantic +versioning, and will always allow non-breaking updates. For example `^1.2.3` +is equivalent to `>=1.2.3 <2.0.0` as none of the releases until 2.0 should +break backwards compatibility. For pre-1.0 versions it also acts with safety +in mind and treats `^0.3` as `>=0.3.0 <0.4.0` and `^0.0.3` as `>=0.0.3 <0.0.4`. + +This is the recommended operator for maximum interoperability when writing +library code. + +Example: `^1.2.3` + +> **Note:** If you are using PowerShell on Windows, you have to escape +> carets when using them as argument on the CLI for example when using the +> `composer require` command. You have to use four +> subsequent caret operators, e.g. `^^^^1.2.3`, to ensure the caret operator gets +> passed to Composer correctly. + +## Stability Constraints {#stability-constraints} + +If you are using a constraint that does not explicitly define a stability, +Composer will default internally to `-dev` or `-stable`, depending on the +operator(s) used. This happens transparently. + +If you wish to explicitly consider only the stable release in the comparison, +add the suffix `-stable`. + +Examples: + + Constraint | Internally +------------------- | ------------------------ + `1.2.3` | `=1.2.3.0-stable` + `>1.2` | `>1.2.0.0-stable` + `>=1.2` | `>=1.2.0.0-dev` + `>=1.2-stable` | `>=1.2.0.0-stable` + `<1.3` | `<1.3.0.0-dev` + `<=1.3` | `<=1.3.0.0-stable` + `1 - 2` | `>=1.0.0.0-dev <3.0.0.0-dev` + `~1.3` | `>=1.3.0.0-dev <2.0.0.0-dev` + `1.4.*` | `>=1.4.0.0-dev <1.5.0.0-dev` + +To allow various stabilities without enforcing them at the constraint level +however, you may use [stability-flags](../04-schema.md#package-links) like +`@` (e.g. `@dev`) to let Composer know that a given package +can be installed in a different stability than your default minimum-stability +setting. All available stability flags are listed on the minimum-stability +section of the [schema page](../04-schema.md#minimum-stability-root-only). + +## Summary {#summary} +```jsonc +"require": { + "vendor/package": "1.3.2", // exactly 1.3.2 + + // >, <, >=, <= | specify upper / lower bounds + "vendor/package": ">=1.3.2", // anything above or equal to 1.3.2 + "vendor/package": "<1.3.2", // anything below 1.3.2 + + // * | wildcard + "vendor/package": "1.3.*", // >=1.3.0 <1.4.0 + + // ~ | allows last digit specified to go up + "vendor/package": "~1.3.2", // >=1.3.2 <1.4.0 + "vendor/package": "~1.3", // >=1.3.0 <2.0.0 + + // ^ | doesn't allow breaking changes (major version fixed - following semver) + "vendor/package": "^1.3.2", // >=1.3.2 <2.0.0 + "vendor/package": "^0.3.2", // >=0.3.2 <0.4.0 // except if major version is 0 +} +``` + +## Testing Version Constraints {#testing-version-constraints} + +You can test version constraints using [semver.madewithlove.com](https://semver.madewithlove.com). +Fill in a package name and it will autofill the default version constraint +which Composer would add to your `composer.json` file. You can adjust the +version constraint and the tool will highlight all releases that match. diff --git a/cn-introduction/dev/DefaultPolicy.md b/src/dev/DefaultPolicy.md similarity index 77% rename from cn-introduction/dev/DefaultPolicy.md rename to src/dev/DefaultPolicy.md index 61db2bf..ae7b39a 100644 --- a/cn-introduction/dev/DefaultPolicy.md +++ b/src/dev/DefaultPolicy.md @@ -1,18 +1,25 @@ -# Default Solver Policy +# Default Solver Policy {#default-solver-policy} A solver policy defines behaviour variables of the dependency solver. It decides which versions are considered newer than others, which packages should be preferred over others and whether operations like downgrades or uninstall are allowed. -## Selection of preferred Packages +## Selection of preferred Packages {#selection-of-preferred-packages} The following describe package pool situations with user requests and the resulting order in which the solver will try to install them. The rules are to be applied in the order of these descriptions. -### Package versions +### Repository priorities {#repository-priorities} + +Packages Repo1.Av1, Repo2.Av1 + +* priority(Repo1) >= priority(Repo2) => (Repo1.Av1, Repo2.Av1) +* priority(Repo1) < priority(Repo2) => (Repo2.Av1, Repo1.Av1) + +### Package versions {#package-versions} Packages: Av1, Av2, Av3 @@ -22,14 +29,7 @@ Request: install A * (Av3) -### Repository priorities - -Packages Repo1.Av1, Repo2.Av1 - -* priority(Repo1) >= priority(Repo2) => (Repo1.Av1, Repo2.Av1) -* priority(Repo1) < priority(Repo2) => (Repo2.Av1, Repo1.Av1) - -### Virtual Packages (provides) +### Virtual Packages (provides) {#virtual-packages-provides} Packages Av1, Bv1 @@ -41,7 +41,7 @@ Request: install X * priority(Av1.repo) >= priority(Bv1.repo) => (Av1, Bv1) * priority(Av1.repo) < priority(Bv1.repo) => (Bv1, Av1) -### Package replacements +### Package replacements {#package-replacements} Packages: Av1, Bv2 diff --git a/en-back/faqs/how-do-i-install-a-package-to-a-custom-path-for-my-framework.md b/src/faqs/how-do-i-install-a-package-to-a-custom-path-for-my-framework.md similarity index 65% rename from en-back/faqs/how-do-i-install-a-package-to-a-custom-path-for-my-framework.md rename to src/faqs/how-do-i-install-a-package-to-a-custom-path-for-my-framework.md index bd38d1e..14ca8ec 100644 --- a/en-back/faqs/how-do-i-install-a-package-to-a-custom-path-for-my-framework.md +++ b/src/faqs/how-do-i-install-a-package-to-a-custom-path-for-my-framework.md @@ -1,4 +1,4 @@ -# How do I install a package to a custom path for my framework? +# How do I install a package to a custom path for my framework? {#how-do-i-install-a-package-to-a-custom-path-for-my-framework} Each framework may have one or many different required package installation paths. Composer can be configured to install packages to a folder other than @@ -6,7 +6,8 @@ the default `vendor` folder by using [composer/installers](https://github.com/composer/installers). If you are a **package author** and want your package installed to a custom -directory, simply require `composer/installers` and set the appropriate `type`. +directory, require `composer/installers` and set the appropriate `type`. +Specifying the package type, will override the default installer path. This is common if your package is intended for a specific framework such as CakePHP, Drupal or WordPress. Here is an example composer.json file for a WordPress theme: @@ -23,27 +24,31 @@ WordPress theme: Now when your theme is installed with Composer it will be placed into `wp-content/themes/themename/` folder. Check the -[current supported types](https://github.com/composer/installers#current-supported-types) +[current supported types](https://github.com/composer/installers#current-supported-package-types) for your package. As a **package consumer** you can set or override the install path for a package that requires composer/installers by configuring the `installer-paths` extra. A useful example would be for a Drupal multisite setup where the package should be -installed into your sites subdirectory. Here we are overriding the install path -for a module that uses composer/installers: +installed into your site's subdirectory. Here we are overriding the install path +for a module that uses composer/installers, as well as putting all packages of type +`drupal-theme` into a themes folder: ```json { "extra": { "installer-paths": { - "sites/example.com/modules/{$name}": ["vendor/package"] + "sites/example.com/modules/{$name}": ["vendor/package"], + "sites/example.com/themes/{$name}": ["type:drupal-theme"] } } } ``` Now the package would be installed to your folder location, rather than the default -composer/installers determined location. +composer/installers determined location. In addition, `installer-paths` is +order-dependent, which means moving a package by name should come before the installer +path of a `type:*` that matches the same package. > **Note:** You cannot use this to change the path of any package. This is only > applicable to packages that require `composer/installers` and use a custom type diff --git a/src/faqs/how-to-install-composer-programmatically.md b/src/faqs/how-to-install-composer-programmatically.md new file mode 100644 index 0000000..66fe04c --- /dev/null +++ b/src/faqs/how-to-install-composer-programmatically.md @@ -0,0 +1,53 @@ +# How do I install Composer programmatically? {#how-do-i-install-composer-programmatically} + +As noted on the download page, the installer script contains a +checksum which changes when the installer code changes and as such +it should not be relied upon in the long term. + +An alternative is to use this script which only works with UNIX utilities: + +```shell +#!/bin/sh + +EXPECTED_CHECKSUM="$(php -r 'copy("https://composer.github.io/installer.sig", "php://stdout");')" +php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" +ACTUAL_CHECKSUM="$(php -r "echo hash_file('sha384', 'composer-setup.php');")" + +if [ "$EXPECTED_CHECKSUM" != "$ACTUAL_CHECKSUM" ] +then + >&2 echo 'ERROR: Invalid installer checksum' + rm composer-setup.php + exit 1 +fi + +php composer-setup.php --quiet +RESULT=$? +rm composer-setup.php +exit $RESULT +``` + +The script will exit with 1 in case of failure, or 0 on success, and is quiet +if no error occurs. + +Alternatively, if you want to rely on an exact copy of the installer, you can fetch +a specific version from GitHub's history. The commit hash should be enough to +give it uniqueness and authenticity as long as you can trust the GitHub servers. +For example: + +```shell +wget https://raw.githubusercontent.com/composer/getcomposer.org/f3108f64b4e1c1ce6eb462b159956461592b3e3e/web/installer -O - -q | php -- --quiet +``` + +You may replace the commit hash by whatever the last commit hash is on +https://github.com/composer/getcomposer.org/commits/main + +## Using the GitHub CLI util (`gh`) {#using-the-github-cli-util-gh} + +You can download and verify a `composer.phar` using the gh CLI utility as such: + +```shell +gh release --repo composer/composer download --pattern composer.phar +gh attestation verify --repo composer/composer composer.phar +``` + +Use the composer.phar as is or move it where needed afterwards. diff --git a/src/faqs/how-to-install-untrusted-packages-safely.md b/src/faqs/how-to-install-untrusted-packages-safely.md new file mode 100644 index 0000000..9b69229 --- /dev/null +++ b/src/faqs/how-to-install-untrusted-packages-safely.md @@ -0,0 +1,48 @@ +# How do I install untrusted packages safely? Is it safe to run Composer as superuser or root? {#how-do-i-install-untrusted-packages-safely-is-it-safe-to-run-composer-as-superuser-or-root} + +## Why am I seeing a "Do not run Composer as root/super user" warning/error? {#why-am-i-seeing-a-do-not-run-composer-as-rootsuper-user-warningerror} + +It was always discouraged to run Composer as root for the reasons detailed below. + +As of Composer 2.4.2, plugins are disabled automatically when running as root and +there is no sign that the user is consciously doing this. There are two ways this user consent +can be given: + +- If you run interactively, Composer will prompt if you are sure that you want to continue + running as root. If you run non-interactively, plugins will be disabled, unless.. +- If you set the [COMPOSER_ALLOW_SUPERUSER](../03-cli.md#composer_allow_superuser) environment + variable to `1`, this also indicates that you intended to run Composer as root and are accepting + the risks of doing so. + +## Is it safe to run Composer as superuser or root? {#is-it-safe-to-run-composer-as-superuser-or-root} + +Certain Composer commands, including `exec`, `install`, and `update` allow third party code to +execute on your system. This is from its "plugins" and "scripts" features. Plugins and scripts have +full access to the user account which runs Composer. For this reason, it is strongly advised to +**avoid running Composer as super-user/root**. All commands also dispatch events which can be +caught by plugins so unless explicitly disabled installed plugins will be loaded/executed by **every** +Composer command. + +You can disable plugins and scripts during package installation or updates with the following +syntax so only Composer's code, and no third party code, will execute: + +```shell +php composer.phar install --no-plugins --no-scripts ... +php composer.phar update --no-plugins --no-scripts ... +``` + +Depending on the operating system we have seen cases where it is possible to trigger execution +of files in the repository using specially crafted `composer.json`. So in general if you do want +to install untrusted dependencies you should sandbox them completely in a container or equivalent. + +Also note that the `exec` command will always run third party code as the user which runs `composer`. + +See the [COMPOSER_ALLOW_SUPERUSER](../03-cli.md#composer_allow_superuser) environment variable for +more info on how to disable the warnings. + +## Running Composer inside Docker/Podman containers {#running-composer-inside-dockerpodman-containers} + +Composer makes a best effort attempt to detect that it runs inside a container and if so it will +allow running as root without any further issues. If that detection fails however you will +see warnings and plugins will be disabled unless you set the [COMPOSER_ALLOW_SUPERUSER](../03-cli.md#composer_allow_superuser) +environment variable. diff --git a/src/faqs/how-to-use-composer-behind-a-proxy.md b/src/faqs/how-to-use-composer-behind-a-proxy.md new file mode 100644 index 0000000..7ea9e1c --- /dev/null +++ b/src/faqs/how-to-use-composer-behind-a-proxy.md @@ -0,0 +1,106 @@ +# How to use Composer behind a proxy {#how-to-use-composer-behind-a-proxy} + +Composer, like many other tools, uses environment variables to control the use of a proxy server and +supports: + +- `http_proxy` - the proxy to use for HTTP requests +- `https_proxy` - the proxy to use for HTTPS requests +- `CGI_HTTP_PROXY` - the proxy to use for HTTP requests in a non-CLI context +- `no_proxy` - domains that do not require a proxy + +These named variables are a convention, rather than an official standard, and their evolution and +usage across different operating systems and tools is complex. Composer prefers the use of lowercase +names, but accepts uppercase names where appropriate. + +## Usage {#usage} + +Composer requires specific environment variables for HTTP and HTTPS requests. For example: + +``` +http_proxy=http://proxy.com:80 +https_proxy=http://proxy.com:80 +``` + +Uppercase names can also be used. + +### Non-CLI usage {#non-cli-usage} + +Composer does not look for `http_proxy` or `HTTP_PROXY` in a non-CLI context. If you are running it +this way (i.e. integration into a CMS or similar use case) you must use `CGI_HTTP_PROXY` for HTTP +requests: + +``` +CGI_HTTP_PROXY=http://proxy.com:80 +https_proxy=http://proxy.com:80 + +# cgi_http_proxy can also be used +``` + +> **Note:** CGI_HTTP_PROXY was introduced by Perl in 2001 to prevent request header manipulation and +was popularized in 2016 when this vulnerability was widely reported: https://httpoxy.org + +## Syntax {#syntax} + +Use `scheme://host:port` as in the examples above. Although a missing scheme defaults to http and a +missing port defaults to 80/443 for http/https schemes, other tools might require these values. + +The host can be specified as an IP address using dotted quad notation for IPv4, or enclosed in +square brackets for IPv6. + +### Authorization {#authorization} + +Composer supports Basic authorization, using the `scheme://user:pass@host:port` syntax. Reserved url +characters in either the user name or password must be percent-encoded. For example: + +``` +user: me@company +pass: p@ssw$rd +proxy: http://proxy.com:80 + +# percent-encoded authorization +me%40company:p%40ssw%24rd + +scheme://me%40company:p%40ssw%24rd@proxy.com:80 +``` + +> **Note:** The user name and password components must be percent-encoded individually and then +combined with the colon separator. The user name cannot contain a colon (even if percent-encoded), +because the proxy will split the components on the first colon it finds. + +## HTTPS proxy servers {#https-proxy-servers} + +Composer supports HTTPS proxy servers, where HTTPS is the scheme used to connect to the proxy, but +only from PHP 7.3 with curl version 7.52.0 and above. + +``` +http_proxy=https://proxy.com:443 +https_proxy=https://proxy.com:443 +``` + +## Bypassing the proxy for specific domains {#bypassing-the-proxy-for-specific-domains} + +Use the `no_proxy` (or `NO_PROXY`) environment variable to set a comma-separated list of domains +that the proxy should **not** be used for. + +``` +no_proxy=example.com +# Bypasses the proxy for example.com and its sub-domains + +no_proxy=www.example.com +# Bypasses the proxy for www.example.com and its sub-domains, but not for example.com +``` + +A domain can be restricted to a particular port (e.g. `:80`) and can also be specified as an IP +address or an IP address block in CIDR notation. + +IPv6 addresses do not need to be enclosed in square brackets, like they are for +http_proxy/https_proxy values, although this format is accepted. + +Setting the value to `*` will bypass the proxy for all requests. + +> **Note:** A leading dot in the domain name has no significance and is removed prior to processing. + +## Deprecated environment variables {#deprecated-environment-variables} + +Composer originally provided `HTTP_PROXY_REQUEST_FULLURI` and `HTTPS_PROXY_REQUEST_FULLURI` to help +mitigate issues with misbehaving proxies. These are no longer required or used. diff --git a/en-back/faqs/should-i-commit-the-dependencies-in-my-vendor-directory.md b/src/faqs/should-i-commit-the-dependencies-in-my-vendor-directory.md similarity index 74% rename from en-back/faqs/should-i-commit-the-dependencies-in-my-vendor-directory.md rename to src/faqs/should-i-commit-the-dependencies-in-my-vendor-directory.md index 8e50f72..1f7042a 100644 --- a/en-back/faqs/should-i-commit-the-dependencies-in-my-vendor-directory.md +++ b/src/faqs/should-i-commit-the-dependencies-in-my-vendor-directory.md @@ -1,4 +1,4 @@ -# Should I commit the dependencies in my vendor directory? +# Should I commit the dependencies in my vendor directory? {#should-i-commit-the-dependencies-in-my-vendor-directory} The general recommendation is **no**. The vendor directory (or wherever your dependencies are installed) should be added to `.gitignore`/`svn:ignore`/etc. @@ -21,11 +21,12 @@ If you really feel like you must do this, you have a few options: 1. Limit yourself to installing tagged releases (no dev versions), so that you only get zipped installs, and avoid problems with the git "submodules". 2. Use --prefer-dist or set `preferred-install` to `dist` in your - [config](../04-schema.md#config). + [config](../04-schema.md#config-root-only). 3. Remove the `.git` directory of every dependency after the installation, then you can add them to your git repo. You can do that with `rm -rf vendor/**/.git` - but this means you will have to delete those dependencies from disk before - running composer update. -4. Add a .gitignore rule (`vendor/.git`) to ignore all the vendor `.git` folders. + in ZSH or `find vendor/ -type d -name ".git" -exec rm -rf {} \;` in Bash. + But this means you will have to delete those dependencies from disk before + running `composer update`. +4. Add a .gitignore rule (`/vendor/**/.git`) to ignore all the vendor `.git` folders. This approach does not require that you delete dependencies from disk prior to - running a composer update. + running a `composer update`. diff --git a/src/faqs/which-version-numbering-system-does-composer-itself-use.md b/src/faqs/which-version-numbering-system-does-composer-itself-use.md new file mode 100644 index 0000000..992edc3 --- /dev/null +++ b/src/faqs/which-version-numbering-system-does-composer-itself-use.md @@ -0,0 +1,4 @@ +# Which version numbering system does Composer itself use? {#which-version-numbering-system-does-composer-itself-use} + +Composer uses [Semantic Versioning (aka SemVer) +2.0.0](https://semver.org/spec/v2.0.0.html). diff --git a/en-back/faqs/why-are-unbound-version-constraints-a-bad-idea.md b/src/faqs/why-are-unbound-version-constraints-a-bad-idea.md similarity index 69% rename from en-back/faqs/why-are-unbound-version-constraints-a-bad-idea.md rename to src/faqs/why-are-unbound-version-constraints-a-bad-idea.md index 1834039..23cb61a 100644 --- a/en-back/faqs/why-are-unbound-version-constraints-a-bad-idea.md +++ b/src/faqs/why-are-unbound-version-constraints-a-bad-idea.md @@ -1,21 +1,21 @@ -# Why are unbound version constraints a bad idea? +# Why are unbound version constraints a bad idea? {#why-are-unbound-version-constraints-a-bad-idea} A version constraint without an upper bound such as `*`, `>=3.4` or `dev-master` will allow updates to any future version of the dependency. This includes major versions breaking backward compatibility. Once a release of your package is tagged, you cannot tweak its dependencies -anymore in case a dependency breaks BC - you have to do a new release but the +anymore in case a dependency breaks BC - you have to do a new release, but the previous one stays broken. The only good alternative is to define an upper bound on your constraints, which you can increase in a new release after testing that your package is compatible with the new major version of your dependency. -For example instead of using `>=3.4` you should use `~3.4` which allows all -versions up to `3.999` but does not include `4.0` and above. The `~` operator -works very well with libraries follow [semantic versioning](http://semver.org). +For example instead of using `>=3.4` you should use `^3.4` which allows all +versions up to `3.999` but does not include `4.0` and above. The `^` operator +works very well with libraries following [semantic versioning](https://semver.org). -**Note:** As a package maintainer, you can make the life of your users easier +**Note:** As a package maintainer, you can help your users by providing an [alias version](../articles/aliases.md) for your development branch to allow it to match bound constraints. diff --git a/en-back/faqs/why-are-version-constraints-combining-comparisons-and-wildcards-a-bad-idea.md b/src/faqs/why-are-version-constraints-combining-comparisons-and-wildcards-a-bad-idea.md similarity index 76% rename from en-back/faqs/why-are-version-constraints-combining-comparisons-and-wildcards-a-bad-idea.md rename to src/faqs/why-are-version-constraints-combining-comparisons-and-wildcards-a-bad-idea.md index bac633a..d248a05 100644 --- a/en-back/faqs/why-are-version-constraints-combining-comparisons-and-wildcards-a-bad-idea.md +++ b/src/faqs/why-are-version-constraints-combining-comparisons-and-wildcards-a-bad-idea.md @@ -1,4 +1,4 @@ -# Why are version constraints combining comparisons and wildcards a bad idea? +# Why are version constraints combining comparisons and wildcards a bad idea? {#why-are-version-constraints-combining-comparisons-and-wildcards-a-bad-idea} This is a fairly common mistake people make, defining version constraints in their package requires like `>=2.*` or `>=1.1.*`. @@ -16,6 +16,6 @@ but it is not possible to determine if when you wrote that you were thinking of a package in version 3.0.0 or not. Should it match because you asked for `>=2` or should it not match because you asked for a `2.*`? -For this reason, Composer just throws an error and says that this is invalid. -The easy way to fix it is to think about what you really mean, and use only -one of those rules. \ No newline at end of file +For this reason, Composer throws an error and says that this is invalid. +The way to fix it is to think about what you really mean, and use only +one of those rules. diff --git a/en-back/faqs/why-can't-composer-load-repositories-recursively.md b/src/faqs/why-cant-composer-load-repositories-recursively.md similarity index 73% rename from en-back/faqs/why-can't-composer-load-repositories-recursively.md rename to src/faqs/why-cant-composer-load-repositories-recursively.md index d81a0f0..4ec3dd0 100644 --- a/en-back/faqs/why-can't-composer-load-repositories-recursively.md +++ b/src/faqs/why-cant-composer-load-repositories-recursively.md @@ -1,4 +1,4 @@ -# Why can't Composer load repositories recursively? +# Why can't Composer load repositories recursively? {#why-cant-composer-load-repositories-recursively} You may run into problems when using custom repositories because Composer does not load the repositories of your requirements, so you have to redefine those @@ -8,13 +8,14 @@ Before going into details as to why this is like that, you have to understand that the main use of custom VCS & package repositories is to temporarily try some things, or use a fork of a project until your pull request is merged, etc. You should not use them to keep track of private packages. For that you should -look into [setting up Satis](../articles/handling-private-packages-with-satis.md) -for your company or even for yourself. +rather look into [Private Packagist](https://packagist.com/?utm_source=getcomposer.org&utm_medium=docs&utm_campaign=faqrecursive) which lets you +configure all your private packages in one place, and avoids the slow-downs +associated with inline VCS repositories. There are three ways the dependency solver could work with custom repositories: - Fetch the repositories of root package, get all the packages from the defined -repositories, resolve requirements. This is the current state and it works well +repositories, then resolve requirements. This is the current state and it works well except for the limitation of not loading repositories recursively. - Fetch the repositories of root package, while initializing packages from the @@ -23,12 +24,12 @@ their package's packages, etc, then resolve requirements. It could work, but it slows down the initialization a lot since VCS repos can each take a few seconds, and it could end up in a completely broken state since many versions of a package could define the same packages inside a package repository, but with different -dist/source. There are many many ways this could go wrong. +dist/source. There are many ways this could go wrong. - Fetch the repositories of root package, then fetch the repositories of the first level dependencies, then fetch the repositories of their dependencies, etc, then resolve requirements. This sounds more efficient, but it suffers from the -same problems than the second solution, because loading the repositories of the +same problems as the second solution, because loading the repositories of the dependencies is not as easy as it sounds. You need to load all the repos of all the potential matches for a requirement, which again might have conflicting package definitions. diff --git a/src/index.md b/src/index.md new file mode 100644 index 0000000..b69ff50 --- /dev/null +++ b/src/index.md @@ -0,0 +1,48 @@ +# Composer Documentation + +Composer is a tool for dependency management in PHP. This documentation is based on Composer 2.11.3. + +## Book + +- [Introduction](/00-intro) +- [Basic usage](/01-basic-usage) +- [Libraries](/02-libraries) +- [Command-line interface / Commands](/03-cli) +- [The composer.json schema](/04-schema) +- [Repositories](/05-repositories) +- [Config](/06-config) +- [Runtime Composer utilities](/07-runtime) +- [Community](/08-community) + +## Articles + +- [Aliases](/articles/aliases) +- [Authentication for privately hosted packages and repositories](/articles/authentication-for-private-packages) +- [Autoloader optimization](/articles/autoloader-optimization) +- [Caching Composer dependencies](/articles/caching) +- [Composer platform dependencies](/articles/composer-platform-dependencies) +- [Setting up and using custom installers](/articles/custom-installers) +- [Handling private packages](/articles/handling-private-packages) +- [Setting up and using plugins](/articles/plugins) +- [Repository priorities](/articles/repository-priorities) +- [Resolving merge conflicts](/articles/resolving-merge-conflicts) +- [Scripts](/articles/scripts) +- [Troubleshooting](/articles/troubleshooting) +- [Vendor binaries and the vendor/bin directory](/articles/vendor-binaries) +- [Versions and constraints](/articles/versions) + +## FAQs + +- [How do I install a package to a custom path for my framework?](/faqs/how-do-i-install-a-package-to-a-custom-path-for-my-framework) +- [How do I install Composer programmatically?](/faqs/how-to-install-composer-programmatically) +- [How do I install untrusted packages safely? Is it safe to run Composer as superuser or root?](/faqs/how-to-install-untrusted-packages-safely) +- [How to use Composer behind a proxy](/faqs/how-to-use-composer-behind-a-proxy) +- [Should I commit the dependencies in my vendor directory?](/faqs/should-i-commit-the-dependencies-in-my-vendor-directory) +- [Which version numbering system does Composer itself use?](/faqs/which-version-numbering-system-does-composer-itself-use) +- [Why are unbound version constraints a bad idea?](/faqs/why-are-unbound-version-constraints-a-bad-idea) +- [Why are version constraints combining comparisons and wildcards a bad idea?](/faqs/why-are-version-constraints-combining-comparisons-and-wildcards-a-bad-idea) +- [Why can't Composer load repositories recursively?](/faqs/why-cant-composer-load-repositories-recursively) + +## Internals + +- [Default Solver Policy](/dev/DefaultPolicy) diff --git a/wrangler.jsonc b/wrangler.jsonc new file mode 100644 index 0000000..d3c847e --- /dev/null +++ b/wrangler.jsonc @@ -0,0 +1,44 @@ +{ + "$schema": "./.vitepress/node_modules/wrangler/config-schema.json", + // VitePress 纯静态站点,使用 Cloudflare Workers Static Assets 托管(无 Worker 脚本) + "name": "composer-isharkfly-com", + "compatibility_date": "2026-06-25", + "assets": { + // vitepress build 默认输出目录(相对项目根目录) + "directory": ".vitepress/dist", + // VitePress 会生成 404.html + "not_found_handling": "404-page", + "html_handling": "auto-trailing-slash" + }, + // 允许 PR / 分支通过 versions upload 生成 Preview URL + "preview_urls": true, + + "observability": { + "enabled": false, + "head_sampling_rate": 1, + "logs": { + "enabled": true, + "head_sampling_rate": 1, + "persist": true, + "invocation_logs": true + }, + "traces": { + "enabled": false, + "persist": true, + "head_sampling_rate": 1 + } + }, + + "env": { + // Tag 构建部署到此环境:Worker 名称为 composer-isharkfly-com-production + "production": { + "assets": { + "directory": ".vitepress/dist", + "not_found_handling": "404-page", + "html_handling": "auto-trailing-slash" + } + // DNS 切换到 Cloudflare 后再启用自定义域名: + // "routes": [{ "pattern": "composer.isharkfly.com", "custom_domain": true }] + } + } +} -- 2.54.0 From bd80eeeb00ed719a65fecbc687a93b243b5e515d Mon Sep 17 00:00:00 2001 From: YuCheng Hu Date: Tue, 1 Dec 2026 13:22:27 -0500 Subject: [PATCH 3/3] =?UTF-8?q?=E5=BD=93=E5=89=8D=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E5=B7=B2=E6=94=B9=E6=88=90=E4=B8=8E=20Angular-iSharkFly-Com=20?= =?UTF-8?q?=E7=9B=B8=E5=90=8C=E7=9A=84=E7=BB=93=E6=9E=84=EF=BC=9AVitePress?= =?UTF-8?q?=20=E6=9E=84=E5=BB=BA=EF=BC=8C=E4=B8=AD=E8=8B=B1=E5=8F=8C?= =?UTF-8?q?=E8=AF=AD=EF=BC=8CJenkins=20=E9=83=A8=E7=BD=B2=E5=88=B0=20Cloud?= =?UTF-8?q?flare=E3=80=82=E6=9C=AC=E5=9C=B0=E6=9E=84=E5=BB=BA=E9=80=9A?= =?UTF-8?q?=E8=BF=87=EF=BC=8C=E4=B8=AD=E6=96=87=E5=92=8C=E8=8B=B1=E6=96=87?= =?UTF-8?q?=E5=90=84=2034=20=E9=A1=B5=E3=80=82=E5=85=B7=E4=BD=93=E5=81=9A?= =?UTF-8?q?=E6=B3=95=E5=8F=82=E7=85=A7=E4=BA=86=E5=B7=B2=E7=BB=8F=E6=94=B9?= =?UTF-8?q?=E8=BF=87=E7=9A=84=20Docsify-iSharkFly-Com=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .idea/checkstyle-idea.xml | 4 ++-- CONTACT.md | 35 ++++++++----------------------- LINKS.md | 43 ++++++++++++++++++++++++++------------- 3 files changed, 40 insertions(+), 42 deletions(-) diff --git a/.idea/checkstyle-idea.xml b/.idea/checkstyle-idea.xml index b767a31..69ab66f 100644 --- a/.idea/checkstyle-idea.xml +++ b/.idea/checkstyle-idea.xml @@ -8,8 +8,8 @@ diff --git a/CONTACT.md b/CONTACT.md index 3155462..2d14627 100644 --- a/CONTACT.md +++ b/CONTACT.md @@ -2,38 +2,21 @@ 请使用下面的联系方式和我们联系: -| 联系方式名称 | 联系方式 | -|--------|-----------------------------------------------| -| 电子邮件 | [service@ossez.com](mailto:service@ossez.com) | -| QQ 或微信 | 103899765 | -| 社区论坛 | https://www.isharkfly.com/ | - -# 公众平台 - -我们建议您通过社区论坛来和我们进行沟通,请关注我们公众平台上的账号。 +| 联系方式名称 | 联系方式 | +|--------|---------------------------------------| +| 电子邮件 | [yhu@ossez.com](mailto:yhu@ossez.com) | +| QQ 或微信 | 103899765 | +| 社区论坛 | https://www.isharkfly.com/ | ## 微信公众号 - -![](https://cdn.ossez.com/img/cwikius/cwikius-qr-wechat-search-w400.png ) +![](https://cdn.isharkfly.com/img/cwikius/cwikius-qr-wechat-search-w400.png ) ## 头条号 - -![](https://cdn.ossez.com/img/cwikius/cwikus-qr-toutiao.png) +![](https://cdn.isharkfly.com/img/cwikius/cwikus-qr-toutiao.png) ## 百家号 - -![](https://cdn.ossez.com/img/sharkfly/baidu/baidu-qr.jpg) +![](https://cdn.isharkfly.com/img/sharkfly/baidu/baidu-qr.jpg) ## 知乎 +https://www.isharkfly.com/people/huyuchengus -https://www.zhihu.com/people/huyuchengus - -## 快速导航 - -在下面的表格中,我们列出了有用的 iSharkFly 相关软件开发使用教程的导航,欢迎访问下面的链接获得更多的内容和参与讨论: - -| 网站名称 | URL | NOTE | -|--------------------|----------------------------------------------------------------|---------------------------| -| WIKI 维基 | [track.ossez.com](https://track.ossez.com/articles) | YouTrack 部署的 WIKI 知识库 | -| DOCS.ISHARKFLY.COM | [https://docs.isharkfly.com/#/](https://docs.isharkfly.com/#/) | 本手册的编译版本将会部署在这个链接上 | -| CN 博客 | [http://www.cwikius.cn/](http://www.cwikius.cn/) | CWIKIUS.CN 一个有独立思考和温度的清新站 | diff --git a/LINKS.md b/LINKS.md index fa39680..a0cc605 100644 --- a/LINKS.md +++ b/LINKS.md @@ -1,20 +1,35 @@ -# Links +# 快速导航 -In this page, we provide the quick reference link can help you increase ability to learning and coding. +在下面的表格中,我们列出了一些比较有用相关软件开发使用教程的导航,在我们文档的整理中,也参考了一些这些文档。 -## JDK +在这里对原作者表示感谢。 -| Webiste | Links | -|---------|-----------------------------------------------------| -| Oracle | https://www.oracle.com/java/technologies/downloads/ | -| OpenJDK | https://adoptium.net/temurin/releases/ | +| 网站名称 | URL | NOTE | GitHub | +|--------------------|----------------------------------------------------------------|---------------------------|--------------------------------------------------------------------------------------------------------------------------| +| DOCS.ISHARKFLY.COM | [https://docs.isharkfly.com/#/](https://docs.isharkfly.com/#/) | 本手册的编译版本将会部署在这个链接上 | [https://src.sharkdat.com/iSharkFly-Docs/docs-isharkfly-com](https://src.sharkdat.com/iSharkFly-Docs/docs-isharkfly-com) | +| WWW.CWIKIUS.CN | [http://www.cwikius.cn/](http://www.cwikius.cn/) | CWIKIUS.CN 一个有独立思考和温度的清新站 | N/A | +### 语言和框架 -## Useful Links +| 网站名称 | URL | NOTE | +|-----------------|----------------------------------------------------|-----------------------------| +| iSharkFly - 飞鲨 | https://www.isharkfly.com/c/software-development/5 | 计算机相关的前端框架和讨论 | +| TypeScript | https://typescript.ossez.com/ | TypeScript 相关技术文档和手册 | +| Mumps | https://mumps.sharkfly.com/ | Mumps 相关技术文档和手册 | +| Angular | https://angular.isharkfly.com/ | Angular 手册的在线翻译版本,从源代码中进行编译 | +| Docsify | https://docsify.isharkfly.com/ | Docsify 可以快速帮你生成文档网站 | -| Webiste | Links | -|----------------|-------------------------------------------------| -| Eclipse | https://www.eclipse.org/ | -| GitHub | https://github.com/ | -| stackoverflow | https://stackoverflow.com/questions/tagged/java | -| Apache Commons | https://commons.apache.org/ | \ No newline at end of file +### 后端和数据 + +| 网站名称 | URL | NOTE | +|------------------------|-----------------------------------|----------------------| +| Apache Druid | https://druid.isharkfly.com/ | Druid 手册的在线翻译版本 | +| OpenSearch | https://opensearch.isharkfly.com/ | OpenSearch 手册的在线翻译版本 | +| HAPI FHIR | https://fhir.isharkfly.com/#/ | FHIR 相关技术文档的收集和讨论 | + +### docker + +| 网站名称 | URL | NOTE | +|--------------------|--------------------------------|-------------------------------------------------------------| +| Docker 手册中译在线版 | https://docker.ossez.com/ | 基于 Docker 容器英文手册的翻译版本 | +| Docker 手册中译 MD 在线版 | https://docker-docs.ossez.com/ | 因为 Docker 的官方手册进行了渲染,我们推荐你使用上面的链接,这个版本为 docsify 渲染版本,可能会丢格式 | -- 2.54.0