PHPackages                             markupai/php-sdk - 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. markupai/php-sdk

ActiveLibrary

markupai/php-sdk
================

PHP SDK for Markup.ai content governance platform

1.0.3(8mo ago)78Apache-2.0PHPPHP ^8.1

Since Sep 17Pushed 8mo agoCompare

[ Source](https://github.com/ClermontDigital/markupai)[ Packagist](https://packagist.org/packages/markupai/php-sdk)[ Docs](https://markup.ai)[ RSS](/packages/markupai-php-sdk/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (9)Versions (5)Used By (0)

MarkupAI PHP SDK
================

[](#markupai-php-sdk)

[![Latest Version](https://camo.githubusercontent.com/c43dce8614914d4e9206ffd776896dc54428497b5b33ea977885cd6d44ee337a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d61726b757061692f7068702d73646b2e7376673f7374796c653d666c61742d737175617265266361636865627573743d31)](https://packagist.org/packages/markupai/php-sdk)

A PHP SDK for integrating with the [Markup.ai](https://markup.ai) content governance platform. This library provides a clean, PSR-compliant interface for accessing Markup.ai's style checking, content validation, and automated rewriting capabilities.

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

[](#installation)

Install the package via Composer:

```
composer require markupai/php-sdk
```

### Laravel Integration

[](#laravel-integration)

When used inside a Laravel 9+ application the package is auto-discovered. Configure your API token by setting `MARKUPAI_API_TOKEN` in the environment (or editing `config/markupai.php` after publishing).

```
php artisan vendor:publish --tag=markupai-config
```

Access the client through dependency injection or the optional facade:

```
use MarkupAI\MarkupAiClient;
use MarkupAI\Laravel\Facades\MarkupAi;

// Constructor injection
public function __construct(MarkupAiClient $client)
{
    $this->client = $client;
}

// Facade usage
$styleGuides = MarkupAi::styleGuides()->list();
```

Requirements
------------

[](#requirements)

- PHP 8.1 or higher
- PSR-18 HTTP client implementation (e.g., Guzzle)
- PSR-7 HTTP message implementation

Quick Start
-----------

[](#quick-start)

```
