PHPackages                             koba9813/irodori-translate-engine - 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. [Localization &amp; i18n](/categories/localization)
4. /
5. koba9813/irodori-translate-engine

ActiveLibrary[Localization &amp; i18n](/categories/localization)

koba9813/irodori-translate-engine
=================================

A simple PHP wrapper for the Sakura AI translation API (from Sakura Internet's Sakura AI Engine), used in the Irodori translation tool.

00PHP

Since Dec 28Pushed 6mo agoCompare

[ Source](https://github.com/koba9813/irodori-translate-engine)[ Packagist](https://packagist.org/packages/koba9813/irodori-translate-engine)[ RSS](/packages/koba9813-irodori-translate-engine/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

irodori Translate Engine
========================

[](#irodori-translate-engine)

[日本語はこちらへ](#japanese)

This is a simple PHP wrapper for utilizing the APIs provided by Sakura Internet's "[Sakura AI Engine](https://www.sakura.ad.jp/aipf/ai-engine/)" for translation. It extracts and libraries the core translation processing used in "Irodori Translation".

Features
--------

[](#features)

- Class-based API design that is simple and intuitive to use.
- Wide support for API translation options, such as language and style settings.
- Easy switching between "natural translation" and "literal translation" modes.
- Supports custom prompts for fine-tuning translation styles.

Compatibility
-------------

[](#compatibility)

This library is designed to work with Sakura Internet's AI Engine's OpenAI-compatible API. Although not officially tested, it may also work with other compatible APIs. Please use it at your own risk.

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

[](#requirements)

- PHP 7.4 or higher
- cURL PHP extension
- JSON PHP extension

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

[](#installation)

Install the library via Composer.

```
composer require koba9813/irodori-translate-engine
```

Usage
-----

[](#usage)

### Basic Example

[](#basic-example)

This shows how to perform a simple translation. Remember to implement exception handling for robust error management.

```
