denosyscore / support
Reusable support types for DenoSysCore packages
Requires
- php: ^8.2
- illuminate/collections: ^12.0
Requires (Dev)
- phpstan/phpstan: ^2.2
- phpunit/phpunit: ^10.5
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-11-03 16:50:29 UTC
README
Reusable support types for DenoSysCore packages.
Collection
Denosys\Support\Collection is the collection type exposed by package APIs such
as hydrated database queries and eager-loaded relations. It extends the
maintained Illuminate\Support\Collection; the underlying collection
operations are not reimplemented here. The DenoSys type keeps package method
signatures stable while allowing a future implementation change if needed.
use Denosys\Support\Collection; $items = new Collection([['id' => 1], ['id' => 2]]); $ids = $items->pluck('id')->all(); // [1, 2]
Requires PHP 8.2 or later. Install with composer require denosyscore/support.
Quality checks
Run composer test and composer analyse after composer install.
Releases
The initial collection contract is proposed for v0.1.0. A maintainer should
verify CI on main, create the annotated semantic version tag from that exact
commit, and push the tag. The Release workflow publishes GitHub release notes
for tags matching v*.*.*. Confirm the package index exposes the new version
before updating consumers from development branches to ^0.1.