2017 © Pedro Peláez
 

library twitter-time-ago

Displays the date in a "time ago" format like Twitter.

image

rymanalu/twitter-time-ago

Displays the date in a "time ago" format like Twitter.

  • Thursday, December 22, 2016
  • by rymanalu
  • Repository
  • 1 Watchers
  • 7 Stars
  • 48 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 2 % Grown

The README.md

Twitter Time Ago

Build Status, (*1)

This package provides a function to parse a datetime to human readable time difference like Twitter., (*2)

Installation

composer require rymanalu/twitter-time-ago

Usage

use Rymanalu\TwitterTimeAgo\TwitterTimeAgo;

$timeAgo = new TwitterTimeAgo; // or `new TwitterTimeAgo($timezone)`
echo $timeAgo->parse('2016-12-21 12:06:45');
// You can also just pass a date...
echo $timeAgo->parse('2016-12-12');

// Using static method...
echo TwitterTimeAgo::parse('2016-12-21 12:06:45');

// Using global helper...
echo twitter_time_ago($datetime);

The Versions

22/12 2016

1.0.x-dev

1.0.9999999.9999999-dev https://github.com/rymanalu/twitter-time-ago

Displays the date in a "time ago" format like Twitter.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Roni Yusuf Manalu

twitter time ago

21/12 2016

dev-master

9999999-dev https://github.com/rymanalu/twitter-time-ago

Displays the date in a "time ago" format like Twitter.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Roni Yusuf Manalu

twitter time ago

21/12 2016

v1.0.0

1.0.0.0 https://github.com/rymanalu/twitter-time-ago

Displays the date in a "time ago" format like Twitter.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Roni Yusuf Manalu

twitter time ago