Sometimes you need to make custom modifications to a composer package. Assuming that your modification is a bug fix, the best approach is to file an issue with the package’s issue queue and submit the fix as a pull request (or a patch file when dealing with WordPress maintenance support plans projects). Then you can use the composer-patches plugin to include the change in your project.
Source: New feed
Brian Osborne: Using a Forked Package in Your Composer Project
