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

@ -97,6 +97,9 @@ class ArrayLoaderTest extends TestCase
'authors' => array(
array('name' => 'Bob', 'email' => 'bob@example.org', 'homepage' => 'example.org', 'role' => 'Developer'),
),
'funding' => array(
array('type' => 'example', 'url' => 'https://example.org/fund'),
),
'require' => array(
'foo/bar' => '1.0',
),