Download the PHP package andres-ml/fpl without Composer

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

Functional PHP Library

This library provides a series of curried, data-last functions commonly used within the functional programming paradigm.

API

Full api documentation can be found in docs/api.md

Installation

Function or const

As we can see above, due to how PHP works, we need a separate use statement if we want to pass a function as a parameter. We have two ways to circumvent that behavior:

If you want, you can use the original function definitions instead. Note that these are not curried and don't have their corresponding const versions.

Arrays and iterators

List-related functions return an array when they receive an array parameter, but they return iterators when receiving iterators (and can thus behave lazily). You can force laziness over an initial array by previously using toIterator or finish off with an array by ending with toArray:

Code generation

Functions are defined on src/api/*.php. They are split among different files but share the Aml\Fpl\functions namespace. All functions defined on those files not beginning with an underscore _ will be parsed and added to build/api.php as calls to their curried versions.

Code can be generated by running make code, which uses src/build.php.

Documentation is also automatically generated through make docs, which uses src/make-docs.php.

Testing

Testing is done through phpunit: ./vendor/bin/phpunit tests or make test

Note on performance

Automatic currying and automatic array/iter support have a performance overhead. Be wary of using them in a time-critical loop; a native array_map will always be faster than other implementations of map.


All versions of fpl with dependencies

PHP Build Version
Package Version
Requires php Version >=7.2,<9
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 andres-ml/fpl contains the following files

Loading the files please wait ....