Patch a composer package
Go to the Pull Request and add .patch to the URL and download this patch file
https://github.com/codesource/typo3-cdsrc_bepwreset/pull/18.patch
composer require cweagans/composer-patches
"patches": {
"typo3-ter/cdsrc-bepwreset": {
"Add TYPO3 v9.5 compatibility": "https://patch-diff.githubusercontent.com/raw/codesource/typo3-cdsrc_bepwreset/pull/18.patch"
}
},
Run composer install and all the magic is done.