Skip to content

Commit 0eb8ac3

Browse files
committed
Implement laravel-vin VIN decoder package
Transform skeleton package into a functional VIN lookup service that decodes US vehicle VINs via the NHTSA vPIC API. Adds VinLookupService, VehicleData value object, and VinLookupException. Includes caching, configuration via environment variables, and comprehensive test suite using PHPUnit. Removes template scaffolding, unused workflows, and Pest framework.
1 parent e008014 commit 0eb8ac3

40 files changed

Lines changed: 677 additions & 1152 deletions

.gitattributes

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,11 @@
11
# Path-based git attributes
22
# https://www.kernel.org/pub/software/scm/git/docs/gitattributes.html
33

4-
# Ignore all test and documentation with "export-ignore".
4+
# Exclude development-only files from the distributed package.
55
/.github export-ignore
6-
/.gitattributes export-ignore
7-
/.gitignore export-ignore
8-
/phpunit.xml.dist export-ignore
9-
/art export-ignore
10-
/docs export-ignore
116
/tests export-ignore
12-
/workbench export-ignore
137
/.editorconfig export-ignore
14-
/.php_cs.dist.php export-ignore
15-
/psalm.xml export-ignore
16-
/psalm.xml.dist export-ignore
17-
/testbench.yaml export-ignore
18-
/UPGRADING.md export-ignore
19-
/phpstan.neon.dist export-ignore
20-
/phpstan-baseline.neon export-ignore
8+
/.gitattributes export-ignore
9+
/.gitignore export-ignore
10+
/phpunit.xml export-ignore
11+
/pint.json export-ignore

.github/FUNDING.yml

Lines changed: 0 additions & 1 deletion
This file was deleted.

.github/ISSUE_TEMPLATE/bug.yml

Lines changed: 0 additions & 66 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 0 additions & 11 deletions
This file was deleted.

.github/dependabot.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

.github/workflows/dependabot-auto-merge.yml

Lines changed: 0 additions & 33 deletions
This file was deleted.

.github/workflows/fix-php-code-style-issues.yml

Lines changed: 0 additions & 28 deletions
This file was deleted.

.github/workflows/phpstan.yml

Lines changed: 0 additions & 28 deletions
This file was deleted.

.github/workflows/run-tests.yml

Lines changed: 0 additions & 67 deletions
This file was deleted.

.github/workflows/tests.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: tests
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
tests:
11+
runs-on: ubuntu-latest
12+
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
php: ['8.3', '8.4', '8.5']
17+
18+
name: PHP ${{ matrix.php }}
19+
20+
steps:
21+
- name: Checkout code
22+
uses: actions/checkout@v4
23+
24+
- name: Setup PHP
25+
uses: shivammathur/setup-php@v2
26+
with:
27+
php-version: ${{ matrix.php }}
28+
extensions: dom, curl, libxml, mbstring, zip
29+
coverage: none
30+
31+
- name: Install dependencies
32+
run: composer install --prefer-dist --no-interaction
33+
34+
- name: Check code style
35+
run: vendor/bin/pint --test
36+
37+
- name: Run tests
38+
run: vendor/bin/phpunit

0 commit comments

Comments
 (0)