collection
collections
collection | collections | |
---|---|---|
20 | 4 | |
705 | 5,829 | |
0.3% | 0.1% | |
8.2 | 7.1 | |
15 days ago | 18 days ago | |
PHP | PHP | |
MIT License | MIT License |
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
- Experimenting around FP in PHP
-
How to functionally invert a set of relations
It's a transposition, did it in PHP here: https://github.com/loophp/collection/blob/master/src/Operation/Transpose.php
-
Do you have a kind of Flip/Flop operator in PHP?
I didn't know that one, but I might definitely implement it in https://github.com/loophp/collection tomorrow!
-
PHP Map 3.3 released - Collections made easy!
I'm working on it, I hope I can release it before the end of the year. There is a last pull-request which is preventing me from moving forward: https://github.com/loophp/collection/pull/270
-
Do generators really reduce the memory usage?
Thanks for your super article. I might add a link to it in https://github.com/loophp/collection
-
What new array_* functions would you like to see on next PHP versions?
I personally would like to see them removed and replaced with their equivalent that would work with iterables. This is the reason why I wrote this : https://github.com/loophp/collection
-
PHP Map v3.0 - Collections made easy
Or https://github.com/loophp/collection completely lazy.
- PHP Map v2.6 - Collections made easy
-
public static function __invoke - closing gap between functions and classes
I'm using that all over the place in here : https://github.com/loophp/collection/tree/master/src/Operation
- PHP Map - PHP arrays and collections made easy
collections
-
Enforce architecture rules with Deptrac
Theoretically, our domain should only contain pure PHP code without any external dependencies. Nonetheless, there are some libraries that we want to use in our domain, such as ramsey/uuid to generate UUIDs, or brick/math to work safely with numbers. Another usual example of an allowed external library in our domain is doctrine/collections when we use Doctrine as an ORM, because the relationships between entities must be of type Doctrine\Common\Collection.
-
How to query a CSV input in PHP as if it was a database table?
How you want to do the grouping is up to you. Maybe look into using Doctrine Collections: https://www.doctrine-project.org/projects/collections.html
- PHP Map 3.3 released - Collections made easy!
-
PHP Map v3.1 - Collections made easy
You can also look at Doctrine Collections as an example of a library doing something similar and making full use of generics. Look at all the annotations that mention `T` or `TKey` in https://github.com/doctrine/collections/blob/c1ec9823f9250fefb274cccf62970b5c167e6bc7/lib/Doctrine/Common/Collections/Collection.php
What are some alternatives?
dflydev-dot-access-data - Given a deep data structure representing a configuration, access configuration by dot notation.
homebrew-php - :beer: Homebrew tap for PHP 5.6 to 8.4. PHP 8.4 is built nightly.
php-caching-generator - A rewindable PHP Generator class that caches its generated values.
map - PHP arrays and collections made easy
JSON Machine - Efficient, easy-to-use, and fast PHP JSON stream parser
Laravel - The Laravel Framework.
Fregata - Fregata - a PHP database migrator
PHP Collections - General Purpose Collection Library for PHP
YaLinqo - Yet Another LINQ to Objects for PHP [Simplified BSD]
contracts - Smart contracts comprising the business logic of the Matic Network
TOTEM - TOTEM is a 38 keys column-staggered split keyboard. It meant to be used with a SEEED XIAO BLE or RP2040