ballen/linguist (packagist): Linguist is a PHP library for parsing strings and extracting prefixed words in content ideal for working with @mentions, #topics and custom tags.
Keywords: twitter|tags|topics|mentions|hashtag|php|string|string-matching|string-search|textextracting