Packages

Learn how to create and manage your private Composer packages.

Overview

Packages are the core resource in Privato. Each package represents a single Composer package that can be distributed via a Composer repository.

Creating a package

To create a new package, navigate to the "Packages" page in your Privato panel and click "Create package".

Package name

Your package's name can be anything and will be used in for all display purposes, e.g. checkout pages, customer portal, inside of Privato.

Composer package name

This is the vendor/package name of your package and should match the name field of your package's composer.json file.

Source control

Privato is designed to integrate with GitHub and will configure a webhook to automatically detect new releases.

It then syncs Privato's data with your GitHub repository and updates the Composer registry.

composer.json

Your package must include a valid composer.json file with at minimum:

{
    "name": "vendor/package-name",
    "description": "Your package description",
    "type": "library",
    "require": {
        "php": "^8.3"
    },
    "autoload": {
        "psr-4": {
            "Vendor\\PackageName\\": "src/"
        }
    }
}

Deleting a packing

You can delete a package from the package settings page. This will:

  • Remove all releases associated with the package
  • Invalidate any licenses for this package
  • Remove the public package page

Warning: This action cannot be undone. Customers will no longer be able to install or update this package.