承接 chedaroo/inertia-marko 相关项目开发

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

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

chedaroo/inertia-marko

最新稳定版本:v0.1.2

Composer 安装命令:

composer require chedaroo/inertia-marko

包简介

The Marko adapter for Inertia.js.

README 文档

README

The Marko PHP server-side adapter for Inertia.js.

Requirements

  • PHP 8.5+
  • Marko PHP framework with marko/view and marko/view-latte

Installation

composer require chedaroo/inertia-marko

Usage

use Inertia\InertiaInterface;
use Inertia\Middleware\HandleInertiaRequests;
use Marko\Routing\Attributes\Get;
use Marko\Routing\Attributes\Middleware;
use Marko\Routing\Http\Response;

class DashboardController
{
    public function __construct(
        private readonly InertiaInterface $inertia,
    ) {}

    #[Get('/dashboard')]
    #[Middleware(HandleInertiaRequests::class)]
    public function index(): Response
    {
        return $this->inertia->render('Dashboard', [
            'user' => 'Cheda',
        ]);
    }
}

Development

Devcontainer (recommended)

Open the repo in VS Code and choose Reopen in Container — it will build a PHP 8.5 environment and run composer install automatically. This also works with GitHub Codespaces.

Local setup

Requires PHP 8.5+ and Composer.

git clone https://github.com/chedaroo/inertia-marko.git
cd inertia-marko
composer install

Running tests

composer test

Checking code style

composer format:check

To auto-fix:

composer format

License

MIT

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-04-05

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固