承接 omatech/editora-astro-resource 相关项目开发

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

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

omatech/editora-astro-resource

Composer 安装命令:

composer require omatech/editora-astro-resource

包简介

README 文档

README

Installation

Require the package in your composer.json

composer require omatech/editora-astro-resource

Setup configuration

Set the configuration option in config/editora.php

'astroToken' => 'hash'

Using

Get uris

The endpoint is predefined to obtain all published routes. Use the token to authenticate.

Headers: { astro-token: hash }
POST: /api/astro/routes

Get resources

Use AstroResource in controllers to extract data and return it as a response.

return AstroResource::resources(
    HomeExtraction::find($this->inst_id, $this->preview),
    GlobalExtraction::find(2, $this->preview),
    [
        'breadcrumbs' => PageExtraction::getBreadcrumbs($this->inst_id, $this->preview)
    ]
);

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-02-08