Loading... Background job is running.

Edit on GitHub

Private Networks and Firewalls

Using Private Packagist to access code in your internal company network

Private Packagist requires access to your source code for several reasons:

  1. Private Packagist needs to list all tags and branches on your version control system repositories to identify the available versions which Composer can install.
  2. Private Packagist needs to collect the metadata from composer.json files stored in your version control system to make the information available to Composer commands.
  3. Private packagist needs to export zip files of specific revisions of your packages' source code for fast installation through Composer without cloning or checking out your entire source code repository on CI or deployment systems.
  4. If you wish to use an integration with your code hosting solution (e.g. GitHub Enterprise, GitLab Self-Managed, Bitbucket Server) Private Packagist will need access to their API to allow logins with OAuth and to provide listings of teams and repositories.

If the source code for your private packages is stored in your company's private network behind a firewall and you would like to use Private Packagist you have two options:

  1. Use our on-premises product Private Packagist Enterprise which you can host inside your company's private network with full access to your source code.
  2. Use our SaaS solution Private Packagist Cloud and ensure your version control system can be reached by our servers as explained below.

Granting Private Packagist Cloud Network Access

Public IP and DNS

You will be adding packages to Private Packagist using a URL to the respective version control repository. You need to ensure that you either have public DNS records pointing to the machines on your internal network or you need to directly use the respective IP addresses. If your version control system server does not have a public IP, Private Packagist cannot connect to it.

Firewall Configuration

You need to allow connections from Private Packagist Cloud servers to servers behind your firewall. We recommend that you accept external connections from all IPs in the document at https://packagist-network.s3.eu-west-1.amazonaws.com/ip-address-list. This list is frequently updated automatically to contain a current list of our IP addresses used to access your source code or your code hosting solution. For this reason we recommend that you use your firewall's mechanism to reference an external list of IPs with this URL rather than manually copying the IPs which will require frequent maintenance on your end.

Free Trial

Login with github now to create an organization and start your free trial!