I would like to use a library called term-extractor (https://packagist.org/packages/fivefilters/term-extractor) in Laravel 5. I tried to install it via composer with
composer require "fivefilters/term-extractor:*"
I think, this step was sucessfull as i found the following directory: vendor/fivefilters/term-extractor. As well a line was added to composer.json:
"require": {
"laravel/framework": "5.0.*",
"fivefilters/term-extractor": "*"
},
But from this point I don't know how to proceed.
Is the package really available to my app? How may I use term extractor? If I try with
$extractor = new TermExtractor();
it doesn't work.
Thanks!
--
I follwed the advises given by Alan Storm - many thanks!
Running composer dumpautoload
composer dumpautoload Generating autoload files
seems to be fine.
Running my code
Whoops, looks like something went wrong. 1/1 FatalErrorException in NewsletterController.php line 81: Class 'Fivefilters\TermExtractor' not found in NewsletterController.php line 81 at HandleExceptions->fatalExceptionFromError(array('type' => '1', 'message' => 'Class 'Fivefilters\TermExtractor' not found', 'file' => '/Applications/MAMP/htdocs/newsletterfeed/app/Http/Controllers/NewsletterController.php', 'line' => '81')) in HandleExceptions.php line 116 at HandleExceptions->handleShutdown()
where we finde in line 81
$extractor = new TermExtractor();
Any suggestions what's going wrong? Many Thanks!