承接 panlatent/craft-annotations 相关项目开发

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

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

panlatent/craft-annotations

Composer 安装命令:

composer require panlatent/craft-annotations

包简介

README 文档

README

Craft Annotations aims to use PHP annotation features to bring a new development experience to CraftCMS and Yii Framework.

⚠️ This project has been transferred to another repository Craft Attribute.

Notice: This library is experimental and there will undoubtedly be some performance impact (but probably minimal) from using it, as parsing annotations requires leveraging the reflection API.

Craft Annotations are not intrusive. It uses inheritance to implement functionality. Use it on demand or as a middle layer between your application and Craft/Yii.

Features

  • Controller Access Control

Requirements

  • PHP 8.0.2 or later.

Installation

Then tell Composer to load the library

composer require panlatent/craft-annotations

Usages

Documentation

Attribute Targets Scopes Supports
#[AllowAnonymous] Controller Class Craft Yii
#[RequireLogin] ControllerAction Method Craft
#[RequirePostRequest] ControllerAction Method Craft
#[RequireAcceptsJson] ControllerAction Method Craft

License

The Element Messages is open-sourced software licensed under the MIT license.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-04-12