PHPackages                             valentiniljaz/packagist-publish - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. valentiniljaz/packagist-publish

ActiveLibrary

valentiniljaz/packagist-publish
===============================

Publish your package to Packagist.com using API. Very useful for PHP monorepos.

0.1.8(1y ago)179MITPHPPHP &gt;=7.4

Since Apr 21Pushed 1y ago1 watchersCompare

[ Source](https://github.com/valentiniljaz/packagist-publish)[ Packagist](https://packagist.org/packages/valentiniljaz/packagist-publish)[ Docs](https://github.com/valentiniljaz/packagist-publish)[ RSS](/packages/valentiniljaz-packagist-publish/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (3)Versions (9)Used By (0)

Private Packagist Publish
-------------------------

[](#private-packagist-publish)

Publish your package to Packagist.com using API. Very useful for PHP monorepos.

### Install

[](#install)

Add the package as dev dependency to your project:

```
composer require --dev valentiniljaz/packagist-publish

```

### Use

[](#use)

Publish your package:

```
./vendor/bin/packagist-publish

```

> Initial publish of the package must be done manually by uploading archive to Packagist.com

If you only need to prepare archive for publishing:

```
./vendor/bin/packagist-archive

```

Help about commands:

```
./vendor/bin/packagist-publish -h
./vendor/bin/packagist-archive -h

```

### How it works

[](#how-it-works)

#### 1) Builds zip archive using GIT

[](#1-builds-zip-archive-using-git)

```
git archive -o  HEAD[:]

```

> You must have all your changes committed.

#### 2) Publishes archive to Packagist.com using API endpoint

[](#2-publishes-archive-to-packagistcom-using-api-endpoint)

```
POST /api/packages//artifacts/

```

> You must provide Packagist API Key and Secret either by command params (--apiKey, --apiSecret) or by env variables (PACKAGIST\_KEY, PACKAGIST\_SECRET). Params have precedence over env vars.

#### Details

[](#details)

- If path to composer.json is not specified by command option it'll take the first composer.json it finds from current working dir upwards.
- For GIT ARCHIVE it needs to know the root of GIT repo; it'll take the first dir containing `.git` from current working dir upwards.
- Default destination for archive is the location of dir containing composer.json.
- If you need to ignore specific folder(s)/file(s) from archive you can use `.gitattributes` and set `export-ignore` attribute.

Author
------

[](#author)

Valentin Iljaž

License
-------

[](#license)

MIT

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~121 days

Recently: every ~208 days

Total

8

Last Release

631d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/95919673d03064a9068552d91818b508945caa1db5bf3b3fc3a2d3afe9a03be7?d=identicon)[valentiniljaz](/maintainers/valentiniljaz)

---

Top Contributors

[![valentiniljaz](https://avatars.githubusercontent.com/u/1780811?v=4)](https://github.com/valentiniljaz "valentiniljaz (1 commits)")

### Embed Badge

![Health badge](/badges/valentiniljaz-packagist-publish/health.svg)

```
[![Health](https://phpackages.com/badges/valentiniljaz-packagist-publish/health.svg)](https://phpackages.com/packages/valentiniljaz-packagist-publish)
```

###  Alternatives

[laravel/framework

The Laravel Framework.

34.6k509.9M17.0k](/packages/laravel-framework)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k36.7M259](/packages/laravel-dusk)[spatie/laravel-health

Monitor the health of a Laravel application

85810.0M83](/packages/spatie-laravel-health)[drupal/core

Drupal is an open source content management platform powering millions of websites and applications.

19462.3M1.3k](/packages/drupal-core)[tempest/framework

The PHP framework that gets out of your way.

2.1k23.1k9](/packages/tempest-framework)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
