backdrop-dev/view
Composer 安装命令:
composer require backdrop-dev/view
包简介
System for setting up and rendering theme template files. Views are a bit like a suped-up version of the core WordPress get_template_part() function.
关键字:
README 文档
README
The Backdrop Template View is a drop-in package for Backdrop framework for developing ClassicPress and WordPress theme. This feature is used for setting up and rendering theme template files and it is similar to the WordPress core feature get_template_part function. However it allows you to build a hierarchy of potential templates.
Requirements
Installation
Use the following command from your preferred command line utility to install Backdrop Template View
composer require backdrop-dev/view
Registering and Booting
To begin, create a new provider as follows.
$slug->provider( Backdrop\View\Provider::class );
After you have successfully registering and booting the provider, all you have to do is use the following to begin using the view
Backdrop\View\display( 'something', 'one', [ 'location' => 'data' ] );
This will create a new template call something.php. you can pass an array as well something, [ 'one, two ]. The order would be
something-two.php something-one.php something.php
Please also note that all templates will be located at public/views or resource/views depending on the project.
Copyright and Licenses
This project is licensed under the GNU GPL, version 2 or later.
2019–2023 © Benjamin Lu
backdrop-dev/view 适用场景与选型建议
backdrop-dev/view 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 394 次下载、GitHub Stars 达 0, 最近一次更新时间为 2024 年 03 月 25 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「wordpress」 「classicpress」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 backdrop-dev/view 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 backdrop-dev/view 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 backdrop-dev/view 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
The CMS for Creators. Stable. Lightweight. Instantly Familiar. Also known as the WordPress fork.
Additional ClassicPress and WordPress theme customizer for Backdrop framework.
Helper functions for loading Google Fonts locally.
Backdrop Mix is a helper class for ClassicPress or WordPress plugins themes and plugins using Laravel Mix.
Backdrop Theme is a collection of helper functions and filters to aid in theme development.
A smarter and flexible template hierarchy.
统计信息
- 总下载量: 394
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 13
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0-or-later
- 更新时间: 2024-03-25