Download the PHP package edersoares/laravel-plug-and-play without Composer
On this page you can find all versions of the php package edersoares/laravel-plug-and-play. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download edersoares/laravel-plug-and-play
More information about edersoares/laravel-plug-and-play
Files in edersoares/laravel-plug-and-play
Package laravel-plug-and-play
Short Description Plug and play packages in Laravel
License MIT
Informations about the package laravel-plug-and-play
Laravel Plug and Play
Add to the Laravel application the ability to plug and play packages that are build with package discover without necessarily installing a new dependency on composer.json
.
This package uses the great plugin Composer Merge Plugin which allows you to merge multiple composer.json
files into the Composer runtime.
Installation
Laravel Plug and Play requires Composer 1.0.0 or newer.
Usage
The composer.json
file needs to be updated to something like:
This package is a Composer Merge Plugin extension and its features can be used usually. See more in plugin configuration.
Adding a package
Move or clone the package to packages/<vendor>/<name>
folder and runs:
Whenever package dependencies are updated, this command must be executed.
This will instruct Composer to recalculate the file hash for the top-level composer.json thus triggering composer-merge-plugin to look for the sub-level configuration files and update your dependencies.
https://github.com/wikimedia/composer-merge-plugin#updating-sub-levels-composerjson-files
Creating a package
To create a package execute:
This will create a package in packages
folder:
See the official documentation about package discover.
Removing a package
Just only remove the package folder and runs:
License
Laravel Plug and Play is licensed under the MIT license. See the license file for more details.
All versions of laravel-plug-and-play with dependencies
ext-json Version *
composer-plugin-api Version ^1.1|^2.0
laravel/framework Version ~5.5|~6|~7
wikimedia/composer-merge-plugin Version dev-feature/composer-v2 as 1.5.x-dev