Getting started on Gemfury with PHP

Install packages with Composer

You can configure a PHP Composer project to use your Gemfury repository. To start, add your Repository URL and requirements to your project’s composer.json:

{
  "repositories": [{
    "url": "https://php.fury.io/USERNAME/",
    "type": "composer"
  }],

  "require": {
    "user/package-name": ">= 1.0.0"
  }
}
Accessing private packages

To authenticate into your private repository, create auth.json in your COMPOSER_HOME or the root directory of your project. This can be done separately for each developer as well as for your build pipeline.

{
  "http-basic": {
    "php.fury.io": {
      "username": "your-deploy-token",
      "password": ""
    }
  }
}