Skip to content

Commit

Permalink
update for composer docs
Browse files Browse the repository at this point in the history
  • Loading branch information
MrYamous committed Nov 30, 2022
1 parent 843347a commit 9ac0082
Show file tree
Hide file tree
Showing 2 changed files with 123 additions and 73 deletions.
31 changes: 27 additions & 4 deletions composer-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@
"description": "Package type, either 'library' for common packages, 'composer-plugin' for plugins, 'metapackage' for empty packages, or a custom type ([a-z0-9-]+) defined by whatever project this package applies to.",
"type": "string"
},
"target-dir": {
"description": "DEPRECATED: Forces the package to be installed into the given subdirectory path. This is used for autoloading PSR-0 packages that do not contain their full path. Use forward slashes for cross-platform compatibility.",
"type": "string"
},
"description": {
"type": "string",
"description": "Short package description."
Expand All @@ -33,6 +29,10 @@
"description": "Homepage URL for the project.",
"format": "uri"
},
"readme": {
"type": "string",
"description": "A relative path to the readme document."
},
"version": {
"type": "string",
"description": "Package version, see https://getcomposer.org/doc/04-schema.md#version for more info on valid schemes."
Expand Down Expand Up @@ -108,6 +108,10 @@
"type": "object",
"description": "Composer options.",
"properties": {
"allow-plugins": {
"type": "object",
"description": "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 settings 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."
},
"process-timeout": {
"type": "integer",
"description": "The timeout in seconds for process executions, defaults to 300 (5mins)."
Expand Down Expand Up @@ -461,6 +465,11 @@
"type": "string",
"description": "URL to the documentation.",
"format": "uri"
},
"rss": {
"type": "string",
"description": "URL to the RSS feed.",
"format": "uri"
}
}
},
Expand All @@ -474,6 +483,20 @@
"abandoned": {
"type": ["boolean", "string"],
"description": "Indicates whether this package has been abandoned, it can be boolean or a package name/URL pointing to a recommended alternative. Defaults to false."
},
"funding": {
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "The type of funding, or the platform through which funding can be provided, e.g. patreon, opencollective, tidelift or github."
},
"url": {
"type": "string",
"description": "URL to a website with details, and a way to fund the package.",
"format": "uri"
}
}
}
}
}
Loading

0 comments on commit 9ac0082

Please sign in to comment.