1136 1107 1582 1814 1896 1330 1505 1283 1834 1677 1307 1675 1035 1948 1052 1966 1007 1176 1145 1572 1697 1378 1365 1780 1949 1970 1318 1461 1636 1913 1125 1729 1120 1798 1342 1659 1815 1414 1514 1254 1255 1894 1303 1948 1757 1269 1834 1422 1801 1635 1999 1859 1268 1858 1275 1193 1689 1370 1018 1313 1228 1995 1001 1242 1335 1724 1600 1206 1273 1400 1984 1368 1051 1303 1482 1191 1567 1084 1420 1075 1882 1574 1150 1256 1546 1389 1826 1609 1133 1296 1942 1947 1332 1544 1876 1126 1376 1697 1018 PHPnews.io | The amazing payoff goes here

PHPnews.io

Overview for 'roballen'

2016 in pictures

Written by Rob Allen / Original link on Dec. 31, 2016

Another year has passed which gives me an excuse to to reflect on what's happened. As usual, I look at the photos that I've taken and frame my thoughts around them. January At the very end of January I visited Phoenix, Arizona to see Evan, Priscilla & other friends. I also attended FOSDEM again…


SSH keys in macOS Sierra

Written by Rob Allen / Original link on Dec. 27, 2016

Now that I've upgraded to macOS 10.12 Sierra, I noticed that SSH required me to enter my passphrase to keys every time I used them. This was a surprise as it's not how 10.11 El Capitan worked. This is how to fix it. Firstly, add your SSH key's passphrase to the keychain using ssh-add -K ~/.ssh/id_r…


Handling JSON data errors in Slim 3

Written by Rob Allen / Original link on Nov. 16, 2016

When you send JSON data into a Slim Framework application with a content-type of application/json, then Slim will decode it for you if you use getParsedBody(): $app->post("/", function ($request, $response, $args) { $input = $request->getParsedBody(); var_dump($input);exit; }); Using curl to…


Use curl to create a CouchDB admin user

Written by Rob Allen / Original link on Oct. 5, 2016

This too me longer to find than it should have done, so I'm writing it here for future me. When you install CouchDB, it is in a mode where anyone can do anything with the database including creating and deleting databases. This is called "Admin Party" mode which is a pretty cool name, but not what…


PHPNW 2016 API Tutorial

Written by Rob Allen / Original link on Sep. 28, 2016

If you're attending my Building Modern APIs in PHP tutorial at PHPNW 2016, please bring a laptop with the following installed: * PHP 7 with the sqlite extension installed * curl command line tool * https://akrabat.com/stuff/2016-09-30-PHPNW-Slim-API-Tutorial.zip extracted to a convenient directory…