NoccyLabs

NoccyLabs develops open source libraries and software. With many projects ongoing, this organization contains public content repositories, as well as software and components considered stable.

noccylabs/composer-package-plugin (0.2.1.1)

Published 2026-01-09 16:18:35 +00:00 by noccy

Installation

{
	"repositories": [{
			"type": "composer",
			"url": ""
		}
	]
}
composer require noccylabs/composer-package-plugin:0.2.1.1

About this package

A composer plugin for packaging and publishing composer packages

Composer Package Tools

This is a composer plugin to create zipballs, and publish them to Gitea.

Install

Install globally using composer:

$ composer global repo add noccylabs composer https://dev.noccylabs.info/api/packages/noccylabs/composer
$ composer global require noccylabs/composer-package-plugin

Usage

Logging in to registry

$ composer package:login myserver.tld

Building packages

Packages are built with the package:build command, or the more convenient alias package.

# Create package by cloning into temporary directory
$ composer package
# Build zipball even if it exists
$ composer package --force
# Create and publish, and delete zipball afterwards
$ composer package --rm --publish gitea:myserver.tld
# Create and publish to another owner
$ composer package --publish gitea:myserver.tld:myowner

Dirty builds

Dirty builds are made directly from the source tree instead of from a clone of a specific tag. You should avoid these as far as possible, but if for some reason you need to build a package directly from your working copy while piggybacking on the git version, pass --dirty to the package:build command.

Publishing packages

If you like to manually publish a package (as opposed to passing --publish to the package:build command) you can use the package:publish command.

# Publish latest zipball to another owner
$ composer package:publish gitea:myserver.tld:myowner
# Publish specific version
$ composer package:publish gitea:myserver.tld 1.0.0

Dependencies

Dependencies

ID Version
composer-plugin-api ^2.0

Development Dependencies

ID Version
composer/composer ^2.9
Details
Composer
2026-01-09 16:18:35 +00:00
2
Christopher Vagnetoft
GPL-2.0-or-later
27 KiB
Assets (1)
Versions (4) View all
0.2.1.1 2026-01-09
0.2.1 2026-01-09
0.2.0 2026-01-09
0.1.1 2025-12-28