kartavik / limit-collection
Base collection with limit size option
Installs: 52
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/kartavik/limit-collection
Requires
- php: >=7.2
- wearesho-team/base-collection: ^1.0
Requires (Dev)
- phpunit/phpunit: ^8.2
- squizlabs/php_codesniffer: ^3.4
This package is auto-updated.
Last update: 2025-09-13 04:06:23 UTC
README
Based on BaseCollection
Install
composer require kartavik/limit-collection
Usage
<?php use Kartavik\LimitCollection; class CustomCollection extends LimitCollection { public function type() : string { return stdClass::class; // see Wearesho\BaseCollection } public function limit() : int { return 5; // here you can put hardcode limit of collection } }