Skip to content

Хранения и получения хэштегов из текста

Notifications You must be signed in to change notification settings

pavelzotikov/hashtags

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 

Repository files navigation

Установка

Рекомендуется использовать Composer для установки данной библиотеки.

composer require pavelzotikov/hashtags

Использование

... 
use \libhashtags\HashTags;
... 

class Example {

    private $entry_id; 

    public function saveEntry($text)
    {
        HashTags::getInstance()->save($this->entry_id, $text);   
    }
    
    public function removeEntry($text)
    {
        HashTags::getInstance()->remove($this->entry_id);   
    }
    
    public function getHashtagsByEntryId()
    {
    	return HashTags::getInstance()->getHashtagsByEntryId($this->entry_id);
    }
   
    public function getEntriesByHashtag($hashtag)
    {
    	return HashTags::getInstance()->getEntriesByHashtag($hashtag);
    }
    
}

About

Хранения и получения хэштегов из текста

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages