Skip to content

Instantly share code, notes, and snippets.

@binarykore
Created September 3, 2023 10:03
Show Gist options
  • Select an option

  • Save binarykore/c8cf816d17e8b692824df9d670409b6e to your computer and use it in GitHub Desktop.

Select an option

Save binarykore/c8cf816d17e8b692824df9d670409b6e to your computer and use it in GitHub Desktop.
Git Update Composer Lock and JSON File without Pulling the Vendor Folder or Package from its Repository, This is for Vercel..
php composer.phar require --no-update "vendor/package_name:^1.0.0"
php composer.phar update --no-install
php composer.phar update --no-install "vendor/package_name"
php composer.phar validate
php composer.phar install --dry-run
# This Method is for Git-based File Hosting Systems like Vercel..
# This Pulls Out the Required Information Packages without Pulling Out the Package Data..
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment