Christian Vigh wrote a nice article on how to extract text and images using PHP (and Laravel as well)

extract text and images using php and laravel

This article explains how the PHP PDF To Text class can help you to extract text from almost any PDF file. It will be followed by a series of articles explaining various parts of the PDF file format that are of interest during the text extraction process.