PHP/Composer: Difference between revisions
< PHP
Jump to navigation
Jump to search
| Line 3: | Line 3: | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
# for Docker container | # for Docker container | ||
RUN apt-get install unzip | RUN apt-get install -y --no-install-recommends unzip | ||
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer | RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Latest revision as of 04:05, 11 April 2025
Install Composer
# for Docker container
RUN apt-get install -y --no-install-recommends unzip
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
Add a package
# TODO