someniatko/doctrine-collections
Composer 安装命令:
composer require someniatko/doctrine-collections
包简介
PHP Doctrine Collections library that adds additional functionality on top of PHP arrays.
关键字:
README 文档
README
Collections Abstraction library
Changelog
v1.6.1
This release, combined with the release of doctrine/annotations v1.6.1,
fixes an issue where parsing annotations was not possible
for classes within doctrine/collections.
Specifically, v1.6.0 introduced Psalm-specific annotations
such as (for example) @template and @template-implements,
which were both incorrectly recognized as @template.
@template has therefore been removed, and instead we use
the prefixed @psalm-template, which is no longer parsed
by doctrine/collections v1.6.1
Total issues resolved: 1
- 186: Use
@psalm-templateannotation to avoid clashes thanks to @muglug
v1.6.0
This release bumps the minimum required PHP version to 7.1.3.
Following improvements were introduced:
ArrayCollection#filter()now allows filtering by key, value or both.- When using the
ClosureExpressionVisitorover objects with a defined accessor and property, the accessor is prioritised. - Updated testing tools and coding standards, autoloading, which also led to marginal performance improvements
- Introduced generic type docblock declarations from psalm,
which should allow users to declare
/** @var Collection<KeyType, ValueType> */in their code, and leverage the type propagation deriving from that.
Total issues resolved: 16
- 127: Use PSR-4 thanks to @Nyholm
- 129: Remove space in method declaration thanks to @bounoable
- 130: Update build to add PHPCS and PHPStan thanks to @lcobucci
- 131: ClosureExpressionVisitor > Don't duplicate the accessor when the field already starts with it thanks to @ruudk
- 139: Apply Doctrine CS 2.1 thanks to @Majkl578
- 142: CS 4.0, version composer.lock, merge stages thanks to @Majkl578
- 144: Update to PHPUnit 7 thanks to @carusogabriel
- 146: Update changelog for v1.4.0 and v1.5.0 thanks to @GromNaN
- 154: Update index.rst thanks to @chraiet
- 158: Extract Selectable method into own documentation section thanks to @SenseException
- 160: Update homepage thanks to @Majkl578
- 165: Allow
ArrayCollection#filter()to filter by key, value or both thanks to @0x13a - 167: Allow
ArrayCollection#filter()to filter by key and also value thanks to @0x13a - 175: CI: Test against PHP 7.4snapshot instead of nightly (8.0) thanks to @Majkl578
- 177: Generify collections using Psalm thanks to @nschoellhorn
- 178: Updated doctrine/coding-standard to 6.0 thanks to @patrickjahns
v1.5.0
v1.4.0
- Require PHP 5.6+
- Add
ArrayCollection::createFrom() - Support non-camel-case naming
- Comparison
START_WITH,END_WITH - Comparison
MEMBER_OF - Add Contributing guide
v1.3.0
- Explicit casting of first and max results in criteria API
- Keep keys when using
ArrayCollection#matching()with sorting - Made
AbstractLazyCollection#$initializedprotected for extensibility
v1.2.0
- Add a new
AbstractLazyCollection
v1.1.0
-
Deprecated
Comparison::IS, because it's only there for SQL semantics. These are fixed in the ORM instead. -
Add
Comparison::CONTAINSto perform partial string matches:$criteria->andWhere($criteria->expr()->contains('property', 'Foo'));
someniatko/doctrine-collections 适用场景与选型建议
someniatko/doctrine-collections 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1.12k 次下载、GitHub Stars 达 0, 最近一次更新时间为 2019 年 11 月 18 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「collections」 「php」 「array」 「iterators」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 someniatko/doctrine-collections 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 someniatko/doctrine-collections 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 someniatko/doctrine-collections 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A set of useful PHP classes.
This package provides type-safe extension of the laravel collection, forcing a single type of object.
Doctrine Collections adapter for Rekapager pagination library
Library to mimics generic collections
Trait providing methods to set class properties with an array.
Traits to build collections of specific objects
统计信息
- 总下载量: 1.12k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 4
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-11-18