renamed-to/renamed-php
Composer 安装命令:
composer require renamed-to/renamed-php
包简介
Official PHP SDK for the renamed.to API - AI-powered file renaming, PDF splitting, and data extraction
README 文档
README
renamed.to SDK
Official SDKs for AI-powered file renaming, PDF splitting, and data extraction
Quick Start • Installation • Features • API • Docs
🚀 Quick Start
Get your API key at renamed.to/settings.
| TypeScript | Python |
import { RenamedClient } from '@renamed/sdk'; const client = new RenamedClient({ apiKey: 'rt_...' }); const result = await client.rename('invoice.pdf'); console.log(result.suggestedFilename); // → "2025-01-15_AcmeCorp_INV-12345.pdf" |
from renamed import RenamedClient client = RenamedClient(api_key='rt_...') result = client.rename('invoice.pdf') print(result.suggested_filename) # → "2025-01-15_AcmeCorp_INV-12345.pdf" |
More languages
Go
import "github.com/renamed-to/renamed-sdk/sdks/go/renamed" client := renamed.NewClient("rt_...") result, _ := client.Rename(ctx, "invoice.pdf", nil) fmt.Println(result.SuggestedFilename) // → "2025-01-15_AcmeCorp_INV-12345.pdf"
Java
import to.renamed.sdk.*; RenamedClient client = new RenamedClient("rt_..."); RenameResult result = client.rename(Path.of("invoice.pdf"), null); System.out.println(result.getSuggestedFilename()); // → "2025-01-15_AcmeCorp_INV-12345.pdf"
C#
using Renamed.Sdk; using var client = new RenamedClient("rt_..."); var result = await client.RenameAsync("invoice.pdf"); Console.WriteLine(result.SuggestedFilename); // → "2025-01-15_AcmeCorp_INV-12345.pdf"
Ruby
require 'renamed' client = Renamed::Client.new(api_key: 'rt_...') result = client.rename('invoice.pdf') puts result.suggested_filename # → "2025-01-15_AcmeCorp_INV-12345.pdf"
Rust
use renamed::RenamedClient; let client = RenamedClient::new("rt_..."); let result = client.rename("invoice.pdf", None).await?; println!("{}", result.suggested_filename); // → "2025-01-15_AcmeCorp_INV-12345.pdf"
Swift
import Renamed let client = try RenamedClient(apiKey: "rt_...") let file = try FileInput(url: URL(fileURLWithPath: "invoice.pdf")) let result = try await client.rename(file: file) print(result.suggestedFilename) // → "2025-01-15_AcmeCorp_INV-12345.pdf"
PHP
use Renamed\Client; $client = new Client('rt_...'); $result = $client->rename('invoice.pdf'); echo $result->suggestedFilename; // → "2025-01-15_AcmeCorp_INV-12345.pdf"
📦 Installation
| Language | Package Manager |
|---|---|
| TypeScript |
npm install @renamed/sdk |
| Python |
pip install renamed |
| Go |
go get github.com/renamed-to/renamed-sdk/sdks/go |
| Java |
<dependency> <groupId>to.renamed</groupId> <artifactId>renamed-sdk</artifactId> <version>0.1.0</version> </dependency> |
| C# / .NET |
dotnet add package Renamed.Sdk |
| Ruby |
gem install renamed |
| Rust |
[dependencies] renamed = "0.1" |
| Swift |
.package(url: "https://github.com/renamed-to/renamed-sdk", from: "0.1.0") |
| PHP |
composer require renamed/sdk |
✨ Features
🤖 Rename Files
AI-powered file renaming with intelligent naming suggestions:
const result = await client.rename('scan001.pdf'); // { // suggestedFilename: "2025-01-15_AcmeCorp_INV-12345.pdf", // folderPath: "2025/AcmeCorp/Invoices", // confidence: 0.95 // }
✂️ Split PDFs
Split multi-page PDFs into individual documents:
const job = await client.pdfSplit('multi-page.pdf', { mode: 'auto' }); const result = await job.wait(); for (const doc of result.documents) { const buffer = await client.downloadFile(doc.downloadUrl); // Save doc.filename with buffer }
📊 Extract Data
Extract structured data from documents:
const result = await client.extract('invoice.pdf', { prompt: 'Extract invoice number, date, and total amount' }); console.log(result.data); // { invoiceNumber: "INV-12345", date: "2025-01-15", total: 1234.56 }
📖 API Reference
| Method | Description |
|---|---|
rename(file) |
Rename a file using AI |
pdfSplit(file, options) |
Split PDF into documents |
extract(file, options) |
Extract structured data |
getUser() |
Get user profile & credits |
downloadFile(url) |
Download a split document |
📋 Supported Files
| Type | Formats |
|---|---|
| 📄 Documents | |
| 🖼️ Images | JPEG, PNG, TIFF |
📚 Documentation
Built with ❤️ by the renamed.to team
renamed-to/renamed-php 适用场景与选型建议
renamed-to/renamed-php 是一款 基于 Java 开发的 Composer 扩展包,目前已累计 8 次下载、GitHub Stars 达 1, 最近一次更新时间为 2026 年 01 月 11 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「pdf」 「document」 「OCR」 「extract」 「ai」 「rename」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 renamed-to/renamed-php 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 renamed-to/renamed-php 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 renamed-to/renamed-php 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Invalidity check of documents in the database of Ministry of the Interior of the Czech Republic
Document indexation and migration tool for Elasticsearch
The Best Image Ocr SDK For BAT.
The Best Image Ocr SDK For BAT.
腾讯 OCR SDK
Provides TCPDF integration for Symfony
统计信息
- 总下载量: 8
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 29
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-01-11