RankVectorsRankVectors
FeaturesPricing
Log in →
  • Introduction
  • Quickstart
  • Authentication
  • Syncing Content
  • Generating Link Suggestions
  • Implementing Links
  • Integrations Overview
  • JavaScript SDK
  • TypeScript SDK
  • Python SDK
  • Go SDK
  • PHP SDK
  • C# SDK
  • Ruby SDK
  • Rust SDK
  • API Reference Overview
  • Projects API
  • Pages API
  • Suggestions API
  • Implementations API
  • Analytics API
  • Integrations Overview
  • WordPress Integration
  • Shopify Integration
  • Vercel Integration
  • Custom Integration

PHP SDK

Install and use the RankVectors PHP SDK

Installation

composer require rankvectors/rankvectors-php

Quick Start

<?php
require_once(__DIR__ . '/vendor/autoload.php');

$config = RankVectors\Configuration::getDefaultConfiguration();
$config->setApiKey('Authorization', 'YOUR_API_KEY');

$apiInstance = new RankVectors\Api\ProjectsApi(null, $config);
$createProjectRequest = new RankVectors\Model\CreateProjectRequest([
    'name' => 'My Website',
    'domain' => 'https://example.com',
    'preferred_sdk' => 'php',
]);

try {
    $project = $apiInstance->createProject($createProjectRequest);
    echo "Project created: " . $project->getId();
} catch (Exception $e) {
    echo 'Exception: ', $e->getMessage(), "\n";
}

More Examples

See the API Reference for complete API documentation.

PreviousGo SDKNextC# SDK
RankVectorsRankVectors

AI-powered internal linking optimization. Improve your SEO with intelligent semantic analysis and automated link recommendations.

XGitHubLinkedIn

Product

  • Features
  • Pricing
  • Documentation
  • Integrations

Support

  • Documentation
  • Quick Start
  • API Reference
  • Contact

Company

  • About
  • Blog
  • Contact
  • Partners

Legal

  • Privacy Policy
  • Terms of Service
  • Cookie Policy

© 2025 RankVectors. All rights reserved.