spatie/laravel-url-ai-transformer
Laravel package to transform URLs and their web content with AI. Extract structured data (JSON-LD), generate summaries, images, or custom outputs via transformers and prompts. Runs via an Artisan command and stores results in the database for later retrieval.
*"This package lets us automate the extraction and transformation of web content using AI, cutting manual work by 80% while unlocking new features like:
ROI Hook: "For every 100 URLs processed, we save ~2 hours of manual work and gain actionable data for [specific use case: e.g., ‘personalized recommendations’ or ‘competitor analysis’]."
*"This is a Swiss Army knife for AI-powered URL processing in Laravel. Key perks:
LdJsonTransformer for structured data, ImageTransformer for visuals) + easy DIY for custom ones.Example Workflow:
// 1. Register URLs + transformer (e.g., in a service provider)
Transform::urls('https://example.com/blog/*')
->usingTransformers(new LdJsonTransformer);
// 2. Run via CLI (queued by default)
php artisan transform-urls
// 3. Use results anywhere
$structuredData = TransformationResult::forUrl('https://example.com/blog/post', 'ldJson');
Why not build this ourselves?
Tech Deep Dive (for Architects):
transformation_results table with metadata (success/failure timestamps, exceptions).How can I help you explore Laravel packages today?