PHPackages                             vincentholmblad/bitbucket-packagist - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. vincentholmblad/bitbucket-packagist

ActiveComposer-plugin[Utility &amp; Helpers](/categories/utility)

vincentholmblad/bitbucket-packagist
===================================

A simple composer plugin that automatically creates a local packagist for private repositories hosted on BitBucket.

1.0(8y ago)020MITPHP

Since May 13Pushed 8y ago1 watchersCompare

[ Source](https://github.com/vincentholmblad/bitbucket-packagist)[ Packagist](https://packagist.org/packages/vincentholmblad/bitbucket-packagist)[ Docs](https://github.com/vincentholmblad/bitbucket_packagist)[ RSS](/packages/vincentholmblad-bitbucket-packagist/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)Dependencies (4)Versions (2)Used By (0)

About
=====

[](#about)

A simple library that automatically creates a local packagist for private repositories hosted on BitBucket.

The project has two main functions:

1. Creates a json file with auto-generated repositories (vcs) from a user or team on BitBucket that can be merged into an existing composer.json file. This is almost like having a local version of a Private Packagist.
2. Takes the auto-generated json file to also create a static composer repository (through [Satis](https://github.com/composer/satis)) that can be uploaded to a server and served to other projects.

Installation
============

[](#installation)

`composer require vincentholmblad/bitbucket-packagist`

Add these lines to composer.json after you've installed the package.

```
// See https://bitbucket.org/account/user//api
// There you can create an OAuth consumer
// Make sure the consumer has access to read repositories
"config": {
    "bitbucket_consumer_key": "key",
    "bitbucket_consumer_secret": "secret",
    "bitbucket_team": "team or user"
},
// Merges scripts and repositories from the user or team
extra: {
    "merge-plugin": {
        "include": [
            "./vendor/vincentholmblad/bitbucket-packagist/bitbucket_packagist_scripts.json",
            "./vendor/vincentholmblad/bitbucket-packagist/packages.json"
        ],
        "merge-scripts": true
    }
}
```

Then run `composer run-script bb_composer_packages` whenver you need to update your local packagist.

**NOT RECOMMENDED!** If you want to automatically update the local packagist with any changes then also include this to your composer.json. This will make the process of updating and installing new packages very slow as the process has to check load composer.json files from all your private repositories to build the packages.json file.

```
// Automatically update local private packagist
"scripts": {
    "pre-update-cmd": [
        "@bb_composer_packages"
    ],
    "pre-install-cmd": [
        "@bb_composer_packages"
    ]
}
```

If you want to upload the result to a server then run `composer run-script bb_composer_packages` and upload the resulting folder *("./dist/" inside the package directory in vendor)* to your hosting-service of choice. You can then include your new private packagist with this code in your composer.json.

```
// Load repositores from private packagist
"repositories": [
    {
        "type": "composer",
        "url": "link to uploaded position"
    }
]
```

Sidenote for repositories
=========================

[](#sidenote-for-repositories)

Make sure that every repository that you want to include has its own composer.json with at least a name and a version field. This namefield should match the name of the repository.

An example below.

```
{
    "name": "your-shorthand/repo-name",
    "version": "master"
}
```

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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

Unknown

Total

1

Last Release

2970d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7521618?v=4)[vincentholmblad](/maintainers/vincentholmblad)[@vincentholmblad](https://github.com/vincentholmblad)

---

Top Contributors

[![vincentholmblad](https://avatars.githubusercontent.com/u/7521618?v=4)](https://github.com/vincentholmblad "vincentholmblad (13 commits)")

---

Tags

bitbucketpackagistprivate-repositorybitbucketprivatepackagist

### Embed Badge

![Health badge](/badges/vincentholmblad-bitbucket-packagist/health.svg)

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

###  Alternatives

[ffraenz/private-composer-installer

A composer install helper for private packages

2321.7M5](/packages/ffraenz-private-composer-installer)[playbloom/satisfy

Satis composer repository manager with a Web UI

54810.6k](/packages/playbloom-satisfy)[badges/poser

Poser, add badges on your readme..

14476.9k11](/packages/badges-poser)[gotoandplay/gravityforms-composer-installer

A composer install helper for Gravity Forms

31402.0k](/packages/gotoandplay-gravityforms-composer-installer)[producer/producer

Tools for releasing library packages; supports Git, Mercurial, Github, Gitlab, and Bitbucket.

10419.2k3](/packages/producer-producer)[linkorb/autotune

Tune your autoloader

177.3k17](/packages/linkorb-autotune)

PHPackages © 2026

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