aws / aws/aws-php-sns-message-validator

The use Aws\Sns\Message::fromRawPostData() Broken For Laravel Octane

Open
#73 1 comment 0 reactions 0 assignees View on GitHub
bug needs-triage
Dominant language
PHP
Stars
218
Forks
59
Avg merge
8h 23m
Merged PRs (30d)
2

Description

### Describe the bug

In here,

![Image](https://github.com/user-attachments/assets/f07f2adc-9912-4284-94da-42bd4a4da8fc)

The php://input didn't works because of Laravel Octane don't support php://input
You should change your code to make it compatible

### Regression Issue

- [ ] Select this option if this issue appears to be a regression.

### Expected Behavior

The php://input need be change to support various packages

### Current Behavior

The php://input didn't works because of Laravel Octane don't support php://input

### Reproduction Steps

1. Use latest Laravel which is mine is Laravel 11
2. Create actions/services and put Aws\Sns\Message::fromRawPostData() there
3. Call it or send request message from AWS

### Possible Solution

_No response_

### Additional Information/Context

_No response_

### SDK version used

"^1.1"

### Environment details (OS name and version, etc.)

Ubuntu 24

Contributor guide

Open the contributing guide

Research direction

Start by reproducing Aws\Sns\Message::fromRawPostData() under Laravel 11 with Laravel Octane and an AWS SNS request. Inspect how the method currently reads php://input and compare that behavior with Octane's request handling. Done means SNS message validation works in the reported environment without breaking the existing package behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, laravel, php
Domain
api, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.