Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
02ef8d9
feat: Major package improvements and new features
me-shaon Aug 11, 2025
f22ba8e
Fix styling
me-shaon Aug 13, 2025
a87c9c8
fix: remove not implemented export route
me-shaon Sep 6, 2025
f361c3f
fix: route registration
me-shaon Sep 6, 2025
e941770
Move validation to form request
me-shaon Sep 6, 2025
53eab7e
Fix styling
me-shaon Sep 6, 2025
f8c5965
fix: move logic to service class from controller methods
me-shaon Sep 6, 2025
b1c2b1e
fix: make the request analytics cache ttl configurable
me-shaon Sep 6, 2025
6ece3bf
fix: database compatibility
me-shaon Sep 6, 2025
2bbfab6
fix: service classes refactored
me-shaon Sep 6, 2025
a089b1a
Fix styling
me-shaon Sep 6, 2025
b8a6616
chore: add husky pre-commit hook with pint and rector
me-shaon Sep 6, 2025
0ef4928
fix: remove redundant service class
me-shaon Sep 6, 2025
196b782
fix: add test for database configuration
me-shaon Sep 6, 2025
91abc99
Fix styling
me-shaon Sep 6, 2025
6250344
fix: use higher order collection methods
me-shaon Sep 6, 2025
1b68970
fix: maxmind service implementation
me-shaon Sep 6, 2025
bdc75a8
fix: rector apply fixes on CI
me-shaon Sep 6, 2025
54c397b
Apply Rector changes
me-shaon Sep 6, 2025
95aea7a
fix: remove redundant facade
me-shaon Sep 6, 2025
e792a20
Fix styling
me-shaon Sep 6, 2025
9194c7f
fix: use custom exceptions
me-shaon Sep 6, 2025
e55d17d
fix: improve the implementation
me-shaon Sep 7, 2025
4cc2510
fix: tests
me-shaon Sep 7, 2025
1174da8
fix: tests
me-shaon Sep 7, 2025
0e2f5c6
docs: updat readme
me-shaon Sep 7, 2025
6293892
Fix styling
me-shaon Sep 7, 2025
74ae897
Bump actions/checkout from 4 to 5
dependabot[bot] Aug 12, 2025
16731b7
Added support for laravel 12
theihasan Aug 30, 2025
1295bdb
fix: tests
me-shaon Sep 7, 2025
19bd0d0
fix: pint config
me-shaon Sep 7, 2025
25fd3ac
Merge branch 'main' into feature/package-improvements
me-shaon Sep 7, 2025
a066f92
fix: run CI test on laravel 11 and 12 as well
me-shaon Sep 7, 2025
a4c9977
fix: CI tests config
me-shaon Sep 7, 2025
e50b395
fix: package dependency
me-shaon Sep 7, 2025
0e910b0
fix: the dependency again
me-shaon Sep 7, 2025
203bd01
fix: disable laravel 11, 12 tests
me-shaon Sep 7, 2025
98993e1
fix: windows CI runner
me-shaon Sep 7, 2025
19e2167
fix: remove windows run
me-shaon Sep 7, 2025
63a973d
fix: run test for laravel 11
me-shaon Sep 7, 2025
a955ab4
fix: laravel 11 test skip for php 8.1
me-shaon Sep 7, 2025
6670f77
fix: CI for multiple laravel versions
me-shaon Sep 7, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 0 additions & 28 deletions .github/workflows/phpstan.yml

This file was deleted.

39 changes: 39 additions & 0 deletions .github/workflows/rector.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Fix code with Rector

on:
push:
paths:
- '**.php'
- 'rector.php'
- '.github/workflows/rector.yml'

permissions:
contents: write

jobs:
rector:
name: rector
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
coverage: none

- name: Install composer dependencies
uses: ramsey/composer-install@v3

- name: Run Rector
run: ./vendor/bin/rector process

- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v6
with:
commit_message: Apply Rector changes
17 changes: 14 additions & 3 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,25 @@ jobs:
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest, windows-latest]
os: [ubuntu-latest]
php: [8.3, 8.2, 8.1]
laravel: [10.*]
laravel: [10.*, 11.*, 12.*]
stability: [prefer-lowest, prefer-stable]
include:
- laravel: 10.*
testbench: 8.*
carbon: ^2.63
- laravel: 11.*
testbench: 9.*
carbon: ^2.63
- laravel: 12.*
testbench: 10.*
carbon: ^3.0
exclude:
- laravel: 11.*
php: 8.1
- laravel: 12.*
php: 8.1

name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}

Expand Down Expand Up @@ -52,4 +63,4 @@ jobs:
run: composer show -D

- name: Execute tests
run: vendor/bin/pest --ci
run: vendor/bin/phpunit --no-coverage
46 changes: 46 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

# Get staged PHP files (exclude deleted files)
STAGED_FILES=$(git diff --cached --name-only --diff-filter=AM | grep -E '\.php$' || true)

if [ -z "$STAGED_FILES" ]; then
echo "No staged PHP files to process. Skipping quality checks."
exit 0
fi

# Filter out files that don't exist (in case of race conditions)
EXISTING_FILES=""
for file in $STAGED_FILES; do
if [ -f "$file" ]; then
EXISTING_FILES="$EXISTING_FILES $file"
fi
done

# Trim leading whitespace
EXISTING_FILES=$(echo "$EXISTING_FILES" | sed 's/^ *//')

if [ -z "$EXISTING_FILES" ]; then
echo "No existing PHP files to process. Skipping quality checks."
exit 0
fi

echo "Running Pint on staged files..."
if ! ./vendor/bin/pint $EXISTING_FILES; then
echo "Pint failed"
exit 1
fi

# Add formatted files back to staging
git add $EXISTING_FILES

echo "Running Rector on staged files..."
if ! ./vendor/bin/rector process $EXISTING_FILES; then
echo "Rector failed"
exit 1
fi

# Add any files that Rector may have modified back to staging
git add $EXISTING_FILES

echo "All checks and fixes completed!"
Loading