Giter VIP home page Giter VIP logo

composer-dev-symlink's Introduction

Composer Dev-Symlink

This plugin aims to assist when working on local composer packages without using a "path" repository, because that will break the composer.lock file. The goal was to simulate the basic behaviour of "npm link" to create symlinks and have the local packages in deployment in a single directory.

Installation

Simply install this plugin by using composer:

composer require labor-digital/composer-dev-symlink

If you want to install the plugin globally instead, feel free to do so by using:

composer global require labor-digital/composer-dev-symlink

Configuration

By default the plugin will look for packages to link in the directory: $CWD/vendor-dev/. However, if that does not fit your needs you can always change the directory by setting it in your project's composer.json:

{
	"extra": {
		"composer-dev-symlink": "./my-dev/*"
	}
}

To keep in mind

Postcardware

You're free to use this package, but if you use it regularly in your development environment we highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using.

Our address is: LABOR.digital - Fischtorplatz 21 - 55116 Mainz, Germany

We publish all received postcards on our company website.

composer-dev-symlink's People

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

marvinhinz

composer-dev-symlink's Issues

Unexpected behaviour with $this->isRoot results in composer-dev-symlink failing silently

Hi!

Just tried this module, as its exactly what i needed, thanks a lot!

But i ran in to a problem where the hooks were not fired, it was because of the $this->isRoot check.

After a bit of debugging i found out our repos that require a shared module dont have names in the composer.json, this comment helped me composer/composer#7089 (comment)

Is that behaviour intended or is this maybe a confusion when __root__ is returned? After adding the name to my project, this plugin works flawless!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.