maalls/tweet-entities

There is no license information available for the latest version (v2.0.0) of this package.

v2.0.0 2018-02-23 02:55 UTC

This package is not auto-updated.

Last update: 2024-04-28 03:19:51 UTC


README

composer require maalls/tweet-entities

Example

Parse tweet message and include URL informations (title, description, image) from OG Tags.

$tweetEntities = new Maalls\TweetEntities();
$entities = $this->create("@someone this is a #tweet with url http://someurl.com");

Only parse tweet.

$entities = $tweetEntities->parse("@someone this is a #tweet with url http://someurl.com", true);

Test

run:

./vendor/bin/phpunit tests/