1275 1734 1022 1535 1357 1859 1584 1268 1950 1030 1556 1673 1100 1898 1493 1258 1464 1632 1882 1269 1667 1455 1965 1522 1939 1007 1574 1890 1875 1894 1054 1232 1128 1712 1514 1662 1151 1967 1324 1838 1533 1935 1942 1520 1445 1952 1152 1029 1860 1488 1258 1837 1295 1105 1624 1220 1846 1158 1713 1608 1190 1675 1300 1127 1504 1215 1518 1812 1497 1324 1057 1603 1184 1861 1228 1862 1859 1171 1428 1025 1072 1770 1481 1265 1756 1885 1324 1095 1888 1601 1040 1305 1317 1540 1724 1618 1446 1866 1002 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…