piscibus/php-hashtag
最新稳定版本:1.1.1
Composer 安装命令:
composer require piscibus/php-hashtag
包简介
A simple php service for parsing hashtags from a string in any language.
README 文档
README
This package provides a simple way to extract hashtags from a string in any language.
Installation
You can install the package via composer:
composer require piscibus/php-hashtag
Support us
We invest a lot of resources into creating open source projects. This package is extracted from a bigger project. We are using it in production, and we will continue to maintain it. If you find it useful, please consider supporting us. All kinds of contributions are welcome.
Usage
use Piscibus\PhpHashtag\Extractor; $text = 'This is an #English #text with #hashtags'; $hashtags = Extractor::extract($text); // ['English', 'text', 'hashtags'] // Or you can use the helper function $hashtags = extract_hashtags($text); // ['English', 'text', 'hashtags']
License
This package is open-sourced software licensed under the MIT license.
统计信息
- 总下载量: 1.78k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 2
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-01-08