Category: PHP

Creating REST web application and client with PHP

REST web application

Nowadays, web services are the ideal way to exchange data between a web application and another web or mobile application. REST, which stands for Representational State Transfer, is a good architectural choice for communication over the internet. It makes sharing data between different devices and apps easier and simpler compared to other methods like SOAP, […]


Time ago PHP function

time ago php function

Like most social networks today, instead of displaying the exact date for a post they use a time ago time format. I find it very practical. That helps the user get the information with no need to deal with different date and time formats. You can add the following 2 functions to your php class […]