elmsln/hax_php_lib
Composer 安装命令:
composer require elmsln/hax_php_lib
包简介
HAX php library of helper classes for serving appstore spec and integrations with web components
README 文档
README
Install
Get polymer cli installed prior to usage of this (and (yarn)[https://yarnpkg.com/lang/en/docs/install/#mac-stable] / an npm client of some kind)
$ yarn global add polymer-cli
# or...
$ npm install -g polymer-cli
Then clean up the asset list you actually want to use in production. A large list has been added to this repo for you in build.js.
HAXService
This is a series of helpers for integrating HAX with PHP based systems. Specifically, this helps in getting the HAX Appstore specification output. Appstore is a JSON blob which expresses to HAX how to connect to various services. This helps with integrating with PHP based backends so they can serve up API keys as well as extend what comes across.
WebComponentsService
WebComponentsService also helps get the polyfill applied in a uniform way
// require the service require WebComponentsService.php; $WCService = new WebComponentsService(); // return a string to your template / front end some how while passing in // the path to where the component build directory has been placed. return $WCService->applyWebcomponents('location/of/your/components/');
In Drupal this looks like $WCService->applyWebcomponents("sites/all/libraries/webcomponents");
You can see this library implemented with some additional customizations in the following frameworks:
- GravCMS - https://github.com/elmsln/grav-plugin-hax/blob/master/hax.php#L79-L91
- Drupal 6 - https://cgit.drupalcode.org/hax/tree/hax.module?h=6.x-3.x#n193
- Drupal 7 - https://cgit.drupalcode.org/hax/tree/hax.module?h=7.x-3.x#n292
- Drupal 8 - https://cgit.drupalcode.org/hax/tree/hax.module?h=8.x-3.x#n292
- Backdrop - https://github.com/backdrop-contrib/hax/blob/1.x-3.x/hax.module#L221-L236
elmsln/hax_php_lib 适用场景与选型建议
elmsln/hax_php_lib 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1 次下载、GitHub Stars 达 0, 最近一次更新时间为 2019 年 08 月 09 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 elmsln/hax_php_lib 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 elmsln/hax_php_lib 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 1
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2019-08-09