maalls / tweet-entities
该软件包最新版本(v2.0.0)没有可用的许可证信息。
v2.0.0
2018-02-23 02:55 UTC
Requires
- maalls/og-tag-scraper: ^1.1
Requires (Dev)
- phpunit/phpunit: ^7
This package is not auto-updated.
Last update: 2024-09-29 05:41:52 UTC
README
composer require maalls/tweet-entities
示例
解析推文消息,并包含来自OG标签的URL信息(标题、描述、图像)。
$tweetEntities = new Maalls\TweetEntities(); $entities = $this->create("@someone this is a #tweet with url http://someurl.com");
仅解析推文。
$entities = $tweetEntities->parse("@someone this is a #tweet with url http://someurl.com", true);
测试
运行
./vendor/bin/phpunit tests/