HasRequirements for composer

Protected Properties

protected string $composerBackup

composerBackup contents

Protected Methods

protected backupComposerFile()

protected backupComposerFile(): void

protected restoreComposerFile()

protected restoreComposerFile(): void

protected writePackages()

protected writePackages($requirements): void

writePackages stores package changes to disk. The requirements key is the package name and the value is the version constraint or false to remove the requirement.