Download the PHP package mtrdesign/s3-logs-parser without Composer
On this page you can find all versions of the php package mtrdesign/s3-logs-parser. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mtrdesign/s3-logs-parser
More information about mtrdesign/s3-logs-parser
Files in mtrdesign/s3-logs-parser
Package s3-logs-parser
Short Description S3 Logs Parser
License MIT
Homepage https://mtr-design.com
Informations about the package s3-logs-parser
AWS S3 Logs Parser
AWS S3 Logs Parser is a simple PHP package to parse Amazon Simple Storage Service (Amazon S3) logs into a readable JSON format. The detailed usage report will show you how much times a file is downloaded and how much bytes are transferred.
- Getting Started
- Usage
- Contributing
- Requirements
- Installation steps
- License
Getting Started
- Sign up for AWS – Before you begin, you need to sign up for an AWS account and retrieve your AWS credentials.
- Create your own bucket – Now that you've signed up for Amazon S3, you're ready to create a bucket using the AWS Management Console.
- Enable server access logging – When you enable logging, Amazon S3 delivers access logs for a source bucket to a target bucket that you choose.
- Install the service – Using Composer is the recommended way to install it. The service is available via Packagist under the
mtrdesign/s3-logs-parser
package.
Usage
Create a service instance:
Optionally, you can set and update service configurations via setConfigs()
method:
Finally, you can get file's download
and bandwidth
statistics for a specific date in this way:
It is recommended to pass Carbon date string to this method.
This is how service response should look like:
Contributing
Ensure all the guides are followed and style/test checkers pass before pushing your code.
Requirements
Installation steps
- Build the required services and Docker container with
$ make docker-build
- SSH into the container with
$ make docker-bash
- Confirm code style checker passes with
$ make run-phpcs
- Confirm code quality checker passes with
$ make run-phpstan
- Confirm code texts checker passes with
$ make run-phpunit
License
AWS S3 Logs Parser is open source and available under the MIT License.
All versions of s3-logs-parser with dependencies
ext-json Version *
aws/aws-sdk-php Version ^3.100
nesbot/carbon Version ^2.19