tobya/work-with-composer

Work-with-composer provides a basic set of tools for working with local repositories

Maintainers

Package info

github.com/tobya/work-with-composer

pkg:composer/tobya/work-with-composer

Transparency log

Fund package maintenance!

Tobya

Statistics

Installs: 20

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v0.4 2026-08-20 17:23 UTC

This package is auto-updated.

Last update: 2026-08-20 17:26:49 UTC


README

Latest Version on Packagist Total Downloads

A set of simple tools to allow easy swapping in of local and production repositories. This is very useful when you are working on a package in conjunction with an app. Previously created local links are stored so that future application can be simply selected.

Installation

You can install the package via composer:

composer require tobya/work-with-composer

You can publish the config file with:

php artisan vendor:publish --tag="work-with-composer-config"

Usage

Add a new local repository

php artisan composer:add-local

Restore a repository to the production version before publishing your app.

php artisan composer:restore-production

Restore a previously set up local repository for development

php artisan composer:restore-local

Notes

The package stores the version of a package that was set when the local version is provided. When restored this 'last_known_version' is restored.

Testing

composer test

Credits

License

The MIT License (MIT). Please see License File for more information.