浏览代码

Add abandoned property in composer schema documentation

Pierre-Yves Lebecq 7 年之前
父节点
当前提交
efc744de76
共有 1 个文件被更改,包括 16 次插入0 次删除
  1. 16 0
      doc/04-schema.md

+ 16 - 0
doc/04-schema.md

@@ -861,6 +861,22 @@ The example will include `/dir/foo/bar/file`, `/foo/bar/baz`, `/file.php`,
 
 Optional.
 
+### 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 indicates this package is abandoned.
+Use `"abandoned": "monolog/monolog"` to indicates this package is abandoned and the
+recommended alternative is  `monolog/monolog`.
+
+Defaults to false.
+
+Optional.
+
 ### non-feature-branches
 
 A list of regex patterns of branch names that are non-numeric (e.g. "latest" or something),