1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-09 00:22:53 +00:00

Add funding field to composer.json

You can specify a list of funding options each with a type and URL. The
type is used to specify the kind of funding or the platform through
which funding is possible.
This commit is contained in:
Nils Adermann 2019-11-28 22:34:29 +01:00 committed by Jordi Boggiano
parent 8fd70d2dc4
commit 5c4f524d6a
No known key found for this signature in database
GPG key ID: 7BBD42C429EC80BC
12 changed files with 136 additions and 0 deletions

View file

@ -73,6 +73,15 @@ class ValidatingArrayLoaderTest extends TestCase
'rss' => 'http://example.org/rss',
'chat' => 'http://example.org/chat',
),
'funding' => array(
array(
'type' => 'example',
'url' => 'https://example.org/fund'
),
array(
'url' => 'https://example.org/fund'
),
),
'require' => array(
'a/b' => '1.*',
'b/c' => '~2',