PHPnews.io

Overview for '100'



Implementing Dark Mode on adactio.com

Written by Bramus! / Original link on Oct. 9, 2019

Jeremy recently implemented “Dark Mode” on his site. Tanks to CSS Custom Properties the implementation is pretty straightforward (also see my writeup here).But of course, Jeremy added some extra details that make the difference:In Dark Mode images are toned down to make ‘m blend in better, as detai…


GitHub CI Workflow for PHP applications

Written by Bramus! / Original link on Oct. 9, 2019

Mattias Geniar has shared his GitHub Workflow to make GitHub do the CI work for PHP applications:on: pushname: Run phpunit testsuitejobs: phpunit: runs-on: ubuntu-latest container: image: mattiasgeniar/php73 steps: - uses: actions/checkout@v1 with: fetch-depth: 1 - …



Working with symlinked packages in PHP

Written by Bramus! / Original link on Oct. 4, 2019

When developing a PHP library/package, you most likely also have a project on disk that consumes said library. Take a WordPress plugin for example: to test it, you need a WordPress installation — both are linked but separate projects. To speed up development you can tell Composer to use the local …