Documenting, Encrypting, and Unit Testing My First REST API
Too Long; Didn't Read
Borum Jot was the first project I tried seriously unit testing my code, encrypting the data, and documenting my back-end. I used PHPUnit, a unit-testing framework, and GuzzleHttp, a PHP HTTP client, to unit test my application. I encrypted my data using defuse/php-encryption. This library, claiming to be secure, did the encryption and decryption for me. To encrypt and decrypt, I needed my own key, which I generated by running composer.
Share Your Thoughts