GithubHelp home page GithubHelp logo

php-slang's Introduction

PhpSlang Build Status

PhpSlang is a PHP library aiming to fill the gaps between PHP and classical functional languages. It provides constructs optimizing your work and letting you develop with a purely functional style.

Keep informed

Watch us at https://twitter.com/_phpslang

Features (and roadmap)

0.1.0

  • Option monad
  • Either monad
  • Copy trait
  • Immutable List collection
  • Trampolines
  • Pattern matching

0.2.0

  • Immutable HashMap collections
  • Immutable Set collections
  • Extractors
  • Try monad

0.3.0

  • Future monad
  • Parallel immutable List collection
  • Parallel immutable HashMap collection
  • Parallel immutable Set collection

0.4.0

  • Lazy monad
  • Validation functor
  • Property testing
  • Numeric type with infinite precision

0.5.0

  • Memoization
  • Chainable\pipe monad
  • Convenient enumeration

Contribution

TL;DR;

Just feel free to post your pull requests on GitHub.

Few more words of explanation

Few rules that can make your pull request pass a code review:

  • Do not add any dependencies (we want to keep this lib with only one dependency - PHP7)
  • Please use descriptive commit titles
  • Squash your commits - we prefer to have one commit per feature, even if it becomes a bulky commit
  • You don't have to keep to the road map - it's for us, not for a community

Test

Clone this repository

git clone [email protected]:php-slang/php-slang.git

Install dependiences

composer install --dev

Run PHPUnit

phpunit

php-slang's People

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.