collection VS contracts

Compare collection vs contracts and see what are their differences.

collection

A (memory) friendly, easy, lazy and modular collection class. (by loophp)

contracts

[READ ONLY] Subtree split of the Illuminate Contracts component (see laravel/framework) (by illuminate)
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
collection contracts
20 2
705 666
0.3% 0.3%
8.2 6.6
16 days ago 9 days ago
PHP PHP
MIT License MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

collection

Posts with mentions or reviews of collection. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-12-18.

contracts

Posts with mentions or reviews of contracts. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-03-02.
  • PHP Map v3.0 - Collections made easy
    4 projects | /r/PHP | 2 Mar 2022
    Especially the contracts package contains a lot of code that is not required by the collections object at all: https://github.com/illuminate/contracts
  • Adapter Pattern vs. Bridge Pattern
    5 projects | dev.to | 4 Oct 2021
    Most frameworks have a caching system that has a single API for working with it, while providing adapters for different implementations, like: redis, memcache or a filesystem cache. Laravel calls these adapters a Store and you can find these stores in illuminate/cache. They provide the Target interface for such a store in the illuminate/contracts repository.

What are some alternatives?

When comparing collection and contracts you can also consider the following projects:

dflydev-dot-access-data - Given a deep data structure representing a configuration, access configuration by dot notation.

LinkToken - LINK Token Contracts for the Chainlink Network

php-caching-generator - A rewindable PHP Generator class that caches its generated values.

cache - [READ ONLY] Subtree split of the Illuminate Cache component (see laravel/framework)

JSON Machine - Efficient, easy-to-use, and fast PHP JSON stream parser

Fregata - Fregata - a PHP database migrator

map - PHP arrays and collections made easy

contracts - Smart contracts comprising the business logic of the Matic Network

aphiria - A simple, extensible REST API framework for PHP

lazy-json - 🐼 Framework-agnostic package to load JSON of any dimension and from any source into Laravel lazy collections recursively.

etl - PHP - ETL (Extract Transform Load) data processing library

Iter - Iteration primitives using generators