Skip to content

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

Methods

parse

Parses Composer funding entries into a normalized funding profile.

public parse(string $contents): \FastForward\DevTools\Funding\FundingProfile

Parameters:

Parameter Type Description
$contents string the composer.json contents

Return Value:

the normalized funding profile


dump

Applies a normalized funding profile to composer.json contents.

public dump(string $contents, \FastForward\DevTools\Funding\FundingProfile $profile): string

Parameters:

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


Clone this wiki locally