I have created a js script using moment.js and I want to replicate it through a cron job. So, it will be in PHP.
So, I searched for moment.js equivalents and I found this https://github.com/fightbulc/moment.php
I have created a js script using moment.js and I want to replicate it through a cron job. So, it will be in PHP.
So, I searched for moment.js equivalents and I found this https://github.com/fightbulc/moment.php
Technically speaking, they are not the same. The GitHub repo says:
Parse, validate, manipulate, and display dates in PHP w/ i18n support. Inspired by moment.js
I read "inspired by" as similar in nature or close to. Otherwise, it would say something like "PHP port of Moment.js" or "PHP wrapper around Moment.js".
You should define more clearly, however, what exactly you mean by "are they the same". Do you mean the API parity? Or API compatibility? Or something else?