PHPackages                             xchimx/laravel-urlscan - 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. [API Development](/categories/api)
4. /
5. xchimx/laravel-urlscan

ActiveLibrary[API Development](/categories/api)

xchimx/laravel-urlscan
======================

This is a package for interaction with the Urlscan.io API

1.0.2(1y ago)16MITPHPPHP ^8.0|^8.1|^8.2|^8.3

Since Sep 23Pushed 1y ago1 watchersCompare

[ Source](https://github.com/xchimx/laravel-urlscan)[ Packagist](https://packagist.org/packages/xchimx/laravel-urlscan)[ Docs](https://www.schottstaedt.net)[ RSS](/packages/xchimx-laravel-urlscan/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (2)Versions (4)Used By (0)

About Laravel-Urlscan
=====================

[](#about-laravel-urlscan)

This is a package for interaction with the Urlscan.io API

- [Laravel](https://laravel.com/)
- [Urlscan](https://urlscan.io/)
- [Schottstaedt](https://www.schottstaedt.net/)
- [Detailed article about this package](https://www.schottstaedt.net/laravel-urlscan-api-paket/)

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require xchimx/laravel-urlscan
```

Add the Service Provider and Facade to your `app.php` config file if you're not using Package Discovery.

```
// config/app.php

'providers' => [
    ...
    Xchimx\LaravelUrlScan\UrlScanServiceProvider::class,
    ...
];

'aliases' => [
    ...
    'UrlScan' => Xchimx\LaravelUrlScan\UrlScan::class
    ...
];
```

Publish the config file using the artisan CLI tool:

```
php artisan vendor:publish --provider="Xchimx\LaravelUrlScan\UrlScanServiceProvider"
```

finally set the [API Key](https://urlscan.io/docs/api/) in your ENV file:

```
URLSCAN_API="YOUR-API-KEY-SET-HERE"
```

Usage
-----

[](#usage)

make sure you import Urlscan

```
use Xchimx\LaravelUrlScan\UrlScan;
```

### User

[](#user)

```
$user = UrlScan::user()->getQuotas();
```

### Scan

[](#scan)

```
$url = 'https://laravel.com/';
$visibility = 'public'; // Options: 'public', 'private', 'unlisted'
$result = UrlScan::scan()->submitUrl($url, $visibility);
```

### Result

[](#result)

```
$uuid = '358c5c79-b712-4e61-b79e-4a59e3c8b116'; //laravel.com
$getResult = UrlScan::result()->getResult($uuid);
$getScreenshot =  UrlScan::result()->getScreenshot($uuid);
```

### Search

[](#search)

use any search terms from [Urlscan Search Terms](https://urlscan.io/search/#*)

```
$query = 'page.url.keyword:https\:\/\/www.paypal.com\/*';
$getSearchResults =  UrlScan::search()->search($query);
```

### Base combined example

[](#base-combined-example)

```
    public function startScan()
    {
        $url = 'https://laravel.com/';
        $visibility = 'public'; // Options: 'public', 'private', 'unlisted'
        $result = UrlScan::scan()->submitUrl($url, $visibility);

        if (isset($result['uuid'])) {
            sleep(10); //necessary else the scan isn't finished yet
            $getResult = UrlScan::result()->getResult($result['uuid']);
            $getScreenshot = UrlScan::result()->getScreenshot($result['uuid']);
            return [
                'result' => $getResult,
                'screenhots' => $getScreenshot
            ];

        } else {
            return response()->json(['error' => 'UUID not found'], 400);
        }
    }
```

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance36

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~5 days

Total

3

Last Release

585d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e2d73ea67bfaa26a0421424b9baac10286c4f68dfae5d6d3a124be91abc565a0?d=identicon)[xchimx](/maintainers/xchimx)

---

Top Contributors

[![xchimx](https://avatars.githubusercontent.com/u/3500927?v=4)](https://github.com/xchimx "xchimx (5 commits)")

---

Tags

laravelschottstaedt.netTobias Schottstädtlaravel-urlscanurlscan

### Embed Badge

![Health badge](/badges/xchimx-laravel-urlscan/health.svg)

```
[![Health](https://phpackages.com/badges/xchimx-laravel-urlscan/health.svg)](https://phpackages.com/packages/xchimx-laravel-urlscan)
```

###  Alternatives

[openai-php/laravel

OpenAI PHP for Laravel is a supercharged PHP API client that allows you to interact with the Open AI API

3.7k7.6M74](/packages/openai-php-laravel)[statamic/cms

The Statamic CMS Core Package

4.8k3.2M720](/packages/statamic-cms)[nickurt/laravel-postcodeapi

Universal PostcodeApi for Laravel 11.x/12.x/13.x

97221.2k](/packages/nickurt-laravel-postcodeapi)[mozex/anthropic-laravel

Anthropic PHP for Laravel is a supercharged PHP API client that allows you to interact with the Anthropic API

71226.4k1](/packages/mozex-anthropic-laravel)[xchimx/laravel-unsplash

Laravel package for easy integration with the Unsplash API. It allows you to use the Unsplash API in your Laravel applications to fetch photos, collections, and user data.

246.6k](/packages/xchimx-laravel-unsplash)[scriptdevelop/whatsapp-manager

Paquete para manejo de WhatsApp Business API en Laravel

762.6k](/packages/scriptdevelop-whatsapp-manager)

PHPackages © 2026

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