mercredi 24 février 2016

Autoloading 3rd party composer packages into Laravel 5 Application

I am trying to get my head around Composer. I want to integrate this package into my app: http://ift.tt/1arvHYQ

I have done the following so far:

composer require thiagoalessio/tesseract_ocr 
composer dump-autoload

and I have used the library within a Controller method as such:

$tesseract = new TesseractOCR($url);

But I'm getting the dreaded:

Class 'App\Http\Controllers\TesseractOCR' not found

How do I make sure that composer autoloads the package and that it is available throughout the apps, for usage within controllers?

Sorry, newbie in Composer here..



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire