composer-schema.json 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. {
  2. "name": "Package",
  3. "type": "object",
  4. "additionalProperties": false,
  5. "properties": {
  6. "name": {
  7. "type": "string",
  8. "description": "Package name, including type prefix if it's a plugin",
  9. "required": true
  10. },
  11. "type": {
  12. "description": "Package type, either 'Library', or the parent project it applies to if it's a plugin for a framework or application (e.g. 'Symfony2', 'Typo3', 'Drupal', ..), note that this has to be defined and communicated by any project implementing a custom composer installer, those are just unreliable examples.",
  13. "type": "string",
  14. "optional": true
  15. },
  16. "description": {
  17. "type": "string",
  18. "description": "Package description",
  19. "required": true
  20. },
  21. "keywords": {
  22. "type": "array",
  23. "items": {
  24. "type": "string"
  25. },
  26. "optional": true
  27. },
  28. "homepage": {
  29. "type": "string",
  30. "description": "Homepage URL for the project",
  31. "format": "uri",
  32. "optional": true
  33. },
  34. "version": {
  35. "type": "string",
  36. "description": "Package version, see http://packagist.org/about for more info on valid schemes",
  37. "required": true
  38. },
  39. "license": {
  40. "type": ["string", "array"],
  41. "description": "License name",
  42. "optional": true
  43. },
  44. "authors": {
  45. "type": "array",
  46. "items": {
  47. "type": "object",
  48. "additionalProperties": false,
  49. "properties": {
  50. "name": {
  51. "type": "string",
  52. "description": "Full name of the author",
  53. "required": true
  54. },
  55. "email": {
  56. "type": "string",
  57. "description": "Email address of the author",
  58. "format": "email",
  59. "required": true
  60. },
  61. "homepage": {
  62. "type": "string",
  63. "description": "Homepage URL for the author",
  64. "format": "uri",
  65. "optional": true
  66. }
  67. }
  68. },
  69. "optional": true
  70. },
  71. "require": {
  72. "type": "object",
  73. "additionalProperties": true,
  74. "optional": true
  75. },
  76. "replace": {
  77. "type": "object",
  78. "additionalProperties": true,
  79. "optional": true
  80. },
  81. "conflict": {
  82. "type": "object",
  83. "additionalProperties": true,
  84. "optional": true
  85. },
  86. "provide": {
  87. "type": "object",
  88. "additionalProperties": true,
  89. "optional": true
  90. },
  91. "recommend": {
  92. "type": "object",
  93. "additionalProperties": true,
  94. "optional": true
  95. },
  96. "suggest": {
  97. "type": "object",
  98. "additionalProperties": true,
  99. "optional": true
  100. },
  101. "extra": {
  102. "type": ["object", "array"],
  103. "additionalProperties": true,
  104. "optional": true
  105. }
  106. }
  107. }