Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Copycat Laravel Package

gidlov/copycat

Copycat is a Laravel package for crawling websites and consuming APIs. Define reusable "places" with methods that fetch and parse remote content, then call them like local models — a clean, ORM-style way to scrape HTML or JSON without repetitive HTTP and parsing code.

View on GitHub
Deep Wiki
Context7

A PHP Scraping Class

Frequently asked questions about Copycat
Does gidlov/copycat support Laravel 11 and PHP 8.2?
There is no first-class Laravel integration, so Laravel 11 support depends on whether Composer can resolve the package's old constraints on PHP 8.2. The last release was in 2017, so run a compatibility spike and test install, fetch, and extraction before committing. If constraints block installation, a fork or replacement may be required.
How do I install gidlov/copycat with Composer?
Install it with Composer as gidlov/copycat, then verify the required PHP extensions such as curl, dom, libxml, and mbstring are present. Check for conflicts with your existing Guzzle/cURL versions and pin the package version if the proof of concept succeeds. Because the package is old, test dependency resolution on your exact Laravel and PHP versions first.
Is Copycat a Laravel package or a standalone PHP scraper?
Despite the Laravel-oriented description, the evaluation treats Copycat as a standalone PHP scraping utility rather than a first-class Laravel package. It can act as a tactical HTML-fetch and extract adapter inside a job, command, or ingestion service. Keep it behind your own ScraperInterface or PageFetcher abstraction so domain code does not depend on its API.
Can Copycat scrape JavaScript-rendered websites?
It is best suited to simple server-rendered HTML, metadata extraction, and low-volume internal scraping. The evaluation says it likely lacks built-in JavaScript rendering, proxy rotation, CAPTCHA handling, and robust anti-bot evasion. For JavaScript-heavy or protected sites, use browser automation or a maintained crawler instead.
What security risks should I consider before using Copycat in production?
Key risks include SSRF exposure from untrusted URLs, redirect and timeout handling, resource exhaustion, stale cURL/DOM behavior, and malformed HTML or encoding edge cases. Add URL allowlists, strict timeouts, response-size limits, redirect controls, queue-based execution, rate limiting, and logging. Treat Copycat as a replaceable utility, not a strategic capability.
How do I integrate Copycat into a Laravel application?
Wrap Copycat behind an internal ScraperInterface or PageFetcher adapter and keep transport, extraction, and persistence separate. Use Laravel queues, cache, rate limiter, logging, and Horizon monitoring around the package rather than extending the package itself. Start with a time-boxed proof of concept on one low-risk target before broader use.
What are the best alternatives to gidlov/copycat?
A safer baseline is Laravel's HTTP client plus Symfony DomCrawler for HTML extraction, or an actively maintained crawler for larger needs. Run the Copycat proof of concept in parallel with a preferred replacement and define a replacement trigger up front. Triggers include PHP incompatibility, security findings, target breakage, or volume beyond simple scraping.
Is gidlov/copycat still maintained?
The last release was 2017-08-30, and the evaluation describes the package as effectively abandoned with a small community footprint. There is no recent security or compatibility maintenance, so assume PHP 8.x and dependency support must be verified. Plan for a fork, internal patching, and a replacement path if upstream remains inactive.
What license does gidlov/copycat use, and can I use it commercially?
Copycat uses LGPL-3.0, which requires legal review, especially if you modify, vendor, or distribute the library. Commercial use may be possible, but the obligations need review by your legal team. Do not treat this answer as legal advice.
How can I test Copycat scraping reliably?
Use contract tests against representative HTML fixtures rather than live sites, covering malformed HTML, character encoding, redirects, timeouts, and the expected output contract. Keep extraction tests separate from transport and mock HTTP where possible. Also verify the package on your target Laravel and PHP versions with the required extensions.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
novasa/laravel-language-center
opencage/geocode
adolfoholzer/parameters
livenetworks/ln-starter
shitoudev/permissionmanager
johannesclimacus/laravel-tui
hocvt/seotools
vitalybaev/sypexgeo
amphibee/themosis-ignition
gito-me/fast-excel
frankyso/laravel-ipaymu
geolize-studio/laravel-chile
boomerangui/chat
cgv/localized-resource
noith/settings
kda/laravel-package
kda/filament-dynamic-navigation
bypersoft/signbox
pairus/product-data
fayne/laravel-filament-cms-core