AWS SDK - PHP

Please read the following to understand how to use the 4EVERLAND Bucket with AWS SDK - PHP. This guide outlines the integration of AWS SDK API for PHP with the 4EVERLAND Bucket to facilitate file uploads to the IPFS or Arweave storage networks.

Preparation

Development Examples

Set the environment variables

4everland-Access-Key:Bucket-Access Keys-API Key

4everland-Secret-Key:Bucket-Access Keys-API Secret

Linux/Mac OS x:

export 4EVERLAND_ACCESS_KEY_ID=[4everland-Access-Key]

export 4EVERLAND_SECRET_ACCESS_KEY=[4everland-Secret-Key]

Windows:

SET 4EVERLAND_ACCESS_KEY_ID=[4everland-Access-Key]

SET 4EVERLAND_SECRET_ACCESS_KEY=[4everland-Secret-Key]

Configure the parameters within the environment variables

Create a bucket

Region: Fill in the default value as "4everland"

Bucket: Specify the desired name for the Bucket during creation

Upload a file

Bucket: Your bucket name

Key: Provide the filename for the file you want to upload

SourceFile: Provide the path to the file you want to upload

Check the files in the bucket

Bucket: Your bucket name

Requesting IPFS CID and Arweave Hash

Bucket: Your bucket name

Key: Specify the path of the target object

If you have any questions, please join our Discord server, or send us an email at [email protected].

Last updated