Download the PHP package fusonic/linq without Composer

On this page you can find all versions of the php package fusonic/linq. 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 linq

Project discontinued!

Development and maintenance of fusonic/linq is discontinued since there are more popular options available. We recommend to use illuminate/collections (docs, GitHub) in new projects. Feel free to use existing versions and/or fork fusonic/linq for your own needs.

fusonic/linq

Build Status Total Downloads

fusonic/linq is a lightweight PHP library inspired by the LINQ 2 Objects extension methods in .NET.

For a full introduction read my blog-post: http://www.fusonic.net/en/blog/2013/08/14/fusonic-linq-write-less-do-more/

LINQ queries offer three main advantages over traditional foreach loops:

Requirements

fusonic/linq is supported on PHP 5.5 and up.

Installation & Usage

The most flexible installation method is using Composer: Simply create a composer.json file in the root of your project:

Install composer and run install command:

Once installed, include vendor/autoload.php in your script to autoload fusonic/linq.

Examples

Calculate the average file size of files in a directory:

Find all files bigger than 1024 bytes and return the fileinfo object:

Search for all users containing "Max 1", Skip 5 items, Take 2 items and select the property ID of each user:

Flatten multiple sequences into one sequence:

Map sequence to array with key/value selectors:

The aggregate method makes it simple to perform a calculation over a sequence of values:

The chunk method makes it simple to split a sequence into chunks of a given size:

List of methods provided by fusonic/linq:

Simple, Consistent and Predictable

One important design goal was the principle of the least surprise. As PHP is a fully dynamic language with nearly no type-safety, it is common to shoot yourself into the foot because of accidentally mixing up incompatible types.

We protect you from these programing errors by asserting that every callback functions you supply to the library must return a correctly typed value. In addition, every supported aggregate function will throw an exception if you are accidentally mixing up incompatible types.

This means that we made this library totally predictable in what it does, and verified that every function has its defined exceptions which are thrown when certain operations fail, or if certain types are not correct.

Running tests


All versions of linq with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5.0
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 fusonic/linq contains the following files

Loading the files please wait ....