yooper/php-text-analysis

Unable to install | Neither Using Shared Hosting Nor Local Host

DevFranzBeta opened this issue · 3 comments

hello, thanks for the text analyzer but I'm unable to install it.
I'm using a shared hosting which accepts PHP 5.

I tried pasting the files in my server but it is not working.

For example, I've tried Email filter but it was not finding " ITokenTransformation " from :

class EmailFilter implements ITokenTransformation

the "use TextAnalysis\Interfaces\ITokenTransformation;" return an error too

Thanks,
Franz [onlinefranztech@gmail.com]

Franz,

Since you pasted the files on your server your application is likely not autoloading the classes from the package. You likely need to include the packages classes.

Thanks very much, I'm a PHP noob but I simply removed the namespace and I used this (code) to Test :

$filter = new EmailFilter();  
$word = "Thanks yooper here is my email : onlinefranztech@gmail.com";      
$output =  $filter->transform($word );
echo  $output;

Output :

Thanks yooper here is my email :

Problem needly solved! 👍

Thank you @mferrara for helping!