v2.0: Modernize library to use FRSC NVIS portal by Olayiwola72 · Pull Request #7 · unicodeveloper/mvrd · GitHub
Skip to content

v2.0: Modernize library to use FRSC NVIS portal - #7

Open
Olayiwola72 wants to merge 1 commit into
unicodeveloper:masterfrom
Olayiwola72:modernize-v2
Open

Olayiwola72 wants to merge 1 commit into
unicodeveloper:masterfrom
Olayiwola72:modernize-v2

Conversation

@Olayiwola72

Copy link
Copy Markdown

Summary

The original data source (lsmvaapvs.org) is dead — the domain is parked for sale. This PR modernizes the library to use the official FRSC National Vehicle Identification System (NVIS) portal instead.

Changes

  • Data source: lsmvaapvs.org → nvis.frsc.gov.ng
  • PHP: 5.4+ → 8.1+
  • Dependencies: Guzzle 5-6 + Symfony DomCrawler → Guzzle 7 + native DOMDocument
  • CSRF handling: Automatic token extraction and form submission
  • Error handling: Custom InvalidPlateNumberException and VerificationFailedException
  • Tests: PHPUnit 10 test suite with 8 tests (all mocked, no real HTTP)

Verification

All 8 tests pass. The library successfully queries FRSC and returns vehicle data (Make + Color).

Migration

See updated README.md for breaking changes and new usage examples.

Fixes #5

The original data source (lsmvaapvs.org) is defunct - the domain is
parked for sale. This PR switches to the official FRSC NVIS portal
(nvis.frsc.gov.ng) and modernizes the entire stack.

Changes:
- Switch data source from lsmvaapvs.org to nvis.frsc.gov.ng
- Require PHP 8.1+ and Guzzle 7 (was PHP 5.4+, Guzzle 5-6)
- Remove Symfony DomCrawler, use native DOMDocument
- Add CSRF token handling for FRSC form submission
- Add InvalidPlateNumberException and VerificationFailedException
- Add PHPUnit 10 test suite with 8 tests (mocked, no real HTTP)
- Remove Travis CI config (use GitHub Actions or local testing)
- Update README with migration guide

Fixes unicodeveloper#5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Registration number is invalid

1 participant