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>
pull/23/head
theBulaDev 2023-10-13 14:31:59 +02:00 committed by GitHub
parent 84c1d172a6
commit f9679b156f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 40 additions and 4 deletions

View 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`

View File

@ -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`