Download the PHP package pyther/linquo without Composer

On this page you can find all versions of the php package pyther/linquo. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package linquo

Linquo

Linquo is a lightweight PHP library to support LINQ-like operations on sequences such as arrays with the following features:

let's start with a simple example:

and a more complex one:

results to:

Installation

Install as Composer Package:

composer require pyther/linquo

Supported LINQ methods

List of supported LINQ methods, ordered by name:

Method Description
aggregate Aggregate the elements of a sequence into a single value.
aggregateBy Aggregate the elements of a sequence into a grouped result.
all Check if all elements in the sequence satisfy a given predicate.
any Check if any element in the sequence satisfies a given predicate.
append Append a value to the current sequence.
average Calculate the average of the elements in the sequence.
case Cast the elements of the sequence to a specified type or apply a function to each element.
chunk Chunk the sequence into smaller sequences of a specified size.
concat Concatenate the elements of another sequence, array, traversable or iterable to the end of the sequence.
contains Check if the sequence contains a specific value.
count Count the number of elements in the sequence.
countBy Count the number of elements in the sequence based on a key selector.
distinct Create a distinct sequence by removing duplicate elements.
distinctBy Create a distinct sequence by removing duplicate elements based on a key selector.
elementAt Get the element at a specified index in the sequence.
elementAtOrNull Get the element at a specified index in the sequence or null if it doesn't exist.
empty Create an empty Sequence.
except Create a new sequence by applying the set difference of two sequences.
exceptBy Create a new sequence by applying the set difference of two sequences based on a key selector.
first Get the first element of the sequence or the first element that satisfies a predicate.
firstOrNull Get the first element of the sequence or null if no element satisfies a predicate.
groupBy Group the elements of the sequence by a specified key selector.
groupJoin Join the elements of two sequences based on key equality, and groups the results.
index Return a sequence of elements with their indices.
intersect Get the intersection of two sequences, returning elements that are present in both.
intersectBy Get the intersection of two sequences based on a key selector, returning elements that are present in both.
join Join two sequences based on key equality into a new sequence.
last Get the last element of the sequence or the last element that satisfies a predicate.
lastOrNull Get the last element of the sequence or null if no element satisfies a predicate.
leftJoin Left join two sequences based on key equality into a new sequence.
max Get the maximum value in the sequence or the maximum value based on a function.
maxBy Get the maximum value in the sequence based on a function and an optional comparer.
min Get the minimum value in the sequence or the minimum value based on a function.
minBy Get the minimum value in the sequence based on a function and an optional comparer.
ofType Filter the elements of the sequence based on their type.
order Order the elements of the sequence based on a comparer or default comparison.
orderBy Order the elements of the sequence based on a key selector and an optional comparer.
orderByDescending Order the elements of the sequence in descending order based on a key selector.
orderDescending Order the elements of the sequence in descending order based on a comparer or default comparison.
prepend Prepend a value or a sequence to the current sequence.
range Create a Sequence from a range of integers.
repeat Create a Sequence that repeats a value a specified number of times.
reverse Create a new sequence in reverse order.
rightJoin Right join two sequences based on key equality into a new sequence.
select Select elements from the sequence based on a selector function.
selectMany Select elements from the sequence and flatten the results into a single sequence.
sequenceEqual Check if two sequences are equal based on their elements and an optional comparer.
shuffle Shuffle the elements of the sequence randomly.
single Get the the element that satisfies the predicate or throw an exception if more than one element is found.
singleOrNull Get a single element from the sequence or null if no element is found.
skip Skip a specified number of elements in the sequence.
skipLast Skip the last specified number of elements in the sequence.
skipWhile Skip elements in the sequence while a predicate is true.
sum Get the sum of the elements in the sequence or the sum based on a selector function.
take Take a specified number of elements from the sequence.
takeLast Take the last specified number of elements from the sequence.
takeWhile Take elements from the sequence while a predicate is true.
thenBy Order an already ordered sequence in ascending order.
thenByDescending Order an already ordered sequence in descending order.
toArray Convert the sequence to an array.
toDictionary Convert the sequence to a dictionary (associative array)
toHashSet Convert the sequence to a hash set (array with unique values).
toList Convert the sequence to a doubly linked list.
toLookup Convert the sequence to a lookup (associative array with multiple values for each key).
tryGetNonEnumeratedCount Try to get the count of elements in the sequence without enumerating it.
union Get the union of two sequences, returning elements that are present in either sequence.
unionBy Get the union of two sequences based on a key selector, returning elements that are present in either sequence.
where Filter the elements of the sequence based on a predicate.
zip Zip two sequences together, combining elements from both sequences into a new sequence.

Additional methods

List of additional methods, ordered by name:

Method Description
toJson Convert the sequence to a JSON string.

Supported interfaces

All sequences support methods and behaviour of the following interfaces:

Method Description
IteratorAggregate
Countable

ToDo


All versions of linquo with dependencies

PHP Build Version
Package Version
No informations.
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package pyther/linquo contains the following files

Loading the files please wait ...