PHPackages                             spatie/laravel-url-ai-transformer - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. spatie/laravel-url-ai-transformer

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

spatie/laravel-url-ai-transformer
=================================

Transform URLs and their content using AI

1.3.1(1mo ago)267.2k↑215.2%6MITPHPPHP ^8.4CI passing

Since Aug 24Pushed 1w agoCompare

[ Source](https://github.com/spatie/laravel-url-ai-transformer)[ Packagist](https://packagist.org/packages/spatie/laravel-url-ai-transformer)[ Docs](https://github.com/spatie/laravel-url-ai-transformer)[ GitHub Sponsors](https://github.com/Spatie)[ RSS](/packages/spatie-laravel-url-ai-transformer/feed)WikiDiscussions main Synced yesterday

READMEChangelog (7)Dependencies (42)Versions (16)Used By (0)

 [   ![Logo for laravel-permission](https://camo.githubusercontent.com/e52da81924911eb4fcefa84e5a2f78495c205b55413b3436c63f67acfc41cb42/68747470733a2f2f7370617469652e62652f7061636b616765732f6865616465722f6c61726176656c2d75726c2d61692d7472616e73666f726d65722f68746d6c2f6c696768742e776562703f31373536343532363839)  ](https://spatie.be/open-source?utm_source=github&utm_medium=banner&utm_campaign=laravel-url-ai-transformer)Transform URLs and their content using AI
=========================================

[](#transform-urls-and-their-content-using-ai)

[![Latest Version on Packagist](https://camo.githubusercontent.com/568ee11de2d28790c152c0724b05a5c1a57fb72f21e11675bbe5507bdcce5712/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7370617469652f6c61726176656c2d75726c2d61692d7472616e73666f726d65722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/spatie/laravel-url-ai-transformer)[![GitHub Tests Action Status](https://github.com/spatie/laravel-url-ai-transformer/actions/workflows/run-tests.yml/badge.svg)](https://github.com/spatie/laravel-url-ai-transformer/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://github.com/spatie/laravel-url-ai-transformer/actions/workflows/fix-php-code-style-issues.yml/badge.svg)](https://github.com/spatie/laravel-url-ai-transformer/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/78d1aba8ce772eeee27ac7539ab22992a471d7f9e286d2defd54a236587ee276/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7370617469652f6c61726176656c2d75726c2d61692d7472616e73666f726d65722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/spatie/laravel-url-ai-transformer)

Using this package, you can transform URLs and their content using AI. Whether you want to extract structured data, generate summaries, create image, or apply custom AI transformations to web content - this package can do it.

The result of the transformation is stored in a database. You can retrieve the transformed content at any time.

Here's how you can transform a blog post into structured [ld+json data](https://json-ld.org) using AI:

```
use Spatie\LaravelUrlAiTransformer\Support\Transform;
use Spatie\LaravelUrlAiTransformer\Transformers\LdJsonTransformer;

Transform::urls('https://example.com/blog/my-post')
    ->usingTransformers(new LdJsonTransformer);
```

A transformer is a class where you can configure the AI transformation, and specify the prompt to use.

The configured transformation can be run using the `transform-urls` command.

```
php artisan transform-urls
```

After the transformation is complete, you can retrieve the transformed content using the `TransformationResult` model.

```
use Spatie\LaravelUrlAiTransformer\Models\TransformationResult;

$structuredData = TransformationResult::forUrl('https://example.com/blog/my-post','ldJson'
);
```

Support us
----------

[](#support-us)

[![](https://camo.githubusercontent.com/27489789d42dd18365d316350876527b42245419485ab6f5c4cf9aef57ae1045/68747470733a2f2f6769746875622d6164732e73332e65752d63656e7472616c2d312e616d617a6f6e6177732e636f6d2f6c61726176656c2d75726c2d61692d7472616e73666f726d65722e6a70673f743d31)](https://spatie.be/github-ad-click/laravel-url-ai-transformer)

We invest a lot of resources into creating [best in class open source packages](https://spatie.be/open-source). You can support us by [buying one of our paid products](https://spatie.be/open-source/support-us).

We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on [our contact page](https://spatie.be/about-us). We publish all received postcards on [our virtual postcard wall](https://spatie.be/open-source/postcards).

Documentation
-------------

[](#documentation)

All documentation is available [on our documentation site](https://spatie.be/docs/laravel-url-ai-transformer).

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Freek Van der Herten](https://github.com/freekmurze)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

56

—

FairBetter than 97% of packages

Maintenance96

Actively maintained with recent releases

Popularity35

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 72.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~40 days

Recently: every ~63 days

Total

8

Last Release

30d ago

Major Versions

0.0.1 → 1.0.02025-08-24

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7535935?v=4)[Spatie](/maintainers/spatie)[@spatie](https://github.com/spatie)

---

Top Contributors

[![freekmurze](https://avatars.githubusercontent.com/u/483853?v=4)](https://github.com/freekmurze "freekmurze (101 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (18 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (14 commits)")[![AlexVanderbist](https://avatars.githubusercontent.com/u/6287961?v=4)](https://github.com/AlexVanderbist "AlexVanderbist (2 commits)")[![Ayoub-Mabrouk](https://avatars.githubusercontent.com/u/77799760?v=4)](https://github.com/Ayoub-Mabrouk "Ayoub-Mabrouk (1 commits)")[![jimirobaer](https://avatars.githubusercontent.com/u/8984769?v=4)](https://github.com/jimirobaer "jimirobaer (1 commits)")[![Nelwhix](https://avatars.githubusercontent.com/u/58360242?v=4)](https://github.com/Nelwhix "Nelwhix (1 commits)")[![WatheqAlshowaiter](https://avatars.githubusercontent.com/u/24838274?v=4)](https://github.com/WatheqAlshowaiter "WatheqAlshowaiter (1 commits)")

---

Tags

spatielaravellaravel-url-ai-transformer

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/spatie-laravel-url-ai-transformer/health.svg)

```
[![Health](https://phpackages.com/badges/spatie-laravel-url-ai-transformer/health.svg)](https://phpackages.com/packages/spatie-laravel-url-ai-transformer)
```

###  Alternatives

[spatie/laravel-permission

Permission handling for Laravel 12 and up

12.9k102.4M1.4k](/packages/spatie-laravel-permission)[spatie/laravel-pdf

Create PDFs in Laravel apps

1.0k4.8M47](/packages/spatie-laravel-pdf)[spatie/laravel-data

Create unified resources and data transfer objects

1.8k35.2M968](/packages/spatie-laravel-data)[codewithdennis/filament-select-tree

The multi-level select field enables you to make single selections from a predefined list of options that are organized into multiple levels or depths.

329530.5k29](/packages/codewithdennis-filament-select-tree)[spatie/laravel-passkeys

Use passkeys in your Laravel app

471890.7k39](/packages/spatie-laravel-passkeys)[worksome/exchange

Check Exchange Rates for any currency in Laravel.

124603.0k](/packages/worksome-exchange)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
