composer-schema.json 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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",
  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. "extra": {
  77. "type": ["object", "array"],
  78. "additionalProperties": true,
  79. "optional": true
  80. }
  81. }
  82. }