Download the PHP package vector/core without Composer
On this page you can find all versions of the php package vector/core. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package core
The Elevator Pitch
Vector gives you php functional superpowers.
-
The evolution:
-
Native PHP
- 👎 More than 1 or 2 function chains is unmaintainable
-
Laravel Collections
- 👍 More than 1 or 2 function chains is unmaintainable
- 👎 Unfortunately you can't do this with every type in the same elegant way (only works with collections)
-
Vector
- 👍 Works super similarly to collections, but just accepts & returns normal arrays (no ->toArray()-ing necessary)
- 👍 Works super similarly to collections for everything else too!
- 👎 Unfortunately it is an extra dependency (we don't have the native pipe operator yet https://wiki.php.net/rfc/pipe-operator-v2)
-
- You can add currying to any function, it isn't only limited to Vector built ins.
Module::curry('explode')(',')('a,b,c')(PHP_INT_MAX)
// ['a', 'b', 'c']
PHP Version Support
- 8.0+
Install
Show Me Some More Code
More automatic currying.
First class composition (Functional Pipelines).
Pattern Matching (Maybe & Result monads included).
Granular control flow (without try/catch).
Make your own modules with auto-curried methods
All versions of core with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.4
The package vector/core contains the following files
Loading the files please wait ....