Error to load class

Hello friends

I created a code in my local machine that require a class, like this:

require "libs/amazon/vendor/autoload.php";

use Aws\S3\S3Client;

class MinhaClasse{



This code worked very good in my local machine but when I git to server I have a error, I dont know what happened. Somebody knows?

This is the error:

PHP Fatal Error – yii\base\ErrorException

Class ‘Aws\Handler\GuzzleV6\GuzzleHandler’ not found

  1. in /var/lib/openshift/548456d699fc772942000168/app-root/runtime/repo/php/admapps/web/libs/amazon/vendor/aws/aws-sdk-php/src/functions.php at line 274

265266267268269270271272273274275276277278279280281282283 *

  • @return callable


function default_http_handler()


$version = (string) ClientInterface::VERSION;

if ($version[0] === '5') {

    return new \Aws\Handler\GuzzleV5\GuzzleHandler();

} elseif ($version[0] === '6') {

    return new \Aws\Handler\GuzzleV6\GuzzleHandler();

} else {

    throw new \RuntimeException('Unknown Guzzle version: ' . $version);




  • Serialize a request for a command but do not send it.

  • Returns a promise that is fulfilled with the serialized request.
  1. yii\base\ErrorHandler::handleFatalError()