tobya / work-with-composer
Work-with-composer provides a basic set of tools for working with local repositories
Fund package maintenance!
Requires
- php: ^8.1
- illuminate/contracts: ^11.0||^12.0||^13.0
- spatie/laravel-package-tools: ^1.16
Requires (Dev)
- laravel/pint: ^1.14
- nunomaduro/collision: ^8.8
- orchestra/testbench: ^11.0.0||^10.0.0||^9.0.0
- pestphp/pest: ^4.0
- pestphp/pest-plugin-arch: ^4.0
- pestphp/pest-plugin-laravel: ^4.0
- spatie/laravel-ray: ^1.35
README
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.