<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>PHP on maateen</title><link>https://maateen.me/tags/php/</link><description>Recent content in PHP on maateen</description><generator>Hugo</generator><language>en</language><lastBuildDate>Wed, 01 Jul 2020 00:00:00 +0000</lastBuildDate><atom:link href="https://maateen.me/tags/php/index.xml" rel="self" type="application/rss+xml"/><item><title>PHP Composer: Speed Up Your Docker Build</title><link>https://maateen.me/posts/php-composer-speed-docker-build/</link><pubDate>Wed, 01 Jul 2020 00:00:00 +0000</pubDate><guid>https://maateen.me/posts/php-composer-speed-docker-build/</guid><description>&lt;p&gt;Once I was disappointed at dockerizing Nodejs applications. Runing &lt;code&gt;npm install&lt;/code&gt; was like leaving earth for mars. Thanks to Yarn for saving my ass. But nowadays PHP composer has taken that place. Running &lt;code&gt;composer install&lt;/code&gt; in Docker used to take a huge time and slow down CI/CD speed. But I&amp;rsquo;ve managed to speed up the build process with some ninja techniques.&lt;/p&gt;
&lt;h3 class="heading" id="rule-1"&gt;
 Rule 1
 &lt;a class="anchor" href="#rule-1"&gt;#&lt;/a&gt;
&lt;/h3&gt;
&lt;p&gt;Use prestissimo with composer. It&amp;rsquo;s a plugin to download packages in parallel. But I&amp;rsquo;d like to label it as Yarn of PHP. However, don&amp;rsquo;t forget to install prestissimo before running actual &lt;code&gt;composer install&lt;/code&gt;.&lt;/p&gt;</description></item></channel></rss>