PHP – Communicate with an API

PHP cURL In general, we use cURL to communicate with API endpoints. Using cURL might not be the most pretty approach, but it definitely does the job. See the example below: // Method: POST, PUT, GET etc // Data: array(“param” => “value”)...

Automate WordPress Installation with scripts

Create the project directory and get the most recent version of WordPress PROJECT=”somesitedomaincom” # you can replace all occurrences of “~/Sites” with ${BASEPATH} BASEPATH=”some/path/to/dir” # Setup site folder, replace all...

SOLID, DRY, KISS, YANGI

Quick preview – Develop PHP with standards. Fallow this rules to ensure your code is legit and well formed. Keep up with those principle and you will become a better programer. KISS – “Keep It Simple, Stupid” The simpler your code is, the...