Download the PHP package jpcaparas/laravel-firecrawl without Composer
On this page you can find all versions of the php package jpcaparas/laravel-firecrawl. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jpcaparas/laravel-firecrawl
More information about jpcaparas/laravel-firecrawl
Files in jpcaparas/laravel-firecrawl
Package laravel-firecrawl
Short Description Interface with the Firecrawl API using Laravel
License MIT
Homepage https://github.com/jpcaparas/laravel-firecrawl
Informations about the package laravel-firecrawl
Laravel Firecrawl API Client
A Laravel package for seamlessly integrating with the Firecrawl API, allowing you to turn entire websites into LLM-ready markdown and extract structured data using AI.
Features
- Extract - Get structured data from web pages with AI
- Crawl - Scrape all URLs from a website and get their content in LLM-ready format
- Map - Input a website and get all its URLs extremely fast
- Scrape - Get content from a single URL in various formats
- Search - Perform web searches with the Firecrawl API
Installation
You can install the package via composer:
You can publish the config file with:
Configuration
Add your Firecrawl API key to your .env
file:
You can obtain an API key by signing up at Firecrawl.
Usage
Using the Facade
Using Dependency Injection
Available Services
Extract Service
Crawl Service
Map Service
Scrape Service
Search Service
Command Line
You can view information about the Firecrawl API client using the included command:
This command displays:
- API key status
- Available services
- Usage examples
Extract Commands
Extract structured data from web pages with AI:
Options:
--urls
- Array of URLs to extract data from (can be specified multiple times)--urls-from-file
- Path to a file containing URLs, one per line--prompt
- The prompt to guide the extraction--prompt-from-file
- Path to a file containing the prompt text--schema
- JSON schema for structuring the extracted data (inline JSON)--schema-from-file
- Path to a JSON file containing the schema--config-file
- Path to a JSON configuration file containing all extract parameters-
--web-search
- Enable web search capability --output
- Save results to specified file path
Check the status of an extraction job:
Options:
--wait
- Wait for the extraction to complete--poll-interval
- Seconds to wait between status checks when using --wait--output
- Save results to specified file path
Testing
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-firecrawl with dependencies
spatie/laravel-package-tools Version ^1.16
illuminate/contracts Version ^10.0||^11.0||^12.0