Read More
Read More
Menu Close

    Laravel eCommerce Amazon S3 Extension

    Laravel eCommerce Amazon S3 Extension provides users to store the static files and media content to be upload on the Amazon S3 bucket and get them retrieved directly from the S3 bucket. We’ve also included the functionality to set an expiration header.

    Amazon S3 (Simple Storage Service) is a cloud storage service offered by AWS (Amazon Web Services). Using the module, the store admin can upload downloadable products, media files, product content, images of all Laravel product types from their local disk to the Amazon S3 server.

    Note:

    • A customer must have an Amazon AWS account to access the Amazon S3 services. From this link, users would be able to register here.
    • To understand how to get started with Amazon S3, just click here.

    Features

    • Support all Bagisto product types.
    • Additionally, the Amazon Simple Storage Service (Amazon S3) bucket stores and retrieves all media files for all types of products (such as product images, media in the product description, short description, editing images, and so on).
    • Moreover, flexible settings to configure the module settings.
    • Store and retrieve the files from Amazon S3 Server.
    • Customers can download the files from the Amazon Server irrespective of time and place.
    • Now serving of cache images will be from Amazon S3 Server.
    • One can save Static files on the Amazon S3 server.
    • Set expire header for cache files.

    Installation

    Unzip the respective extension zip and then merge “packages” folders into the project root directory.

    B2B stripe

    Go to the config/app.php file and add the following line under ‘providers’

    Start your headless eCommerce
    now.
    Read More
    Webkul\AWSIntegration\Providers\AWSIntegrationServiceProvider::class

    Go to the composer.json file and add the following line under ‘psr-4’

    "Webkul\\AWSIntegration\\":"packages/Webkul/AWSIntegration"

    To complete the setup, run the commands mentioned below:

    composer dump-autoload
    composer require league/flysystem-aws-s3-v3:~1.0.0
    php artisan config:cache
    php artisan route:cache

    That’s it, now just execute the project on your specified domain.

    Setting Up Amazon S3 Server Credentials.

    (i) To start with, create a new AWS account by using Sign-up. 

    aws-acc

    (ii) And then log in to your AWS account by Sign-in.

    aws-acc-1

    (iii) After your account has been successfully createdselect the S3 among the available AWS services or you can search for an S3 service in the search box.

    aws-acc-2

    (iv) This will take you to a page where you can view your created buckets or create a new bucket. To create a new bucket, choose to create a bucket from the drop-down menu.

    aws-acc-3

    (v) After pressing the Create bucket button, you’ll be taken to the Create bucket tab, where you’ll need to fill in all of the necessary information to create a new bucket. Then, at the bottom, press Create bucket.

    Note:- Make sure to uncheck the “Block all public access”.

    public-access

    (vi) Here you can upload the files and create a folder to save the data. Also, you can view the saved data.

    amazon3

    (vii) Click IAM under Security, Identity & Compliance to create an access key ID and a secret access key.

    amaszon-s3-laravel2

    (viii) Click Users in the IAM dashboard to view and delete existing users, as well as add a new one.

    laravel-amason-S35-
    • After that, you’ll be taken to a new page with Add, and Delete users options.
    amazon-s3-6
    • Enter your IAM Username.
    amazon-s3-7
    • Click on the next and then attach existing policies directly.
    • After that, search for Amazon S3 Full Access, check the box.
    amazon-s3-8
    • Press two times next, and then click Create User.
    amazon-s3-9
    • You’ll see a success message page with your security credentials for the newly developed user.
    amazon-s3-10

    Note:

    • Please be ensure that you have Amazon S3 Full Access to allow Read and Write access to an object in an S3 bucket and additional permissions for console access. 

    Module Configuration.

    The admin can customize the module settings after installing the extension by going to Configure > AWS Integration as seen below:

    amazon-s3-admin-1

    Open the Bagisto Admin Panel and fill in the following information.

    • Allow files to save on Amazon: If you wish to save the file on the Amazon server, Click the icon; otherwise, leave it blank.
    • Access Key ID: Enter the access key that you’ll get after creating an IAM User.
    • Secret Key: Enter the secret key that you will receive after the creation of the IAM User.
    • Bucket Name: Insert the name of the Amazon bucket you have created in the S3 account.
    • Region: Select the bucket’s region which you specified when you created the bucket in your S3 account.
    • Bucket URL:  Bucket can also be accessed by using this URL.
    amazon-s3-admin-2

    Go to Dashboard after clicking the save button in the right top corner.

    amazon-s3-admin-3

    Click the AWS integration button in the left bottom corner. Now, click the Synchronize button and wait a few seconds to see whether the synchronization was successful.

    amazon-s3-admin-4
    amazon-s3-admin-5

    Finally, after successful synchronization, you will receive the following message.

    amazon-s3-admin-6

    The content is now served from the S3 bucket, as you can see.

    amazon-s3-admin-7

    Support

    So, that was much about the User Guide of Laravel eCommerce Amazon S3 Extension for any queries or doubts reach out to us at [email protected]. You can also raise a ticket at our HelpDesk System.

    Please explore our Laravel Development Services and Quality Bagisto Extensions.

    Current Product Version - 1

    Supported Framework Version - Bagisto 1.0.0

    . . .
    Discuss on Helpdesk

    Leave a Comment

    Your email address will not be published. Required fields are marked*


    Be the first to comment.

    Back to Top

    Table of Content