sitegeist/janitor
Composer 安装命令:
composer require sitegeist/janitor
包简介
Clean up your content repository
README 文档
README
Tools for the content repository
Authors & Sponsors
- Wilhelm Behncke - behncke@sitegeist.de
The development and the public-releases of this package is generously sponsored by our employer http://www.sitegeist.de.
Installation
Sitegeist.Janitor is available via packagist:
composer require --dev sitegeist/janitor
Usage
Sitegeist.Janitor consists of a couple of tools to help you inspect your content repository and discover optimization potential. In addition it adds an automatic help message in the neos ui for every nodeType and property to get the exact names and types fast.
report:unused
Find out, what NodeTypes are not used inside your Neos instance.
./flow report:unused
Options:
--threshold(optional, default: 0) - You can use this parameter to detect more than just unused NodeTypes, but basically all NodeTypes that have lesser occurences than this threshold--super-type(optional, default: 'Neos.Neos:Node') - With this parameter, you can limit the set of considered NodeTypes to those that inherit a specific SuperType--workspaces(optional, default: 'live') - You can also limit the set of considered workspaces--dimensions(optional, default: null) - Specify dimensionvalues to limit the analysis as json like--dimensions '{"language":["de"]}'
report:occurences
Get a list of all occurences of a specific node type.
./flow report:occurences MyAwesome.Package:MyAwesomeNodeType
Options:
--node-type(required) - The node to which you want to find the occurences--workspaces(optional, default: '_all') - Limit the set of considered workspaces--limit(optional, default: 5) - With this parameter, you can limit the number of occurences that are listed in the report--start-at(optional, default: 1) - Specifies the index of the result at which to start the report
report:nodetypes
Get an overview of all your node types.
./flow report:nodetypes
Options:
--super-type(optional, default: 'Neos.Neos:Node') - With this parameter, you can limit the set of considered NodeTypes to those that inherit a specific SuperType--filter(optional, default: '') - Filter your results with a shell glob pattern, leave this empty to not filter at all--abstract(optional, default: false) - Consider abstract node types as well--oneline(optional, default: false) - Creates a condensed report
report:whereallowed
Find out where a particular node type is allowed. This command gives you a list of NodeTypes and auto created child nodes and highlights those in which the given node type is allowed.
./flow report:whereallowed Neos.Neos:Content
Options:
--node-type(required) - The node type to analyze--filter(optional, default: '') - Filter your results with a shell glob pattern, leave this empty to not filter at all
report:uris
Get a list of all Uris for a given node type.
./flow report:uris
Options:
--node-type(optional, default: 'Neos.Neos:Document') - The node type to analyze--filter(optional, default: '') - Filter your results with a shell glob pattern, leave this empty to not filter at all--workspace(optional, default: 'live') - Limit your results to a certain workspace--verbose(optional, default: false) - Increase verbosity--limit(optional, default: 0) - Limit the number of your results (0 = no limit)
Contributions
We will gladly accept contributions. Please send us pull requests.
In lieu of a formal styleguide, take care to maintain the existing coding style. Please make sure to contribute PSR-2 compliant sources.
License
See LICENSE.md
sitegeist/janitor 适用场景与选型建议
sitegeist/janitor 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 7.15k 次下载、GitHub Stars 达 5, 最近一次更新时间为 2020 年 01 月 27 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 sitegeist/janitor 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 sitegeist/janitor 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 7.15k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0
- 更新时间: 2020-01-27