如果失去对私人仓库的访问权限,如何使用Laravel进行作曲家更新

I have a project developed with Laravel 4 and using composer. I developed my app using a composer package from a private github repo that I have since lost access to. The app works great on my localhost since the package files are still in the vendor folder, however the vendor folder does not get added to GIT so when I checkout from prod server the app is incomplete. I cannot run "composer install" from prod because it complains that my credentials to that private repo don't work anymore.

So in the event a package goes down or I loose access to a remote repo, how am I supposed to continue using composer and still use the local copy of the package still living in the vendor folder.

So ideas I thought of:

  • Commit the entire vendor folder to GIT
  • Setup another repo and copy the package files there and update package url in composer.json
  • Copy the package files out of vendor folder and try to get them to work as part of the app folder

I can't seem to find much help searching Google. Any help would be appreciated.