-
-
Notifications
You must be signed in to change notification settings - Fork 0
ComposerFundingCodec
github-actions edited this page Apr 19, 2026
·
1 revision
Parses and renders Composer funding metadata.
- Full name:
\FastForward\DevTools\Funding\ComposerFundingCodec - This class is marked as final and can't be subclassed
- This class is a Final class
Parses Composer funding entries into a normalized funding profile.
public parse(string $contents): \FastForward\DevTools\Funding\FundingProfileParameters:
| Parameter | Type | Description |
|---|---|---|
$contents |
string | the composer.json contents |
Return Value:
the normalized funding profile
Applies a normalized funding profile to composer.json contents.
public dump(string $contents, \FastForward\DevTools\Funding\FundingProfile $profile): stringParameters:
| Parameter | Type | Description |
|---|---|---|
$contents |
string | the composer.json contents |
$profile |
\FastForward\DevTools\Funding\FundingProfile | the merged funding profile |
Return Value:
the updated composer.json contents