title: How to install composer packages without internet access?
body: <p>Currently, I am trying to migrate a development environment for a Laravel project from a local environment with Internet access to a new development environment that does not have internet access due to our company policies. However, I am stuck at trying to prepare the Laravel project as I'm running the <code>composer install</code> command as it tries to download the packages from packagist.</p>
  <p>I've tried the solution suggested <a href="https://stackoverflow.com/questions/26378840/composer-how-to-add-a-dependency-without-network-connection">here</a> but the project currently has more than 30 packages and this method would involve editing each json to include a version as well as the dependencies of each package.</p>
  <p>I have also tried to edit the composer.json to point to the path of the packages as mentioned <a href="https://getcomposer.org/doc/05-repositories.md#path" rel="nofollow noreferrer">here</a> which would also have the same issue where I would need to manually specify the nested required packages as well.</p>
  <p>Is there a way to setup the development environment which would not require Internet access while I already have the vendor files already?</p>
  <p>Thanks.</p>
  <p>[Edit] As mentioned in my original question, the solution that was suggested in the original question was too manual and require specifying each package and its version in the composer.json. If there were 30 dependencies and each one has its own dependencies, the original solution wouldn't be feasible as there will be too many packages to be done manually.</p>