pointybeard/symphony-extended
Composer 安装命令:
composer require pointybeard/symphony-extended
包简介
A collection of extended Symphony CMS base classes that can be extended to add extra features and helpers.
README 文档
README
A collection of extended Symphony CMS base classes that can be extended to add extra features and helpers.
Installation
This library is installed via Composer. To install, use composer require pointybeard/symphony-extended or add "pointybeard/symphony-extended": "~1.0.0" to your composer.json file.
And run composer to update your dependencies:
$ curl -s http://getcomposer.org/installer | php
$ php composer.phar update
Requirements
This library requires PHP7.3 or greater.
This library also makes use of the PHP Helpers: JSON Functions (pointybeard/helpers-functions-json). It is installed automatically via composer.
To include all the PHP Helpers packages on your project, use composer require pointybeard/helpers
Usage
AbstractExtension
Extend your extension.driver.php class with pointybeard\Symphony\Extended\AbstractExtension instead of \Extension.
Provides the following extra class method:
status, handle, about, and install
In addition, this extended class expects to find a file extension.json in the extension folder. This is essentially a JSON representation of the extension.meta.xml file however adds support for dependencies. E.g.
{
"id": "my_awesome_extension",
"name": "My Awesome Extension",
"description": "This describes the extension.",
"repo": "https://github.com/pointybeard/my_awesome_extension.git",
"homepage": "https://github.com/pointybeard/my_awesome_extension",
"type": [
"Utility"
],
"authors": [
{
"name": "Alannah Kearney",
"email": "hi@alannahkearney.com",
"homepage": "http://alannahkearney.com",
"role": "Developer"
}
],
"require": [
"uuidfield",
"uniqueinputfield",
"selectbox_link_field"
],
"releases": [
{
"version": "1.0.0",
"date": "2020-03-28",
"min": "2.7.10",
"max": "2.x.x"
},
{
"version": "0.1.0",
"date": "2010-01-10",
"min": "2.6.x",
"max": "2.x.x"
}
]
}
Dependencies are checked prior to commencing installation. If your extension has a custom install() method, be sure to include a call to parent::install();.
AbstractSectionDatasource
Extend your custom Data Sources with pointybeard\Symphony\Extended\AbstractSectionDatasource instead of \SectionDatasource.
This extended class gives you the ability to define your $dsParamFILTERS array with field element names instead of ID values making your data source more portable (i.e. if the field ID changes, your data source doesn't need to be updated).
Note: By extending AbstractSectionDatasource, your data source can no longer be edited via the Symphony Data Source editor.
Support
If you believe you have found a bug, please report it using the GitHub issue tracker, or better yet, fork the library and submit a pull request.
Contributing
We encourage you to contribute to this project. Please check out the Contributing documentation for guidelines about how to get involved.
License
"Extended Base Class Library for Symphony CMS" is released under the MIT License.
pointybeard/symphony-extended 适用场景与选型建议
pointybeard/symphony-extended 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 643 次下载、GitHub Stars 达 1, 最近一次更新时间为 2020 年 03 月 29 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 pointybeard/symphony-extended 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 pointybeard/symphony-extended 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 643
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 8
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-03-29