Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kokororin/twitter-birthday
Parse out birthday info of twitter users.
https://github.com/kokororin/twitter-birthday
twitter twitter-api twitter-birthday
Last synced: 3 months ago
JSON representation
Parse out birthday info of twitter users.
- Host: GitHub
- URL: https://github.com/kokororin/twitter-birthday
- Owner: kokororin
- License: mit
- Created: 2017-10-08T12:30:50.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-10-26T13:22:30.000Z (about 7 years ago)
- Last Synced: 2024-07-23T05:08:55.449Z (6 months ago)
- Topics: twitter, twitter-api, twitter-birthday
- Language: PHP
- Homepage:
- Size: 6.84 KB
- Stars: 8
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# twitter-birthday
[![Build Status](https://api.travis-ci.org/kokororin/twitter-birthday.svg)](https://travis-ci.org/kokororin/twitter-birthday)
[![Packagist](https://img.shields.io/packagist/dt/kokororin/twitter-birthday.svg?maxAge=2592000)](https://packagist.org/packages/kokororin/twitter-birthday)
[![Minimum PHP Version](https://img.shields.io/badge/php-%3E%3D%205.6-8892BF.svg)](https://php.net/)The Twitter API doesn't show user birthdays, but we can scrape the user profile page and parse out the birthday info.
## Installation
```bash
$ composer require kokororin/twitter-birthday:dev-master
```## Usage
```php
$birthday = new TwitterBirthday('pile_eric');
echo $birthday['month']; // 5
echo $birthday['day']; // 2
```## License
The MIT License (MIT).