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.0(1mo ago)265.3k↑37.5%4MITPHPPHP ^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 1mo ago

READMEChangelog (6)Dependencies (28)Versions (14)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://camo.githubusercontent.com/5024de7e7052ba9b8f2516df9c4e6f7546931a1ed8de26b742f99085a84cff01/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f7370617469652f6c61726176656c2d75726c2d61692d7472616e73666f726d65722f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/spatie/laravel-url-ai-transformer/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/1fea88babcef614c92c386f6910c6b609f8c8e1d8d43746f6235b6003f92c219/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f7370617469652f6c61726176656c2d75726c2d61692d7472616e73666f726d65722f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](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

53

—

FairBetter than 97% of packages

Maintenance89

Actively maintained with recent releases

Popularity35

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 74.4% 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 ~52 days

Total

7

Last Release

57d 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 (96 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (15 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (13 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)")[![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-data

Create unified resources and data transfer objects

1.8k28.9M627](/packages/spatie-laravel-data)[spatie/laravel-livewire-wizard

Build wizards using Livewire

4061.0M4](/packages/spatie-laravel-livewire-wizard)[spatie/laravel-support-bubble

A non-intrusive support chat bubble that can be displayed on any page

391173.6k](/packages/spatie-laravel-support-bubble)[spatie/laravel-rdap

Perform RDAP queries in a Laravel app

72108.3k2](/packages/spatie-laravel-rdap)[worksome/exchange

Check Exchange Rates for any currency in Laravel.

123544.7k](/packages/worksome-exchange)[spatie/laravel-screenshot

Take screenshots of web pages in Laravel apps

7615.9k2](/packages/spatie-laravel-screenshot)

PHPackages © 2026

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