Download the PHP package xphere/lazzzy without Composer

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

Lazzzy

Lazy collection library for PHP.

Wrap your iterables in a thin layer of pure lazyness, so they can be lazy-evaluated while you're being lazy too. :D

Why would I want that?

Collections are everywhere, but you usually don't want to materialize them in each operation. That's where lazyness come in handy. This allows you to map and filter in zero initialization time, for later evaluation when the time is right.

Features

[*] planned

Compatibility

Lazzzy requires PHP 5.4 or higher for basic usage.

Installation

Just use composer to add to your project:

Usage

NOTE: Lazzzy is still in alpha, so don't rely on current methods. Just sayin'

Functions

Container::from(x) # lazy

Static function. Converts almost anything into an iterable. Returns a Container object wrapping the iterable.

Container::getIterator()

Honors \IteratorAggregate interface so you can foreach over Containers.

Container::toAssoc() # not lazy

Iterates over the container, applying all transformations. Returns the resulting array.

Container::toArray() # not lazy

Like toAssoc method, but discards keys.

Container::each(fn) # not lazy

Iterates over the container, executing fn on each iteration. Returns nothing.

Container::map(fn) # lazy (a -> b) -> [a] -> [b]

Calls fn transformation on each iteration of [a].

Container::filter(fn) # lazy (a -> Bool) -> [a] -> [a]

Filters elements for which fn function returns truthy values.

Container::take(number) # lazy n -> [a] -> [a]

Takes n items from the iterator. n must be an integer greater than zero.

Container::takeWhile(fn) # lazy n -> [a] -> [a]

Takes items while the condition fn is truthy.

More to come

Contributions

Please contribute with the project on GitHub

Author

Berny Cantos Contact: [email protected] GitHub: xPheRe Twitter: xPheRe

License

Lazzzy is licensed under the MIT License. See LICENSE file for full details.


All versions of lazzzy with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4
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 xphere/lazzzy contains the following files

Loading the files please wait ....