xs-khairul/pac04
Composer 安装命令:
composer require xs-khairul/pac04
包简介
Utility packages for Wpmet plugin, It will be used to serve Stories, Notice , Banner and Ratings
README 文档
README
#Over View of package
- Wpmet Plugin Utility helper package for Banner , Notice , Stories and Rating.
- We made a composer package for these classes together.
- By using this Helper package we are centralizing the feature of these Classes in a package manager (so that any update or modifications of this functionalities globally no need to give hand or keep any dependencies on our plugins)
Composer and making :
composer is a php dependency manager which take cares of all dependencies of projects , it take care of namespaces initializing and calling by mapping it in its autoload.php file we just need to specify the root dir in its jeson file call composer.json we can also configure its dependencies here and its author and package name etc.
composer.json file example
{
"name": "xs-khairul/pac04",
"description": "Utility packages for Wpmet plugin, It will be used to serve Stories, Notice , Banner and Ratings",
"version": "v1.0.0",
"type": "library",
"license": "GPL-3.0-only",
"autoload": {
"psr-4": {
"Wpmett\\UtilityPackage\\": "src/"
}
},
"authors": [
{
"name": "XpeedStudio",
"email": "info@xpeedstudio.com"
},
{
"name": "Wpmet",
"email": "info@xpeedstudio.com"
}
],
"minimum-stability": "stable",
"require": {
},
"require-dev": {
}
}
explanation
- namespace "Wpmett\UtilityPackage\" point to the src/ folder directly by composer when it calls
- require if any other package needed for this project.
- required-dev if any other package needed for this project for only development purpose.
to install this package by CLI
composer require xs-khairul/pac04
Using feature example
/** * Show WPMET stories widget in dashboard */ \Wpmett\UtilityPackage\Stories\Stories::instance( 'elementskit-lite' ) // ->is_test(true) ->set_filter( $filter_string ) ->set_plugin( 'ElementsKit', 'https://wpmet.com/plugin/elementskit/' ) ->set_api_url( 'https://api.wpmet.com/public/stories/' ) ->call(); /** * Show WPMET banner (codename: jhanda) */ \Wpmett\UtilityPackage\Banner\Banner::instance( 'elementskit-lite' ) // ->is_test(true) ->set_filter( ltrim( $filter_string, ',' ) ) ->set_api_url( 'https://api.wpmet.com/public/jhanda' ) ->set_plugin_screens( 'edit-elementskit_template' ) ->set_plugin_screens( 'toplevel_page_elementskit' ) ->call();
xs-khairul/pac04 适用场景与选型建议
xs-khairul/pac04 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 23 次下载、GitHub Stars 达 0, 最近一次更新时间为 2023 年 02 月 12 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 xs-khairul/pac04 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 xs-khairul/pac04 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 23
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 13
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0-only
- 更新时间: 2023-02-12