定制 softspring/cms-api-plugin 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

softspring/cms-api-plugin

Composer 安装命令:

composer require softspring/cms-api-plugin

包简介

REST API plugin for Armonic CMS.

README 文档

README

Latest Stable Latest Unstable License PHP Version Downloads CI Coverage

Experimental package: this plugin is in active development and its route contracts, response payloads, permissions, and extension points may change before a stable release.

softspring/cms-api-plugin exposes selected Armonic CMS configuration and content data through read-only JSON HTTP endpoints.

It is intended for projects that need a controlled REST API for CMS structure, published content, routes, menus, blocks, sections, and media.

Installation

composer require softspring/cms-api-plugin:^6.0@dev

The plugin requires softspring/cms-bundle, softspring/cms-sections-plugin, softspring/media-bundle, Symfony FrameworkBundle, and NelmioApiDocBundle.

Register the bundle if Symfony Flex does not do it automatically:

// config/bundles.php
return [
    Softspring\CmsApiPlugin\SfsCmsApiPlugin::class => ['all' => true],
];

Import the routes under the prefix chosen by the host application:

# config/routes/sfs_cms_api.yaml
sfs_cms_api:
    resource: '@SfsCmsApiPlugin/config/routing/api.yaml'
    prefix: /api/cms

Protect the imported route prefix with the host application's firewall or gateway rules.

Usage

The plugin exposes read-only JSON endpoints for CMS configuration and CMS instances.

Configuration endpoints include:

  • /sites
  • /content-types
  • /blocks
  • /menus
  • /layouts
  • /modules
  • /media-types

Instance endpoints include:

  • /content
  • /routes
  • /menus
  • /blocks
  • /sections
  • /media

Most list endpoints support query parameters such as query, site, locale, publishedOnly, limit, or includeRawConfig depending on the resource.

Features

See FEATURES.md for the functional scope of this package.

Contributing

See CONTRIBUTING.md.

Report issues and send Pull Requests

Security

See SECURITY.md.

License

This package is free and released under the AGPL-3.0 license.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: AGPL-3.0-or-later
  • 更新时间: 2026-06-25

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固