Download the PHP package vincentholmblad/bitbucket-packagist without Composer
On this page you can find all versions of the php package vincentholmblad/bitbucket-packagist. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download vincentholmblad/bitbucket-packagist
More information about vincentholmblad/bitbucket-packagist
Files in vincentholmblad/bitbucket-packagist
Package bitbucket-packagist
Short Description A simple package that automatically creates an includable composer file with all repositories of a bitbucket user or team.
License MIT
Homepage https://github.com/vincentholmblad/bitbucket_packagist
Informations about the package bitbucket-packagist
About
A simple library that automatically creates a local packagist for private repositories hosted on BitBucket.
The project has two main functions:
- 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.
- Takes the auto-generated json file to also create a static composer repository (through Satis) that can be uploaded to a server and served to other projects.
Installation
composer require vincentholmblad/bitbucket-packagist
Add these lines to composer.json after you've installed the package.
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.
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.
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.
All versions of bitbucket-packagist with dependencies
kriswallsmith/buzz Version ^0.16
composer/satis Version ^1.0
wikimedia/composer-merge-plugin Version ^1.4