承接 binarcode/restify-boost 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

binarcode/restify-boost

Composer 安装命令:

composer require binarcode/restify-boost

包简介

Restify Boost - AI-powered Laravel Restify assistant providing comprehensive documentation access and code generation tools.

README 文档

README

Introduction

Restify Boost accelerates AI-assisted Laravel Restify development by providing comprehensive documentation access and code generation tools through the Model Context Protocol.

At its foundation, this package is an MCP server equipped with specialized tools designed to streamline Laravel Restify development workflows. The server provides access to complete documentation, API references, code examples, and troubleshooting guides.

Resources

The first fully customizable Laravel JSON:API builder with MCP and GraphQL support. "CRUD" and protect your resources with 0 (zero) extra line of code.

Save weeks of API development

Installation

Restify Boost can be installed via Composer:

composer require binarcode/restify-boost --dev

Next, install the MCP server:

php artisan restify-boost:install

Once installed, you're ready to start coding with Cursor, Claude Code, or your AI agent of choice.

Available MCP Tools

Name Notes
Search Restify Docs Search through comprehensive Laravel Restify documentation with relevance scoring
Get Code Examples Extract specific code examples from documentation with language and category filtering
Navigate Docs Browse documentation structure and categories with overview and detailed navigation
Generate Repository Generate Laravel Restify repository classes with proper structure and methods
Generate Action Generate Laravel Restify action classes for custom business logic
Generate Getter Generate Laravel Restify getter classes for data transformation
Generate Match Filter Generate Laravel Restify match filter classes for advanced filtering
Debug Application Comprehensive debugging tool for Laravel Restify applications with health checks and diagnostics
Upgrade Restify Automated tool to upgrade Laravel Restify from version 9.x to 10.x with migration assistance

Available Documentation

Package Coverage
Laravel Restify Complete documentation including API methods, field types, authentication, authorization, and performance guides

Specialized Tools

Debug Application Tool

The Debug Application Tool provides comprehensive diagnostics for Laravel Restify applications, helping developers identify and resolve common issues quickly.

Features

  • System Health Check: Laravel version, PHP compatibility, environment validation, cache/storage testing
  • Configuration Analysis: App config, database setup, Restify configuration validation
  • Database Health: Connection testing, migration status, performance checks
  • Restify Analysis: Repository discovery, route validation, service provider verification
  • Performance Analysis: Memory usage, cache/session driver optimization suggestions
  • Automatic Issue Detection: Severity classification with detailed reporting
  • Safe Auto-Fixes: Automatically resolve common configuration problems

Parameters

  • check_type (optional): Target specific areas - 'all', 'config', 'database', 'restify', 'performance', 'health' (default: 'all')
  • detailed_output (optional): Include comprehensive diagnostic details (default: true)
  • fix_issues (optional): Automatically resolve common configuration problems (default: false)
  • export_report (optional): Save detailed markdown reports to storage/logs (default: false)
  • include_suggestions (optional): Provide actionable improvement recommendations (default: true)

Usage Examples

# Run complete diagnostic
Debug Application with check_type="all"

# Check only database health
Debug Application with check_type="database"

# Run with automatic fixes
Debug Application with fix_issues=true

# Export detailed report
Debug Application with export_report=true detailed_output=true

Upgrade Restify Tool

The Upgrade Restify Tool automates the migration process from Laravel Restify 9.x to 10.x, ensuring smooth transitions with comprehensive analysis and backup creation.

Features

  • PHP Attributes Migration: Converts static $model properties to modern #[Model] attributes
  • Field-Level Configuration: Migrates static $search/$sort arrays to field-level methods
  • Configuration Compatibility: Checks and validates config file compatibility
  • Backup Creation: Automatically creates backups before making changes
  • Comprehensive Reporting: Detailed analysis with migration recommendations
  • Interactive Mode: Confirmation prompts for each repository migration
  • Complexity Scoring: Evaluates repository complexity for prioritization

Parameters

  • dry_run (optional): Preview changes without applying them (default: true)
  • migrate_attributes (optional): Convert static $model properties to PHP attributes (default: true)
  • migrate_fields (optional): Convert static $search/$sort arrays to field-level methods (default: true)
  • check_config (optional): Check and report config file compatibility (default: true)
  • backup_files (optional): Create backups of modified files (default: true)
  • interactive (optional): Prompt for confirmation before each change (default: true)
  • path (optional): Specific path to scan for repositories (defaults to app/Restify)

Migration Process

  1. Repository Discovery: Scans for Laravel Restify repositories in standard locations
  2. Analysis Phase: Evaluates each repository for migration requirements
  3. Backup Creation: Creates timestamped backups of files before modification
  4. Attribute Migration: Converts public static $model = Model::class; to #[Model(Model::class)]
  5. Field Migration: Moves search/sort configuration to field-level methods
  6. Configuration Check: Validates config file compatibility with v10
  7. Comprehensive Reporting: Provides detailed migration report with next steps

Usage Examples

# Dry run analysis (recommended first step)
Upgrade Restify with dry_run=true

# Apply migrations with backups
Upgrade Restify with dry_run=false backup_files=true

# Migrate only attributes
Upgrade Restify with dry_run=false migrate_fields=false

# Non-interactive mode
Upgrade Restify with dry_run=false interactive=false

# Custom repository path
Upgrade Restify with path="/app/Custom/Repositories"

Before & After Examples

Before (Laravel Restify 9.x):

class PostRepository extends Repository
{
    public static string $model = Post::class;
    
    public static array $search = ['title', 'content'];
    public static array $sort = ['created_at', 'title'];
    
    public function fields(RestifyRequest $request): array
    {
        return [
            field('title'),
            field('content'),
        ];
    }
}

After (Laravel Restify 10.x):

use Binaryk\LaravelRestify\Attributes\Model;

#[Model(Post::class)]
class PostRepository extends Repository
{
    public function fields(RestifyRequest $request): array
    {
        return [
            field('title')->searchable()->sortable(),
            field('content')->searchable(),
        ];
    }
}

Manually Registering the MCP Server

Sometimes you may need to manually register the Restify Boost MCP server with your editor of choice. You should register the MCP server using the following details:

Commandphp
Args./artisan restify-boost:start

JSON Example:

{
    "mcpServers": {
        "restify-boost": {
            "command": "php",
            "args": ["./artisan", "restify-boost:start"]
        }
    }
}

Contributing

Thank you for considering contributing to Restify Boost! Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

Restify Boost is open-sourced software licensed under the MIT license.

binarcode/restify-boost 适用场景与选型建议

binarcode/restify-boost 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 208 次下载、GitHub Stars 达 2, 最近一次更新时间为 2025 年 08 月 24 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「documentation」 「laravel」 「restify」 「ai」 「mcp」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 binarcode/restify-boost 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 binarcode/restify-boost 我们能提供哪些服务?
定制开发 / 二次开发

基于 binarcode/restify-boost 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 208
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 16
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 0
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-08-24