Guide-Php

Introduction

This guide will walk you through the process of creating a PHP Composer project, pushing it to Gemfury, and then installing it. Before you get started, be sure you have the following:

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.