Welcome Guest, Not a member yet? Register   Sign In
trying to use Composer
#1

(This post was last modified: 08-04-2018, 08:10 PM by richb201.)

I am trying to load up the AWS PHP sdk. The install instructs say to use composer, which I did. It then states:

Require the Composer autoloader in your scripts.


Code:
<?php
  require '/path/to/vendor/autoload.php';
?>

what is /path/to/vendor/ mean? what vendor? Are they talking about the vendor directory in my CI project? I see an autoload.php in my vendor directory in my CI project. But how do I path to this? from the root of the project which would be /xxx/vendor/autoload.php.  I don't know what xxx would be? My prject is call sub_crud so would it be /sub_crud/vendor/autoload.php ?

I copied /aws/s3 into third_party/

<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
 require 'vendor/autoload.php';

use third_party\Aws\S3\S3Client;


But looking in the S3 directory, I see all the files are .java. Does that mean I have the wrong version of the sdk? Should they be .php?

But when I start up the AWS\S3\S3Client can't be found. 
proof that an old dog can learn new tricks
Reply


Messages In This Thread
trying to use Composer - by richb201 - 08-04-2018, 07:01 PM
RE: trying to use Composer - by richb201 - 08-05-2018, 12:56 PM
RE: trying to use Composer - by ciadmin - 08-05-2018, 08:54 PM
RE: trying to use Composer - by richb201 - 08-05-2018, 11:31 PM
RE: trying to use Composer - by InsiteFX - 08-06-2018, 03:22 AM
RE: trying to use Composer - by richb201 - 08-06-2018, 03:18 PM
RE: trying to use Composer - by richb201 - 08-07-2018, 03:09 PM
RE: trying to use Composer - by InsiteFX - 08-07-2018, 03:25 PM
RE: trying to use Composer - by richb201 - 08-07-2018, 03:55 PM
RE: trying to use Composer - by richb201 - 08-07-2018, 04:35 PM



Theme © iAndrew 2016 - Forum software by © MyBB