phpwine/optimizedhtml
Composer 安装命令:
composer require phpwine/optimizedhtml
包简介
HTML Frontend Framework Design for backend OptimizedHTML PHPWine written in PHP (Hypertext Preprocessor)
关键字:
README 文档
README
PHPWine (OptimizedHtml)
HTML Frontend Framework Design for Backend OptimizedHTML PHPWine written in PHP (Hypertext Preprocessor).
PHPWine doesn't force developers not to use native HTML, in fact if you feel super comfortable with native HTML you can stick to it, the main goal is to lessen, minimize, optimize, and organize both HTML and workload.
There are a lot of ways to use Wine but I highly recommend using OOP for HTML applications with Doctrine and Components, through that you can easily add and update HTML that separates from your data.
DOCTRINE: This files and classes is the main source where the data are being used multiple times in single or different pages, for instance, your branding source file. That is possible to use in the main header and footer or menu arrays of data that are used both in the navigation and footer section you can store them in doctrine properties and send back to your hooks as your arguments. In addition Doctrine is powerful enough to handle the visibility of elements based of the specific screen size you set, especially using the reserved key "those" Those having the class you assigned the visibility will respond based on your doctrine declaration.
APPS: These are the main public classes that will invoke in public pages that display HTML and data to browser, With these files and classes you will prepared the layout of your HTML application base on your key hooks for column or columns and xrow or xrows as the HTML is not visible to you at least you have a proper pointers that human-readable that can help you to analyze your codes in php to HTML.
COMPONENTS: These are HTML that hold data information from your controller or classes like ul, li, img files that take care of specific data. most of the time this is an inner second or third child of HTML and data.
In addition: I don't recommend wine having more of a third child HTML in case I highly recommend to add a hook and creating a new method for the value of that child.
// Structure
views
|- Apps
|- Components
|- Doctrines
/* Installation via composer */ /* required version *v2.2.2 */ composer require phpwine/optimizedhtml v2.2.2
/** Local file PHPWine **/ require_once __DIR__ . '/vendor/autoload.php'; new \PHPWineOptimizedHtml\OptimizedHtml;
// Function Hooks @since v2.0 wine( string $tag = '', string|callable|array $content = [], string|array $attr = [] array $hooks = [] ); source: https://github.com/PHPWine/PHPWine/blob/main/src/wine/hooks/wine.php
// Function Hooks @since v2.0 wcleared() Source: https://github.com/PHPWine/PHPWine/blob/main/src/wine/hooks/wcleared.php wine_doctrine_init(); Source: https://github.com/PHPWine/PHPWine/blob/main/src/wine/hooks/wine_doctrine_init.php
// Method Hooks @since v2.0 attr( object|string $class = null, string|callable $call_back = null, mixed ...$attr ); source: https://github.com/PHPWine/PHPWine/blob/main/src/wine/hooks/attr.php
// Method Hooks @since v2.0 magic( object|string $class = null, string|callable $call_back = null, mixed ...$current_value ); source: https://github.com/PHPWine/PHPWine/blob/main/src/wine/hooks/magic.php
// Method Hooks @since v2.0 value( object|string|null $class = null, string|callable|null $call_back = null, mixed ...$args ); source: https://github.com/PHPWine/PHPWine/blob/main/src/wine/hooks/value.php
Collections :
Quick Start
WP WineWPMenuWalker (Custom Menu w/Hooks) @since v2.0
WineAccordion @since v2.2.0
WineTab @since v2.2.0
WinePopup @since v2.2.0
New :
// New in v2.0 soon Hooks echo wine(h1,'Hello World', [ id => 'wine_id'], $hooks = [ ['top_your_hook_name_add_html_top',[ $one = 2, $two = 4] ], ['bottom_your_hook_name_add_html_bottom',[ $one = 'A', $two = 'B']] ] ); // You can now | Using key "string" top_ OR bottom_ followed by your hook name ... // ex. [ bottom_your_hook_name_add_html_bottom, [ $argu_1, .... ] ] $hooks = [ ['bottom_your_hook_name_add_html_bottom',[ $one = 'A', $two = 'B']] /* this will display in the bottom element html */ ]
@since v1.4.0 OptimizedHtml $this->wine::child => [ /* ['div', $this->wine::value=>[ $this->wine->value((new Branding),'component_top_logo_header')]], this still works anyway */ ['div', $this->wine::value=>[ $this->wine->value(MenuList::class,'component_top_right_menu', $this->links ) ]] ] ]);
Features :
@since v1.3.9 later(); no object require, call back function hook
Logs :
v2.2.2 [FIXED] : Doctrine namespace to Doctrine from doctrine | 09.12.2023
v2.2.1 [FIXED] : Dynamic prefix accordion | 08.12.2023
v1.3.8 [FIXED] : Class name attribute space child array | 08.11.2023
Thanks To:
Github : To allow me to upload my PHP Library PHPWine Vanilla Flavour to repository
php.net : The opportunity to develop web applications using corePHP - PHPFrameworks
LICENSE BY MIT
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Become a donor, Because with you! We can build more...
Donate:
GCash : +639650332900
Paypal account: syncdevprojects@gmail.com
Thanks and good luck!
phpwine/optimizedhtml 适用场景与选型建议
phpwine/optimizedhtml 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 64 次下载、GitHub Stars 达 4, 最近一次更新时间为 2023 年 11 月 02 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「html」 「optimizer」 「phplibrary」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 phpwine/optimizedhtml 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 phpwine/optimizedhtml 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 phpwine/optimizedhtml 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Texy converts plain text in easy to read Texy syntax into structurally valid (X)HTML. It supports adding of images, links, nested lists, tables and has full support for CSS. Texy supports hyphenation of long words (which reflects language rules), clickable emails and URL (emails are obfuscated again
Image optimization / compression library. This library is able to optimize png, jpg and gif files in very easy and handy way. It uses optipng, pngquant, pngcrush, pngout, gifsicle, jpegoptim and jpegtran tools.
These checks are where you can check if optimizer is installed on your server.
php常用函数库
An optimizer manipulator for Glide that uses ps/image-optimizer package.
HTML and form generation
统计信息
- 总下载量: 64
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 16
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-11-02