mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00
composer: add Polish translation, update page (#10945)
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com> Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
This commit is contained in:
parent
84c1d172a6
commit
f9679b156f
2 changed files with 40 additions and 4 deletions
36
pages.pl/common/composer.md
Normal file
36
pages.pl/common/composer.md
Normal file
|
@ -0,0 +1,36 @@
|
|||
# composer
|
||||
|
||||
> Menadżer pakietów dla projektów PHP.
|
||||
> Więcej informacji: <https://getcomposer.org/>.
|
||||
|
||||
- Interaktywnie utwórz plik `composer.json`:
|
||||
|
||||
`composer init`
|
||||
|
||||
- Dodaj pakiet do zależności tego projektu, dodając wpis do `composer.json`:
|
||||
|
||||
`composer require {{użytkownik/pakiet}}`
|
||||
|
||||
- Zainstaluj wszystkie zależności z projektowego `composer.json` i utwórz `composer.lock`:
|
||||
|
||||
`composer install`
|
||||
|
||||
- Odinstaluj pakiet z tego projektu, usuwając go jako zależność z `composer.json` i `composer.lock`:
|
||||
|
||||
`composer remove {{użytkownik/pakiet}}`
|
||||
|
||||
- Zaktualizuj wszystkie pakiety z projektowego `composer.json` i zanotuj nową wersję w `composer.lock`:
|
||||
|
||||
`composer update`
|
||||
|
||||
- Zaktualizuj tylko `composer.lock` po ręcznej aktualizacji `composer.json`:
|
||||
|
||||
`composer update --lock`
|
||||
|
||||
- Dowiedz się więcej o powodach dlaczego zależność nie może zostać zainstalowana:
|
||||
|
||||
`composer why-not {{użytkownik/pakiet}}`
|
||||
|
||||
- Zaktualizuj narzędzie composer do najnowszej wersji:
|
||||
|
||||
`composer self-update`
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
`composer init`
|
||||
|
||||
- Add a package as a dependency for this project, adding it to `composer.json`:
|
||||
- Add a package as a dependency for this project, adding an entry to `composer.json`:
|
||||
|
||||
`composer require {{user/package}}`
|
||||
|
||||
|
@ -15,15 +15,15 @@
|
|||
|
||||
`composer install`
|
||||
|
||||
- Uninstall a package from this project, removing it as a dependency from `composer.json`:
|
||||
- Uninstall a package from this project, removing it as a dependency from `composer.json` and `composer.lock`:
|
||||
|
||||
`composer remove {{user/package}}`
|
||||
|
||||
- Update all the dependencies in this project's `composer.json` and note versions in `composer.lock` file:
|
||||
- Update all the dependencies in this project's `composer.json` and note new versions in `composer.lock` file:
|
||||
|
||||
`composer update`
|
||||
|
||||
- Update composer lock only after updating `composer.json` manually:
|
||||
- Update only `composer.lock` after updating `composer.json` manually:
|
||||
|
||||
`composer update --lock`
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue