File manager - Edit - /home/autoph/public_html/projects/api/vendor/halaxa/json-machine/build/update-changelog.php
Back
<?php declare(strict_types=1); $version = $argv[1]; $changelogPath = $argv[2]; $changelogContents = file_get_contents($changelogPath); if (false !== strpos($changelogContents, $version)) { echo "Version $version already in $changelogPath. Stopping."; exit(1); } $releaseDate = date('Y-m-d'); $changelogMatch = '## master'; $changelogReplace = "$changelogMatch Nothing yet <br> ## $version - $releaseDate"; file_put_contents($changelogPath, str_replace($changelogMatch, $changelogReplace, $changelogContents));
| ver. 1.4 |
.
| PHP 8.0.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings