Download the PHP package misarai/misarseo-php without Composer

On this page you can find all versions of the php package misarai/misarseo-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package misarseo-php

MisarSEO PHP SDK

Keyword research, site audits, rank tracking and AI search visibility from PHP.

Packagist

36 resource groups · 221 methods · SSE crawl streaming · ext-curl and ext-json only

MisarSEO is one API for the SEO work around a site: keyword and competitor research, crawls and audits, rank tracking (organic, local and AI Overviews), backlinks, AI-search brand visibility, and the data Google Search Console, GA4, Bing, Yandex and Baidu hold about it. PHP 8.1+. Every method returns the decoded JSON as arrays.

Package: misarai/misarseo-php on Packagist. Source: github.com/Misar-AI/misarseo-sdks.


Install

Composer


Authentication

Create an API key as described at https://seo.misar.io/ai. It starts with mseo_ and is sent as Authorization: Bearer mseo_… — the only credential the SDK uses.

Every call is decided server-side against the plan of the organization that owns the key; there is no client-side limit checking. A plan refusal carries code: "plan_limit_exceeded" and an upgrade offer, and is never retried (see Plan limits).


Resources

Every group the client exposes, and every method on it — generated from manifest.json, the same file every MisarSEO SDK is built from. Arguments: path parameters and required query parameters (string), then $body (when the endpoint takes one) and ?array $query.

Workspace

Resource Methods What it covers
$seo->projects create, delete, get, list, update Projects in the organization: list, create, rename, archive.
$seo->team listMembers Members, pending invitations and the caller's role (read-only).
$seo->account delete, deleteViaPost, export Data-subject rights: full JSON export and account erasure.
$seo->activity list The organization's activity log, newest first (cursor paged).
$seo->usage get Plan tier, credits and quota usage for the organization.
$seo->dashboard get Cross-project overview — one card per active project.
$seo->portfolios addProjects, create, delete, get, list, removeProjects, rename Group projects and read their aggregate summary.
$seo->reportBuilder createDefinition, deleteDefinition, deleteSchedule, getDefinition, getSchedule, listDefinitions, renameDefinition, renderDefinition, setWidgets, upsertSchedule User-composed report definitions, widgets, rendering and schedules.

Keyword and competitive research

Resource Methods What it covers
$seo->keywords classifyIntent, gap, listSaved, listShareOfVoice, potential, research, save, serpOverview, strategy, topicResearch Keyword research, saved keywords, intent, SERP overview, gap, topic research, strategy, share of voice.
$seo->domain authorityHistory, batchOverview, captureAuthoritySnapshot, overview Domain overview, batch overview and authority history.
$seo->backlinks anchors, intersect, overview Backlink profile, anchors (offset paged) and link intersect.
$seo->competitors find SERP competitor discovery.
$seo->content optimizer, pageMetrics On-page content optimizer and page metrics.
$seo->mentions mediaMonitoring, unlinkedMentions Unlinked brand mentions and media monitoring.
$seo->competitorMonitor addTarget, listChanges, listTargets, removeTarget Competitor page change detection.
$seo->linkBuilding add, addNote, exportCsv, importCsv, list, listActivity, remove, update, updateStatus Prospect list, outreach status, activity log, CSV import/export.
$seo->disavow add, export, list, remove Disavow entries and Google's disavow-file export.

Site audit

Resource Methods What it covers
$seo->crawl clearIssueStatus, comparison, coreWebVitals, createAuditSegment, createCustomIssueRule, createIssueMuteRule, createIssueSeverityOverride, deleteAuditSegment, deleteCustomIssueRule, deleteIssueMuteRule, deleteIssueSeverityOverride, httpsReport, internalLinks, listAuditSegments, listCustomIssueRules, listIssueMuteRules, listIssueSeverityOverrides, listIssueStatuses, segment, setIssueStatus, start, status, structuredDataReport, streamEvents (SSE) Start a crawl, read status and comparisons, Core Web Vitals, triage rules, audit reports, and the live SSE progress stream.
$seo->patches batchDraft, disableAutoPublish, draft, enableAutoPublish, list, listAutoPublishRules, publish, revert AI-drafted title/meta/canonical patches, publish/revert and auto-publish rules.
$seo->logAnalyzer dailySummary, getUpload, listUploads, topPaths, upload Server-log uploads and bot-traffic reports.
$seo->webAnalytics devices, sources, summary, topPages First-party, cookieless traffic and AI-referral reports.

Rank tracking

Resource Methods What it covers
$seo->rankTracking addAnnotation, addCompetitor, addKeywords, create, delete, get, getAiOverviewTrend, getConfigTrend, getKeywordHistory, getLatestRun, getRankMovers, getVolatilityIndex, listAnnotations, listCannibalisation, listCompetitors, listConfigs, listKeywordTags, removeAnnotation, removeCompetitor, removeKeywords, setKeywordTargetUrl, update, updateKeywordTag Trackers, keywords, tags, runs, trends, movers, annotations, cannibalisation, competitors.
$seo->localRankGrid createConfig, deleteConfig, getLatestRun, listConfigs, runCheck Geo-grid organic rank tracking.
$seo->localPackRank createConfig, deleteConfig, getLatestCheck, listConfigs, runCheck Local-pack position of a named business.
$seo->braveSearch rankCheck Rank checks against Brave Search's independent index.

Local

Resource Methods What it covers
$seo->local businessListings, napAudit, questionsAnswers Business listings, Q&A and NAP audit.
$seo->googleBusinessProfile availableLocations, createPost, deleteReviewReply, getConnection, getOptimization, getPerformance, getProfile, link, listPosts, listReviews, replyToReview, unlink Business Profile connection, profile, performance, reviews, posts, optimization.

AI search visibility

Resource Methods What it covers
$seo->aiSearch brandLookup, brandLookupStatus, brandScanTrend, citations, competitorPositioning, deleteBrandMonitor, deleteTrackedPrompt, listBrandMonitors, listTrackedPrompts, promptExplorer, promptResearch, trackedPromptTrend, upsertBrandMonitor, upsertTrackedPrompt Brand lookup, prompt explorer, brand monitors, tracked prompts, competitor positioning, prompt research, citations.
$seo->directVendorAi answer Answers from vendors' own APIs (You.com, DeepSeek, xAI, Meta AI, MiniMax).

Search engines and analytics

Resource Methods What it covers
$seo->gsc anonymousQueries, archive, cannibalisation, connect, contentDecay, coverage, ctrByPosition, hourly, inspectUrls, performance, sitemaps Search Console performance, archive, coverage, URL inspection, sitemaps, reports.
$seo->ga4 channels, connect, daily, disconnect, landingPages, listProperties, setProperty Google Analytics 4 connection and reports.
$seo->bing backlinks, connect, detailStats, disconnect, getFeedDetails, keywordResearch, listSites, saveCrawlSettings, setSite, siteOverview, submitContent, submitFeed, updateBlockedUrl, updateQueryParameter, urlInfo, urlLinks Bing Webmaster: site overview, backlinks, keyword research, submissions, settings.
$seo->yandex connect, disconnect, listHosts, reindexUrl, setHost, siteOverview Yandex Webmaster: site overview, re-index, connection.
$seo->baidu connection, disconnect, setConnection, submitUrls Baidu push API connection and URL submission.
$seo->indexNow submit IndexNow URL submission.
$seo->ahrefs connect, disconnect, listProjects, setProject Ahrefs Connect project selection (inert until partner approval).

Client

Option Default Meaning
base URL https://api.misar.io/seo API gateway.
timeout 30 s Per request; a stream's wait covers only the response headers.
max retries 2 Extra attempts for retryable failures (see Retries).
retry delays 250 ms base, 60 s cap Exponential backoff with jitter; Retry-After honoured up to the cap.

Quick start


Primary functions

Run a site audit and follow it live

Read a backlink profile


Errors

Type When
MisarSEO\MisarSeoException $status, getErrorCode(), $body, $retryAfter, isNotFound().
MisarSEO\PlanLimitException $offer, $reason, $feature, $plan, $upgradeUrl.

Plan limits

A call the organization's plan does not cover answers with

Detection is by code, never by status: a quota block is a 429 and would otherwise look like an ordinary throttle. Every piece of copy — plan names, prices, what each plan unlocks, URLs — is in the offer, so render it rather than hard-coding any of it. x-misar-plan and x-misar-upgrade-url response headers carry the current plan and upgrade link.


Retries


Pagination

The API pages two ways: offset pages ({ rows, hasMore, page }, e.g. backlink anchors) and keyset pages ({ rows, hasMore, nextCursor }, e.g. the activity log, whose rows are under entries). The helpers stop on hasMore: false, on an empty page, or on a repeated cursor, so a shrinking result set cannot loop forever against a billed endpoint.


Streaming

crawl progress is a Server-Sent Events stream (GET /crawl/:jobId/stream, Accept: text/event-stream): progress frames roughly every 1.5 s, then one terminal complete or error, after which the SDK ends the stream. It is never retried — replaying a stream would duplicate what was already consumed. See Run a site audit.


Versioning

Semantic versioning; see CHANGELOG.md. Every SDK is generated from the same manifest.json (API 1.1.0), so a method added to the API appears in all thirteen at once.


Links

License

MIT — see LICENSE.


All versions of misarseo-php with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
ext-curl Version *
ext-json Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package misarai/misarseo-php contains the following files

Loading the files please wait ...