AWS SDK for PHP
Learn how to pin files and folders to IPFS using the AWS SDK for PHP.
What is AWS SDK - PHP?
What is a .car file?
Pinning a Single File to IPFS
1. Click on the ‘Buckets’ option from the menu to open the Buckets dashboard.

2. Once at the Buckets dashboard, create a new bucket by clicking the ‘Create Bucket’ option in the top right corner.

3. Enter a bucket name and choose your storage network.

4. Create a new file with the following AWS SDK for PHP code:
Pinning a Folder to IPFS using the AWS SDK for PHP
1. Download the ipfs-car package with the following command:
2. Install the ipfs-car package:
3. Next, use ipfs-car to package a folder of files into a .car file.
Write a .car file to the current working directory
Write a .car file to a specific directory with a specified name
4. Create a new file with the following AWS SDK for PHP code:
Last updated