Tags: andersahn/php-time-ago
Tags
Version 2.0.0 Changes for adding namespace. Added a Westsworld namespace to the source. Fixed the unit tests. Removed the timeAgoInWords function declaration. Updated gitignore to have "report" as well. Remember to either call the class as Westsworld\TimeAgo OR declare a use Westsworld; at the start of your code. Moved the phpunit.xml file into the root.
Added a new way to change the translations path. You can now define TIMEAGO_TRANSLATION_PATH before starting the component, to use a different translation path. Updated the readme to reflect the changes. Renamed _loadTranslations to loadTranslations. Renamed _translate to translate. Readme is now in markdown. Removed the old test file, since they are all in the PHPUnit tests anyways. Bumped version to 1.0.0
PreviousNext