user773737
user773737

Reputation:

How to include a .phar and reference it

My directory looks like this

enter image description here

Then my code looks like this:

require "aws.*";

use Aws\DynamoDb\DynamoDbClient;

Is this the right way to do it?

It doesn't show me an error or anything so I don't know if it's working or not.

Upvotes: 0

Views: 138

Answers (1)

sectus
sectus

Reputation: 15464

You can

include 'aws.phar';

or

include 'phar://aws.phar/internal/file.php';

or read documentation about using phar

P.S. you cannot use wildcards in require or include.

P.P.S. use is not a reference. Read more about use.

Upvotes: 1

Related Questions