Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #18984

Re: composer: dependences and dependents

Path csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From Arno Welzel <usenet@arnowelzel.de>
Newsgroups comp.lang.php
Subject Re: composer: dependences and dependents
Date Fri, 24 Jun 2022 13:31:04 +0200
Lines 32
Message-ID <jhlljoFqgl7U1@mid.individual.net> (permalink)
References <t8um63$n4e$1@gioia.aioe.org> <jhggfvF10g9U1@mid.individual.net> <t8v4f0$18r6$1@gioia.aioe.org> <jhgm0bF1stnU1@mid.individual.net> <t8v9bt$1pci$1@gioia.aioe.org> <jhgnpaF264jU1@mid.individual.net> <t8vbif$tvi$2@gioia.aioe.org>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding 7bit
X-Trace individual.net 2A2bIC4wGjDP59Wt+IRHwgM6PeBoCfsOP8yEdowTpak9Z2QvW2
Cancel-Lock sha1:s8gMfRLdcg9Rxi2ah+ZYoq0Adts=
Content-Language de-DE
In-Reply-To <t8vbif$tvi$2@gioia.aioe.org>
Xref csiph.com comp.lang.php:18984

Show key headers only | View raw


SupaPlex:

> Il 22/06/22 16:37, Arno Welzel ha scritto:
>> SupaPlex:
>>
>>> Il 22/06/22 16:07, Arno Welzel ha scritto:
>>>> Why do you try to use Composer outside a folder with composer.json?
>>>
>>> why shouldn't I do it?
>>
>> Because composer.json is the file where your dependencies are defined.
>>
>> Also see: <https://getcomposer.org/doc/01-basic-usage.md>
>>
>>
> 
> What dependencies should i define?
> The info I want is for packages global level, not for single project 
> (*/composer.json).

There is no "global" level.

Each composer.json defines the dependencies for that very project. There
are no "global" dependencies covering multiple projects. If a project
wants to uses a component, it *must* have a reference for that in
composer.json. The specific version used when installing the components
using "composer install" are then recorded in composer.lock.


-- 
Arno Welzel
https://arnowelzel.de

Back to comp.lang.php | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

composer: dependences and dependents SupaPlex <old@gamer.s> - 2022-06-22 11:08 +0200
  Re: composer: dependences and dependents Arno Welzel <usenet@arnowelzel.de> - 2022-06-22 14:33 +0200
    Re: composer: dependences and dependents SupaPlex <old@gamer.s> - 2022-06-22 15:12 +0200
      Re: composer: dependences and dependents Arno Welzel <usenet@arnowelzel.de> - 2022-06-22 16:07 +0200
        Re: composer: dependences and dependents SupaPlex <old@gamer.s> - 2022-06-22 16:35 +0200
          Re: composer: dependences and dependents Arno Welzel <usenet@arnowelzel.de> - 2022-06-22 16:37 +0200
            Re: composer: dependences and dependents SupaPlex <old@gamer.s> - 2022-06-22 17:13 +0200
              Re: composer: dependences and dependents Arno Welzel <usenet@arnowelzel.de> - 2022-06-24 13:31 +0200

csiph-web