Packages
Learn how to create and manage your private Composer packages.
Overview
Packages are the core unit in Privato. Each package represents a Composer package that you want to distribute privately to your customers.
Creating a Package
To create a new package, navigate to Packages in your dashboard and click Create Package.
Package Name
Your package name can be anything you want and is used in all displayable parts of Privato, including customer facing pages.
You do not need to enter the name of the Composer package itself (e.g. acme/analytics) as Privato will pull that from the composer.json for you.
Source Configuration
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.
Package 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.1"
},
"autoload": {
"psr-4": {
"Vendor\\PackageName\\": "src/"
}
}
}
Deleting a Package
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.