🚀 Available for Freelance, Remote, and Full-Time Opportunities. Let's build something amazing together.

Laravel Packages
1 min read

Laravel URL AI Transformer: Extract Structured Data From URLs

Turn any public website or article URL into clean, schema-validated PHP DTOs using AI transformer pipelines in Laravel.

A

Author

2 weeks ago

Laravel URL AI Transformer: Extract Structured Data From URLs

Scraping unstructured websites and converting messy HTML into reliable application data is traditionally painful. The new laravel-url-ai-transformer package leverages headless rendering combined with LLM function calling to convert web pages into validated Eloquent models or Spatie Data Transfer Objects.

Installation and Basic Usage

composer require developer/laravel-url-ai-transformer
use App\Data\ProductDto;
use LaravelAi\UrlTransformer\Facades\UrlTransformer;

$product = UrlTransformer::from('https://store.example.com/item/42')
    ->schema(ProductDto::class)
    ->extract();

// Returns strongly-typed ProductDto instance
echo $product->title;
echo $product->price;

Automate product ingestion, content syndication, and competitor research with reliable, type-safe data outputs.