Download the PHP package markupai/php-sdk without Composer
On this page you can find all versions of the php package markupai/php-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download markupai/php-sdk
More information about markupai/php-sdk
Files in markupai/php-sdk
Package php-sdk
Short Description PHP SDK for Markup.ai content governance platform
License Apache-2.0
Homepage https://markup.ai
Informations about the package php-sdk
MarkupAI PHP SDK
A PHP SDK for integrating with the 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
Install the package via Composer:
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).
Access the client through dependency injection or the optional facade:
Requirements
- PHP 8.1 or higher
- PSR-18 HTTP client implementation (e.g., Guzzle)
- PSR-7 HTTP message implementation
Quick Start
API Reference
Style Guides
Style Checks
Style Suggestions
Style Rewrites
Configuration
Custom HTTP Client
You can provide your own PSR-18 HTTP client:
Custom Base URL
Error Handling
The SDK provides specific exception types for different error conditions:
Development
Running Tests
Requirements for Development
Running Integration Tests
Integration tests require a valid Markup.ai API token:
License
This project is licensed under the Apache License 2.0. See the LICENSE file for details.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
All versions of php-sdk with dependencies
illuminate/support Version ^9.0|^10.0|^11.0|^12.0
psr/http-client Version ^1.0
psr/http-factory Version ^1.0
psr/http-message Version ^1.0|^2.0