kelvinzer0/curl-impersonate-php
PHP wrapper for curl-impersonate that makes HTTP requests mimic real browser TLS and HTTP/2 fingerprints, helping bypass bot detection and anti-scraping checks while keeping the familiar cURL-style API.
Adopt when:
Fetcher contract) so the dependency is swappable in a week.Look elsewhere when:
To executives: This is a small, MIT-licensed PHP wrapper that makes our existing HTTP client look like a real browser at the network level. It unlocks a class of data sources currently blocked by anti-bot vendors, at effectively zero licensing cost, in days rather than a procurement cycle. It is not a scraping platform: it does not solve CAPTCHAs or run JavaScript, it carries single-maintainer risk, and it requires us to own updates and a security review of the bundled binary. Recommendation: fund a two-week, single-integration pilot behind our own fetch interface, with a managed-API fallback pre-approved, and route the ToS/legal question in parallel. Success = one previously blocked source in production with a documented fallback; failure = we've cheaply ruled out a build path and have hard numbers for the vendor conversation.
To engineering: Thin wrapper over curl-impersonate. Wrap it, don't call it directly: pin the version, verify binary checksums in the build, isolate it in a queued job with timeouts and rate limits, log block rates, and keep a Guzzle/headless fallback behind the same interface. Assume fingerprint drift — budget a quarterly review.
How can I help you explore Laravel packages today?