Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

biila-matti's avatar

Class 'Pheanstalk\Pheanstalk' not found

I'm trying to get Beanstalkd driven queue to work with Forge, but my log is filling with following messages:

Class 'Pheanstalk\Pheanstalk' not found {"exception":"[object] (Symfony\Component\Debug\Exception\FatalThrowableError(code: 0): Class 'Pheanstalk\Pheanstalk' not found at /home/forge/my-site.com/vendor/laravel/framework/src/Illuminate/Queue/Connectors/BeanstalkdConnector.php:33)

I'm using Laravel 5.5.

Here's a snippet from my composer.json file:

"require": {
    "php": ">=7.0.0",
    "doctrine/dbal": "^2.6",
    "fideloper/proxy": "~3.3",
    "guzzlehttp/guzzle": "^6.3",
    "laravel/framework": "5.5.*",
    "laravel/tinker": "~1.0",
    "maatwebsite/excel": "^2.1",
    "pda/pheanstalk": "~3.0",
    "rap2hpoutre/laravel-log-viewer": "^0.10.4",
    "twilio/sdk": "^5.14"
},

What seems to be the problem? After few hours of trying to figure it out I've hit a wall.

0 likes
2 replies
biila-matti's avatar
biila-matti
OP
Best Answer
Level 1

@poncianodiego Hi!

Actually, I did just recently. At the time when I asked this question here, I eventually gave up trying to find a solution.

The problem I found out, was that I had to manually update my composer through SSH because for some reason Forge's Deploy Script didn't install the Pheanstalk dependency.

1 like

Please or to participate in this conversation.