Download the PHP package dhananjay-vaidya/s3-connector without Composer

On this page you can find all versions of the php package dhananjay-vaidya/s3-connector. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package s3-connector

S3 Connector

A lightweight Laravel package for easy integration with the S3 Connector API. This package provides a simple interface to interact with S3 storage through the S3 Connector API without the need for direct AWS SDK integration.

Latest Version on Packagist Total Downloads on Packagist License

Features

Installation

Via Composer (Recommended)

Manual Installation

If you prefer manual installation:

Configuration

1. Publish Configuration (Optional)

2. Add Environment Variables

Add these to your .env file:

3. Service Provider (Auto-registered)

The package automatically registers the service provider. If you need manual registration, add this to config/app.php:

Usage

Using Dependency Injection

Using the Facade

Using the Service Container

Available Methods

File Operations

Method Description Parameters
upload() Upload a file to S3 $file, $path, $metadata, $visibility
download() Download a file from S3 $key, $localPath
delete() Delete a file from S3 $key
list() List files in S3 bucket $prefix, $maxKeys
metadata() Get file metadata $key
exists() Check if file exists $key
copy() Copy a file in S3 $sourceKey, $destinationKey, $metadata
presignedUrl() Generate presigned URL $key, $expiresIn, $operation

System Operations

Method Description Parameters
health() Check API health None
configCheck() Check S3 configuration None
bucketInfo() Get bucket information None
cleanupTemp() Clean up temporary files None

Utility Methods

Method Description Parameters
testConnection() Test API connection None
getServiceInfo() Get service information None
validateApiKey() Validate API key format None

Examples

Upload with Metadata

Download and Save Locally

Generate Presigned URL

List Files with Pagination

Health Check

Response Format

All methods return a consistent response format:

Example Error Handling

Testing

Run Tests

Test Configuration

The package includes PHPUnit configuration and test suite setup. Tests use Orchestra Testbench for Laravel package testing.

Logging

The service automatically logs all API requests and responses when logging is enabled:

Log entries include:

Troubleshooting

Common Issues

  1. API Key Error

    Solution: Add your API key to the .env file

  2. Connection Timeout

    Solution: Increase timeout in configuration or check network connectivity

  3. Authentication Failed

    Solution: Verify your API key is correct and has proper permissions

  4. File Not Found

    Solution: Check the file key/path exists in your S3 bucket

Debug Mode

Enable detailed logging for debugging:

Security Considerations

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Development Setup

Support

For issues and questions:

  1. Check the documentation
  2. Review the error logs
  3. Verify your configuration settings
  4. Test the connection using the testConnection() method
  5. Create an issue on GitHub

License

This package is open-sourced software licensed under the MIT license.

Changelog

Please see CHANGELOG.md for more information on what has changed recently.

Credits


S3 Connector makes S3 storage integration simple, secure, and scalable for any Laravel project. ๐Ÿš€


All versions of s3-connector with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
laravel/framework Version ^8.0|^9.0|^10.0|^11.0
guzzlehttp/guzzle Version ^7.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package dhananjay-vaidya/s3-connector contains the following files

Loading the files please wait ...