using PHP with Composer did not find the required Class
问题 I've got a PHP code that selects a PDF file and converts it to a text file. I'm using an external library pdf-to-text with the composer. Following is the system display error: Fatal error: Uncaught Error: Class 'Pdf' not found in C:\xampp\htdocs\testcomposer\test2.php:6 Stack trace: #0 {main} thrown in C:\xampp\htdocs\testcomposer\test2.php on line 6 Project Structure : testcomposer app -Spatie -pdftotext -src -Exceptions -CouldNotExtractText.php -PdfNotFound.php -pdf.php -symfony vendor