“Fatal error: Class not found in..”, Composer package not recognized

前端 未结 1 1678
南笙
南笙 2021-01-03 10:44

I ran this call in Putty, it successfully installed the resource:

php composer.phar require --dev \"mikehaertl/php-pdftk:*\"

I

相关标签:
1条回答
  • 2021-01-03 11:19

    I got the same error when autoload was not called correctly. What solved for me is:

    require_once('vendor/autoload.php');
    

    I use this in plain php project,the php page where i use it it is the same folder as the mikehaertl folder. So i am sure that your issue is related to this

    0 讨论(0)
提交回复
热议问题