BugDroid Posted March 28, 2022 Share Posted March 28, 2022 Hi I was installing this package: https://github.com/luisk262/SecopScrap I am supposed to start it using: php artisan dusk but I get the following error message: Class 'SebastianBergmann\Timer\Duration' not found can anyone help me on this? Quote Link to comment https://forums.phpfreaks.com/topic/314633-class-not-found/ Share on other sites More sharing options...
requinix Posted March 28, 2022 Share Posted March 28, 2022 Did you install it with Composer? Quote Link to comment https://forums.phpfreaks.com/topic/314633-class-not-found/#findComment-1594636 Share on other sites More sharing options...
BugDroid Posted March 28, 2022 Author Share Posted March 28, 2022 6 hours ago, requinix said: Did you install it with Composer? well, I did exactly as indicated on the website: 1 - git clone https://github.com/luisk262/SecopScrap 2- composer install 3- php artisan dusk:install (of course after installing php and composer) when I then do: php artisan dusk I get the error message above Quote Link to comment https://forums.phpfreaks.com/topic/314633-class-not-found/#findComment-1594644 Share on other sites More sharing options...
requinix Posted March 28, 2022 Share Posted March 28, 2022 Try regenerating your autoload files, just in case that didn't happen properly. That class looks like it comes from sebastianbergmann/php-timer. Make sure you have that directory in your vendor/. Quote Link to comment https://forums.phpfreaks.com/topic/314633-class-not-found/#findComment-1594645 Share on other sites More sharing options...
BugDroid Posted March 28, 2022 Author Share Posted March 28, 2022 it doesnt show up in the vendor directory even after installing it using: composer require phpunit/php-timer what am I doing wrong? Quote Link to comment https://forums.phpfreaks.com/topic/314633-class-not-found/#findComment-1594652 Share on other sites More sharing options...
requinix Posted March 28, 2022 Share Posted March 28, 2022 I gave you the wrong name. The Composer package is phpunit/php-timer, therefore the files would be in vendor/phpunit/php-timer. Do you have them? Quote Link to comment https://forums.phpfreaks.com/topic/314633-class-not-found/#findComment-1594653 Share on other sites More sharing options...
BugDroid Posted March 28, 2022 Author Share Posted March 28, 2022 yep, in php-timer I have: php-code-coverage php-invoker php-timer php-file-iterator php-text-template phpunit Quote Link to comment https://forums.phpfreaks.com/topic/314633-class-not-found/#findComment-1594657 Share on other sites More sharing options...
requinix Posted March 28, 2022 Share Posted March 28, 2022 phpunit/phpunuit already provides phpunit/php-timer. Don't install it again. composer remove it, delete your vendor directory, and composer install. Quote Link to comment https://forums.phpfreaks.com/topic/314633-class-not-found/#findComment-1594658 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.