Download the PHP package jeffersongoncalves/laravel-semrush without Composer
On this page you can find all versions of the php package jeffersongoncalves/laravel-semrush. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jeffersongoncalves/laravel-semrush
More information about jeffersongoncalves/laravel-semrush
Files in jeffersongoncalves/laravel-semrush
Package laravel-semrush
Short Description A lightweight Semrush Analytics API client for Laravel — domain analytics, keyword research, and backlinks.
License MIT
Homepage https://github.com/jeffersongoncalves/laravel-semrush
Informations about the package laravel-semrush
Laravel Semrush
A lightweight Semrush Analytics API client for Laravel. It wraps the domain, keyword and backlink reports behind a small Semrush client/facade, threads your API key, and decodes the ;-separated CSV export into plain associative rows — no DTOs, no response wrappers.
Features
- Domain overview —
domainOverview() - Domain organic keywords —
domainOrganic() - Domain organic competitors —
domainCompetitors() - Keyword overview —
keywordOverview() - Related keywords —
relatedKeywords() - Keyword difficulty —
keywordDifficulty() - Backlinks overview —
backlinksOverview() - Backlinks list —
backlinks() - Semicolon-separated CSV decoded into
array<int, array<string, string>>, keyed by the report's own columns - Semrush reports errors with HTTP 200 and an
ERROR ...body — those raiseSemrushException - A non-2xx response raises
Illuminate\Http\Client\RequestException - Optional
database/limitparams are omitted from the query when leftnull
Installation
Optionally publish the config file:
Configuration
Add to your .env:
Grab a key at semrush.com/api-analytics.
Config Options
When semrush.key is null the client falls back to config('services.semrush.key').
Usage
Via the facade:
Or inject/resolve the underlying client:
Return shape
Every method returns a list of rows keyed by the report's export_columns:
Values are always strings — cast them yourself where you need numbers.
Any other report
Every Semrush report type is reachable through get(), which appends the key, escapes the export and decodes the CSV for you:
Databases
us (default), br, uk, de, fr, es, … — the full list is in the Semrush docs. Set the default with SEMRUSH_DATABASE or pass database: per call.
Error handling
Testing
Static Analysis
Code Formatting
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Jefferson Gonçalves
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-semrush with dependencies
illuminate/support Version ^11.0|^12.0|^13.0
spatie/laravel-package-tools Version ^1.16