Download the PHP package sharpapi/laravel-content-detect-urls without Composer
On this page you can find all versions of the php package sharpapi/laravel-content-detect-urls. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download sharpapi/laravel-content-detect-urls
More information about sharpapi/laravel-content-detect-urls
Files in sharpapi/laravel-content-detect-urls
Package laravel-content-detect-urls
Short Description AI URL Detection for Laravel powered by SharpAPI.com
License MIT
Homepage https://github.com/sharpapi/laravel-content-detect-urls
Informations about the package laravel-content-detect-urls
AI URL Detector for Laravel
This package provides a Laravel integration for the SharpAPI URL Detection service. It allows you to automatically detect and extract URLs from text content, which is perfect for content moderation, data extraction, and link validation.
Installation
You can install the package via composer:
Configuration
Publish the config file with:
This is the contents of the published config file:
Make sure to set your SharpAPI key in your .env file:
Usage
Parameters
text(string): The text content to analyze for URLs
Response Format
The response is a JSON string containing an array of detected URLs with their protocols:
Features
- Automatically detects URLs in text content
- Works with various URL formats (with or without protocol, with or without www)
- Identifies the protocol for each URL
- Handles URLs with different TLDs (.com, .org, .io, etc.)
- Useful for content moderation, data extraction, and link validation
Credits
- Dawid Makowski
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-content-detect-urls with dependencies
ext-json Version *
laravel/framework Version ^10.48.29|^11.0|^12.0|^13.0
sharpapi/php-core Version ^1.0