All posts by Andreas Heigl

About Andreas Heigl

architectural daughtsman, brother, developer, father, husband, master of forestry sciences, scout

Scoping PHAR-files

PHAR-files are a great way to bundle code that can then be used like a binary. Therefore PHAR-files are often used for tools that can be included in a CI/CD setup. As they are self-contained archives they use their own autoloading mechanism and therefore don’t depend on your code. Which is great if you want to use them as build-tools because the tools dependencies don’t interfere with your project dependencies.

Imagine you’d want to use a build tool that requires PHP 7.2 with your legacy code that still needs to run with PHP 5.6… Most probably your composer require --dev awesome/build-tool would not work because of a dependency mismatch. Even though you might be on PHP 7.2 at the moment. Using the PHAR-file removes that dependency as all the required files are contained within the archive. And the PHARs autoloader takes care of getting the right files.

Continue reading Scoping PHAR-files

What makes a successful (PHP) usergroup?

Yesterday I met a friend that is also organizing a usergroup. And at one point he referred to his user group as “not that big”. And when I remember correctly that also meant “not that successful”. There are only about 20 people coming to each monthly meeting. And that’s by far not as many as there are in Amsterdam…

That made me think!

Continue reading What makes a successful (PHP) usergroup?