var_dump()
is several screens high … Continue reading Category Archives: php
Handling Incoming Webhooks in PHP
Joind.In Needs Help
Connect to RabbitMQ from PHP over AMQPS
Find Mongo Document By ID Using The PHP Library
Simple Access Control for CakePHP3
Change Form Input Type in CakePHP3
One thing is bothering me though: it guesses form input types from the database column types, which mostly works well but sometimes it picks something that doesn’t reflect the way that the user will store information in this field. It’s actually pretty easy to change the forms that get generated though, so here’s an example. Continue reading
PHP 7.0 (and 5.6) on Ubuntu
Handling Composer “lock file out of date” Warning
composer.json
where you specify your dependenciescomposer.lock
where composer itself records exactly which precise version of every library and every dependency of every library it picked, so all installs will be identical
Crucially, the composer.lock
also includes a hash of the current composer.json
when it updates, so you can always tell if you’ve added a requirement to the composer.json
file and forgotten to install it. Continue reading
PHP Web Services: 2nd Edition
I’m delighted to announce that the second edition of PHP Web Services is published! This isn’t an entirely new book but in my own biased opinion it is a much better job of this topic than I did the first time around :) Following from the feedback we got on the first book, this edition contains quite a lot more working examples (with code on github) as well as updates for new tools and expansion on newer technologies and practices.
Writing a second edition was nothing like writing a first edition, it’s more like editing with snippets of writing and rewriting thrown in. My heartiest thanks to my tech reviewers who sorted out all kinds of nonsense contradictions and generally asked hard questions during the process – you are all humans of the highest calibre :)