Method |
Description |
|
fixPackageName ( string $name ) : string |
Transforms a project name into a valid Composer package name. |
|
getComposerContentHash ( string $composerJsonFileContents ) : string |
Returns the md5 hash of the sorted content of the composer file. |
|
getProjectConfig ( ) : array |
It returns the project's Composer config as a PHP array. |
|
saveProjectConfig ( array $config ) |
It saves the given PHP array as the project's Composer config. In addition
to JSON-serializing the contents, it synchronizes the composer.lock file to
avoid out-of-sync Composer errors. |
|
syncComposerLockFile ( ) |
Updates the hash values stored in composer.lock to avoid out-of-sync
problems when the composer.json file contents are changed. |
|