kokororin/twitter-birthday

Parse out birthday info of twitter users.

dev-master 2017-10-26 13:22 UTC

This package is auto-updated.

Last update: 2020-07-31 00:21:37 UTC


README

Build Status Packagist Minimum PHP Version

The Twitter API doesn't show user birthdays, but we can scrape the user profile page and parse out the birthday info.

Installation

$ composer require kokororin/twitter-birthday:dev-master

Usage

$birthday = new TwitterBirthday('pile_eric');
echo $birthday['month']; // 5
echo $birthday['day']; // 2

License

The MIT License (MIT).