mathiaspalmqvist
e3a0aa54e9
Drop Laravel 11, add PHP 8.5 and merge CI workflows
...
dependabot-auto-merge / dependabot (pull_request_target) Skipped
CI / PHPStan (push) Canceled after 0s
CI / P8.3 - L12.* - prefer-lowest (push) Canceled after 0s
CI / P8.3 - L12.* - prefer-stable (push) Canceled after 0s
CI / P8.4 - L12.* - prefer-lowest (push) Canceled after 0s
CI / P8.4 - L12.* - prefer-stable (push) Canceled after 0s
CI / P8.5 - L12.* - prefer-lowest (push) Canceled after 0s
CI / P8.5 - L12.* - prefer-stable (push) Canceled after 0s
CI / P8.3 - L13.* - prefer-lowest (push) Canceled after 0s
CI / P8.3 - L13.* - prefer-stable (push) Canceled after 0s
CI / P8.4 - L13.* - prefer-lowest (push) Canceled after 0s
CI / P8.4 - L13.* - prefer-stable (push) Canceled after 0s
CI / P8.5 - L13.* - prefer-lowest (push) Canceled after 0s
CI / P8.5 - L13.* - prefer-stable (push) Canceled after 0s
- Require Laravel 12 or 13 and drop orchestra/testbench 9
- Add PHP 8.5 to the test matrix
- Merge the test and PHPStan workflows into a single CI workflow,
running PHPStan before the test matrix
- Add manual dispatch and cancel superseded runs
- Update requirements and badge in README
2026-11-12 10:23:16 +01:00
mathiaspalmqvist
a97baf5921
Accept text/plain events from the Plausible tracker
...
dependabot-auto-merge / dependabot (pull_request_target) Skipped
Fix PHP code style issues / php-code-styling (push) Successful in 6s
PHPStan / phpstan (push) Successful in 2m38s
run-tests / P8.3 - L11.* - prefer-lowest - ubuntu-latest (push) Failing after 33s
run-tests / P8.4 - L11.* - prefer-lowest - ubuntu-latest (push) Canceled after 0s
run-tests / P8.4 - L11.* - prefer-stable - ubuntu-latest (push) Canceled after 0s
run-tests / P8.3 - L12.* - prefer-lowest - ubuntu-latest (push) Canceled after 0s
run-tests / P8.3 - L12.* - prefer-stable - ubuntu-latest (push) Canceled after 0s
run-tests / P8.4 - L12.* - prefer-lowest - ubuntu-latest (push) Canceled after 0s
run-tests / P8.4 - L12.* - prefer-stable - ubuntu-latest (push) Canceled after 0s
run-tests / P8.3 - L13.* - prefer-lowest - ubuntu-latest (push) Canceled after 0s
run-tests / P8.3 - L13.* - prefer-stable - ubuntu-latest (push) Canceled after 0s
run-tests / P8.4 - L13.* - prefer-lowest - ubuntu-latest (push) Canceled after 0s
run-tests / P8.4 - L13.* - prefer-stable - ubuntu-latest (push) Canceled after 0s
run-tests / P8.3 - L11.* - prefer-stable - ubuntu-latest (push) Canceled after 1s
The Plausible tracker posts its JSON payload with Content-Type text/plain,
which Laravel does not parse, so every real event failed validation and
was redirected instead of being forwarded.
- Decode the raw body when the request is not JSON
- Respond with 400 instead of a redirect on invalid non-JSON requests
- Trim trailing slash from the configured domain when forwarding events
- Add a 5s timeout and respond with 502 when Plausible is unreachable
2026-11-12 09:18:50 +01:00
mathiaspalmqvist
8e7bff9e61
Add support for Laravel 13
...
dependabot-auto-merge / dependabot (pull_request_target) Skipped
run-tests / P8.3 - L11.* - prefer-lowest - ubuntu-latest (push) Failing after 33s
run-tests / P8.4 - L11.* - prefer-lowest - ubuntu-latest (push) Canceled after 0s
run-tests / P8.4 - L11.* - prefer-stable - ubuntu-latest (push) Canceled after 0s
run-tests / P8.3 - L12.* - prefer-lowest - ubuntu-latest (push) Canceled after 0s
run-tests / P8.3 - L12.* - prefer-stable - ubuntu-latest (push) Canceled after 0s
run-tests / P8.4 - L12.* - prefer-lowest - ubuntu-latest (push) Canceled after 0s
run-tests / P8.4 - L12.* - prefer-stable - ubuntu-latest (push) Canceled after 0s
run-tests / P8.3 - L13.* - prefer-lowest - ubuntu-latest (push) Canceled after 0s
run-tests / P8.3 - L13.* - prefer-stable - ubuntu-latest (push) Canceled after 0s
run-tests / P8.4 - L13.* - prefer-lowest - ubuntu-latest (push) Canceled after 0s
run-tests / P8.4 - L13.* - prefer-stable - ubuntu-latest (push) Canceled after 0s
run-tests / P8.3 - L11.* - prefer-stable - ubuntu-latest (push) Canceled after 1s
- Allow illuminate/contracts ^13.0
- Allow orchestra/testbench ^11.0 and Pest 4 (with plugins) for dev
- Add Laravel 13 to the CI test matrix
- Update requirements in README
2026-11-12 08:31:34 +01:00
mathiaspalmqvist
513ceb61a0
Support custom Plausible script path
...
dependabot-auto-merge / dependabot (pull_request_target) Skipped
Fix PHP code style issues / php-code-styling (push) Successful in 6s
PHPStan / phpstan (push) Successful in 2m32s
run-tests / P8.3 - L11.* - prefer-lowest - ubuntu-latest (push) Failing after 34s
run-tests / P8.4 - L11.* - prefer-lowest - ubuntu-latest (push) Canceled after 0s
run-tests / P8.4 - L11.* - prefer-stable - ubuntu-latest (push) Canceled after 0s
run-tests / P8.3 - L12.* - prefer-lowest - ubuntu-latest (push) Canceled after 0s
run-tests / P8.3 - L12.* - prefer-stable - ubuntu-latest (push) Canceled after 0s
run-tests / P8.4 - L12.* - prefer-lowest - ubuntu-latest (push) Canceled after 0s
run-tests / P8.4 - L12.* - prefer-stable - ubuntu-latest (push) Canceled after 0s
run-tests / P8.3 - L11.* - prefer-stable - ubuntu-latest (push) Canceled after 2s
Add a PLAUSIBLE_SCRIPT config option so site-specific scripts
(js/pa-XXXXX.js) and legacy script extensions can be proxied. The
script is still served locally from /js/script.js and the cache key
is derived from the script URL so changing the script takes effect
immediately.
Closes #14
2026-11-12 08:27:43 +01:00
mathiaspalmqvist
a60e4cbdcf
Rename package to mattitja/laravel-plausible-proxy
...
dependabot-auto-merge / dependabot (pull_request_target) Skipped
PHPStan / phpstan (push) Successful in 2m32s
run-tests / P8.3 - L11.* - prefer-lowest - ubuntu-latest (push) Failing after 34s
Fix PHP code style issues / php-code-styling (push) Successful in 6s
run-tests / P8.4 - L11.* - prefer-lowest - ubuntu-latest (push) Canceled after 0s
run-tests / P8.4 - L11.* - prefer-stable - ubuntu-latest (push) Canceled after 0s
run-tests / P8.3 - L12.* - prefer-lowest - ubuntu-latest (push) Canceled after 0s
run-tests / P8.3 - L12.* - prefer-stable - ubuntu-latest (push) Canceled after 0s
run-tests / P8.4 - L12.* - prefer-lowest - ubuntu-latest (push) Canceled after 0s
run-tests / P8.4 - L12.* - prefer-stable - ubuntu-latest (push) Canceled after 0s
run-tests / P8.3 - L11.* - prefer-stable - ubuntu-latest (push) Canceled after 2s
- Rename Composer package to mattitja/laravel-plausible-proxy and
namespace to Mattitja\LaravelPlausibleProxy
- Point homepage and links to git.mattitja.se
- Forward only User-Agent and visitor IP (X-Forwarded-For) to Plausible
instead of all request headers
- Forward all event fields and return Plausible's upstream response
- Accept props as array or JSON string
- Drop Laravel 10, upgrade Larastan to 3 and PHPStan plugins to 2
- Remove broken facade alias and dead autoload paths
- Clean up README, issue template and remove invalid FUNDING.yml
2026-11-12 08:24:45 +01:00
mathiaspalmqvist
cd00572702
WIP
2025-06-25 21:33:15 +02:00
mathiaspalmqvist
8c042b27cf
WIP
2025-06-25 21:31:35 +02:00
mathiaspalmqvist
4aa046d7a7
Merge branch 'cleanup' of https://github.com/MattitjaAB/laravel-plausible-proxy into cleanup
2025-06-25 21:30:22 +02:00
mathiaspalmqvist
859dcf99be
Cleanup
2025-06-25 21:30:16 +02:00
mathiaspalmqvist
15e9fcc186
Clean
2025-06-25 21:21:07 +02:00
mathiaspalmqvist
42404cc2cc
Cleanup
2025-06-25 21:10:11 +02:00
mathiaspalmqvist
0e25ead520
Added support for L12
2025-06-16 22:30:57 +02:00
mathiaspalmqvist
6df45258a6
Update README.md
2025-01-31 14:14:55 +01:00
mathiaspalmqvist
6a358d9d65
Removed site from config file
2025-01-31 14:04:07 +01:00
mathiaspalmqvist
3b6afc54f9
Merge branch 'main' of github.com:MattitjaAB/laravel-plausible-proxy
2025-01-31 13:10:42 +01:00
mathiaspalmqvist
a2c3ad76c0
Added support for 8.3
2025-01-31 13:10:39 +01:00
mathiaspalmqvist
42debe755e
Added support for php 8.3
2025-01-31 13:07:08 +01:00
mathiaspalmqvist
26454a9501
Refactor event forwarding and improve test coverage
...
- Updated event forwarding to include request headers
- Refactored validation to improve error handling
- Fixed issue with missing headers in HTTP request
- Improved test cases for event forwarding and caching
- Ensured proper handling of JSON payloads
- Fixed Plausible API URL configuration in tests
2025-01-31 12:36:07 +01:00
mathiaspalmqvist
c3033e1093
Ignore Mac DS_Store files
2025-01-31 12:25:47 +01:00
mathiaspalmqvist
96fc5e7e4e
Added requirements
2025-01-31 00:02:12 +01:00
mathiaspalmqvist
f7e5575cfa
first release
2025-01-30 23:44:18 +01:00
mathiaspalmqvist
647d62f787
Update README.md
2025-01-30 23:02:20 +01:00
mathiaspalmqvist
2ea193a63a
Update composer.json
2025-01-30 22:49:02 +01:00
mathiaspalmqvist
0a2b728cb2
Merge branch 'main' of https://github.com/MattitjaAB/laravel-plausible-proxy
2025-01-30 22:21:25 +01:00
mathiaspalmqvist
bdd1d3fea3
Update README.md
2025-01-30 22:21:00 +01:00
mathiaspalmqvist
0c04a30175
Init
2025-01-30 22:19:54 +01:00