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

2.0.0(1mo ago)317.3k↑197.5%6MITPHPPHP ^8.4CI passing

Since Aug 24Pushed 1mo 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 2w ago

READMEChangelog (8)Dependencies (56)Versions (19)Used By (0)

 [   ![Logo for laravel-url-ai-transformer](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, or apply custom AI transformations to web content, this package can do it.

Upgrading from v1? Read [UPGRADE.md](UPGRADE.md) before updating.

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 [Laravel AI](https://github.com/laravel/ai) agent. You specify the AI instructions to follow, and optionally the content that gets sent along.

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

55

—

FairBetter than 97% of packages

Maintenance91

Actively maintained with recent releases

Popularity35

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity63

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 ~35 days

Recently: every ~29 days

Total

10

Last Release

35d ago

Major Versions

0.0.1 → 1.0.02025-08-24

v1.x-dev → 2.0.02026-07-13

### 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

13.0k107.5M1.6k](/packages/spatie-laravel-permission)[spatie/laravel-pdf

Create PDFs in Laravel apps

1.0k5.4M50](/packages/spatie-laravel-pdf)[elegantly/laravel-translator

All on one translations management for Laravel

6339.5k](/packages/elegantly-laravel-translator)[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.

329575.9k35](/packages/codewithdennis-filament-select-tree)[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3915.5k](/packages/rawilk-profile-filament-plugin)

PHPackages © 2026

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