<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Tobias van Beek on Medium]]></title>
        <description><![CDATA[Stories by Tobias van Beek on Medium]]></description>
        <link>https://medium.com/@tvbeek?source=rss-2c76df4e2331------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*7LUSsE7cUU9tQCNG.jpeg</url>
            <title>Stories by Tobias van Beek on Medium</title>
            <link>https://medium.com/@tvbeek?source=rss-2c76df4e2331------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 00:05:30 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@tvbeek/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[PSR-8, the most forgotten PSR that isn’t about code, but more important then all other PSRs]]></title>
            <link>https://tvbeek.medium.com/psr-8-the-most-forgotten-psr-that-isnt-about-code-but-more-important-then-all-other-psrs-c3bd5dde3d61?source=rss-2c76df4e2331------2</link>
            <guid isPermaLink="false">https://medium.com/p/c3bd5dde3d61</guid>
            <category><![CDATA[psr-8]]></category>
            <category><![CDATA[elephpants]]></category>
            <category><![CDATA[community]]></category>
            <dc:creator><![CDATA[Tobias van Beek]]></dc:creator>
            <pubDate>Fri, 12 May 2023 07:52:48 GMT</pubDate>
            <atom:updated>2023-05-12T07:52:48.150Z</atom:updated>
            <content:encoded><![CDATA[<p>I will explain why I find the most forgotten PSR, PSR-8 is important for the community to keep in mind.</p><p>In the PHP community we can debate a lot about code and anything related. If it isn’t about a new language feature then it is about frameworks or the use of finale for a class. And that isn’t bad, with honest conversations a debate can be a good learning opportunity. Not only for the people debating but also for other who are watching (or reading) the debate.</p><p>Where things are starting to get worse is people wanted to “win” a debate. Or won’t (or can’t) understand that other people have another opinion and preference.</p><p>Sometimes it looks like they forget that the person that use <em>&lt;framework X that I don’t like&gt;</em> is another developer who creates the same kind of nice applications. Or that person who thinks different about <em>&lt;option Y where I have a strong opinion about&gt;</em> have other experience. And in the end they all are human beings not only a name with picture/avatar on a screen. And that is why I find that PSR-8 is important to keep in mind.</p><p>For who don’t know the <a href="https://www.php-fig.org/psr/">PSRs</a> it is a set of standards for PHP created and maintained by the <a href="https://www.php-fig.org/">PHP-FIG</a>. You likely use the <a href="https://www.php-fig.org/psr/psr-4">PSR-4</a> for autoloading and possible others for coding style or interfaces. The <a href="https://github.com/php-fig/fig-standards/tree/master/proposed/psr-8-hug">PSR-8</a> is a little bit strange because the title is Huggable Interface. And the code doesn’t look like very usable in a project. <strong>But that isn’t the point!</strong> We as human beings need to share more hugs, this can be literal (only with consent) or digital. With more human touch we can build each other up instead of tearing each other down. That will empower the community to do even more great things then it already does.</p><p>First, I’m not holy I also make mistakes. For me it is important that If I found out that I do something that hurts someone I have to say sorry. Saying sorry will not always help or fix the situation but showing your regret is a good try.</p><p>The most important thing is to remain friendly. If you feel you can’t be friendly on that moment maybe it is a sign to not react on that moment. If you are unfriendly it isn’t fair to expect a friendly reaction. And if the other is already unfriendly it can be a choice to not react, your reaction isn’t required.</p><p>Another thing I found out that can help is sending a postcard. If I get the feeling someone has a difficult time and can use some hugs, I try to send a postcard. I use the image below that contains 3 cuddly ElePHPants. Below the image I write A lot of PSR-8 implementations for you! and inside the card I write a personal text.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*zGQH1TsC996kSFD2.jpg" /></figure><p>3 cuddly ElePHPants together.</p><p>The most difficult part is to get the address where to send the postcard to. If the person has a company (or freelance) it is most of the time possible to get the address from a register. If not, I try to contact someone who could have the address. To be real, getting the address is sometimes the part where it failed. If I succeed in getting the address, I let <a href="https://www.hallmark.nl/">Hallmark</a> do the printing and sending. Depending on the location it can take 2 weeks before the card will arrive.</p><p>The reading above can give you the idea that the PHP community is horrible, it isn’t! Online you can see some bad examples and sharpness that doesn’t always looks good. But if you visit a local meetup or a conference you will see an open and welcome ambiance. And there are a lot of online slack/discord/telegram/… groups where you can learn a lot in a friendly way. Besides that, I have seen initiatives where someone in the community was in a tragic situation. Because of that he/she was in need of some money and people all around the world helped. That is also great community work.</p><p>The community can be like the ElePHPant it is big and looks huge but if you are friendly it can give you soft hugs.</p><p>So, think about the PSR-8, give someone a (virtual) hug and stay friendly!</p><p><em>Originally published at </em><a href="https://tjvb.nl/post/psr-8-the-most-forgotten-psr-that-isnt-about-code-but-more-important-then-all-other-psrs"><em>https://tjvb.nl</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c3bd5dde3d61" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building docker images with GitLab CI]]></title>
            <link>https://tvbeek.medium.com/building-docker-images-with-gitlab-ci-e60bed32e480?source=rss-2c76df4e2331------2</link>
            <guid isPermaLink="false">https://medium.com/p/e60bed32e480</guid>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[gitlab-ci]]></category>
            <category><![CDATA[gitlab]]></category>
            <category><![CDATA[gitlab-ci-docker]]></category>
            <dc:creator><![CDATA[Tobias van Beek]]></dc:creator>
            <pubDate>Wed, 20 Jan 2021 22:24:53 GMT</pubDate>
            <atom:updated>2021-01-20T22:24:53.444Z</atom:updated>
            <content:encoded><![CDATA[<p>Custom Docker images are very useful in a CI pipeline to test your application. With a custom image you can skip installation skips on every run because they are already done in the image. This saves time and result in faster feedback. The beauty is that the building of the docker images can also be done with GitLab CI. In this post I will explain how I do this.</p><p>First you need a Dockerfile like building a docker image on your local machine. In example from: <a href="https://gitlab.com/tjvb/phpimages/-/blob/php80/Dockerfile">https://gitlab.com/tjvb/phpimages/-/blob/php80/Dockerfile</a></p><pre>FROM php:8.0<br><br>RUN rm /etc/apt/preferences.d/no-debian-php &amp;&amp; \<br>    apt-get update -yqq &amp;&amp; \<br>    apt-get install locales openssh-client git zip libzip-dev zlib1g-dev sqlite3 \<br>	libjpeg-dev libjpeg62-turbo libjpeg62-turbo-dev libpng-dev wget libxml2-dev \<br>	php-soap rsync libmagickwand-dev imagemagick -yq --no-install-recommends &amp;&amp; \<br>    echo &quot;nl_NL UTF-8&quot; &gt; /etc/locale.gen &amp;&amp; \<br>    locale-gen nl_NL.UTF-8 &amp;&amp; \<br><br># install imagick<br>#    pecl install imagick &amp;&amp; \<br>#    docker-php-ext-enable imagick &amp;&amp; \<br><br>    docker-php-ext-configure gd --enable-gd --with-freetype --with-jpeg &amp;&amp; \<br><br>    docker-php-ext-install zip bcmath gd exif soap intl pdo_mysql &amp;&amp; \<br><br>    pecl install pcov &amp;&amp; \<br>	docker-php-ext-enable pcov &amp;&amp; \<br><br># cleanup<br>    docker-php-source delete &amp;&amp; \<br>    apt-get clean &amp;&amp; \<br>	rm -rf /var/lib/apt/lists/*<br><br># Install composer<br>COPY --from=composer /usr/bin/composer /usr/bin/composer</pre><p>To use the GitLab CI we need a .gitlab-ci.yml file that tells the CI what it need to do. This is my example from: <a href="https://gitlab.com/tjvb/phpimages/-/blob/php80/.gitlab-ci.yml">https://gitlab.com/tjvb/phpimages/-/blob/php80/.gitlab-ci.yml</a></p><pre>image: docker:stable<br><br>services:<br>  - docker:dind<br><br>before_script:<br>  - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY<br><br>build:<br>    stage: build<br>    script:<br>        - docker build --no-cache --tag $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME .<br>        - docker push $CI_REGISTRY_IMAGE</pre><p>This configuration file tells the runner to use the docker dind services. This is possible with the shared runners for GitLab.com. If you have your own runners you need to be sure to have it enabled. See the <a href="https://docs.gitlab.com/ee/ci/docker/using_docker_build.html#use-the-docker-executor-with-the-docker-image-docker-in-docker">GitLab Docs</a> for more information how to enable it and the risk that are involved with it.</p><p>The docker login is needed to be able to push the image to the GitLab docker registry. This is done with credentials that GitLab by default provide to the CI jobs. See the <a href="https://docs.gitlab.com/ee/ci/variables/predefined_variables.html">Predefined variables</a> list in the GitLab Docs.</p><p>The build command use the $CI_REGISTRY_IMAGE and $CI_COMMIT_REF_NAME GitLab CI variables. With that variables we tell that the tag is the repository path with the branch name. As example, my php80 branch on tjvb/phpimages result in the image tag tjvb/phpimages:php80. And because I use <a href="https://gitlab.com/">gitlab.com</a> to host the images I can pull the image from registry.gitlab.com/tjvb/phpimages:php80.</p><p>After building and storing the docker image it is time to use it. I use my PHP80 image in <a href="https://gitlab.com/tjvb/laravel-mail-catchall">Laravel Mail Catchall</a> and it is possible by using the full path for the image in your GitLab CI.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/572/0*ZUC4_oRMCXSMvKPk.png" /></figure><p>Using your own build docker image in your GitLab CI.</p><p>Start creating and using your own docker images with the GitLab CI and speed up your CI jobs.</p><p><em>Originally published at </em><a href="https://tjvb.nl/post/build-docker-images-with-gitlab-ci"><em>https://tjvb.nl</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e60bed32e480" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Laravel certification]]></title>
            <link>https://tvbeek.medium.com/laravel-certification-ca700c310f58?source=rss-2c76df4e2331------2</link>
            <guid isPermaLink="false">https://medium.com/p/ca700c310f58</guid>
            <category><![CDATA[laravel]]></category>
            <category><![CDATA[certification]]></category>
            <dc:creator><![CDATA[Tobias van Beek]]></dc:creator>
            <pubDate>Sun, 22 Nov 2020 19:28:18 GMT</pubDate>
            <atom:updated>2020-11-22T19:28:18.142Z</atom:updated>
            <content:encoded><![CDATA[<ul><li>It shouldn’t be too difficult if you use Laravel a lot</li><li>It can be useful for marketing</li><li>It can be useful to prove that you have knowledge from Laravel</li><li>If you didn’t have a lot of experience with Laravel it can take a lot of time to study.</li><li>I will not share any question or answer.</li></ul><p>I have got multiple questions about the Laravel Certification, because of that I decided to write something about it and answer the questions I get.</p><p>First of all, what is the Laravel Certification?</p><p>The Laravel certification is a certification that proves that you have enough knowledge about Laravel. The certification is created by a team that has a board of Advisors with people from the Laravel Community and of course Taylor Otwell.</p><p>To get certified you need to do an online examination. You need to do the certification in a room where you are alone and you need to have a camera with microphone to show that you are alone and that records everything you do. During the examination you can skip questions or review your answers before you finally submit all your answers. After the examination you (hopefully) get an email that you are certified with a printable certificate.</p><p>On my daily job I work a lot with Laravel so I had the confidence that I know the most of it. But I don’t like to try without preparation and there are parts that I don’t use. So, I did read the whole <a href="https://laravel.com/docs/">documentation</a> from Laravel. There are some topics in the documentation that I didn’t know very well. Mostly front end related what I normally let my colleagues handle. That gave me new knowledge. If you don’t have a lot of experience with Laravel it could be more difficult to prepare, my tip is: do some projects where you try to use a lot of technology from the framework.</p><p>All the questions are multiple choice, some are very clear and for some other questions you need to take a look on the difference between the answers.</p><p><strong>I will not share any questions. Both because I didn’t store them and don’t remember them. And secondly because that isn’t fair to share the questions I got. Also, it isn’t sure that if you want to do the examination you get the same questions.</strong></p><p>The questions I get a lot are: Why should you do it? What is the profit?</p><p>I think both questions are personal. For me the reasons where: I like to verify that I indeed know a big part of the framework, I suspect that I have enough knowledge but couldn’t verify it.</p><p>Another reason to do it is to show that you have the knowledge to work with Laravel. This can be useful if you are searching for a job or maybe want a raise.</p><p>For my day job at <a href="https://www.bluedragon.nl/">Blue Dragon</a> it is useful to show to our clients that we have knowledge about the framework we use. For some clients that can result on more trust that we are the correct company to work with.</p><p>Besides why you can also ask the question why not? That is a good question to ask before starting with anything.</p><p>A first reason to not do it is if the profit isn’t worth it. Another option is that you only use a small part of the options in Laravel and need to study a lot only to pass the exam. I think that it could be not useful for you to do it.</p><p>A third option can be the money, depending for your personal situation the price for the certification can be too expensive (currently €249 excluding VAT)</p><p>After finishing the test, you need to wait on an email with the results. You wish it is an email that looks like this :)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*L43njmYadVur_7KX.png" /></figure><p>Mail about Laravel certification</p><p>You also get a printable certificate in the mail, if wanted you can print it and give it a place in your office.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*PNiV63uFIfXCMt1X.jpeg" /></figure><p>Printable Laravel Certificate</p><p>The last part you get is a page where people can verify that you are certified. <a href="https://exam.laravelcert.com/is/tobias-van-beek/certified-since/2018-12-18">https://exam.laravelcert.com/is/tobias-van-beek/certified-since/2018-12-18</a></p><p>If you need information you can read the <a href="https://certification.laravel.com/prepare/">preparation </a>and <a href="http://support.laravelcert.com/support/solutions/folders/30000052876">F.A.Q.</a> or you can visit the <a href="https://certification.laravel.com/">Laravel Certification website</a> and contact them.</p><p><em>Originally published at </em><a href="https://tjvb.nl/post/answers-about-the-laravel-certification"><em>https://tjvb.nl</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ca700c310f58" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>