Upgrade to Pro — share decks privately, control downloads, hide ads and more …

PHP Railway Flow Based Programming

PHP Railway Flow Based Programming

This talk is about Railway Flow Based Programming based from the work of Anton Mishchuk

https://anton-mishchuk.medium.com/railway-flow-based-programming-with-flowex-ef04fd338e41

Here we present the concept and show an implementation in PHP

Source code associated to this talk

https://github.com/darkwood-fr/flow

Article associated to this talk

https://blog.darkwood.fr/article/php-railway-flow-based-programming

Video associated to this talk

https://www.youtube.com/watch?v=u7LTuBRlITA

Mathieu Ledru

March 25, 2021
Tweet

More Decks by Mathieu Ledru

Other Decks in Programming

Transcript

  1. Two layers in FBP application @matyo91 @matyo91 25-03-2021 Botton layer

    : « business logic » Top Layer : « communication logic »
  2. Request : (userId, name, email) Name is blank, email is

    not valid User DB not found Authorization error Timeout Exemple @matyo91 Receive request Validate and canonicalize request Update existing user record Send verification email Return result to user 25-03-2021
  3. @matyo91 AddOne MulByTwo MinusThree Producer Consumer Client 25-03-2021 Supervisor IP

    {number:3} IP {number:3} IP {number:4} IP {number:5} IP {number:5} IP {number:8}
  4. Hello! I Am Mathieu Ledru You can contact me at

    @matyo91 @matyo91 Thanks! Any questions? 25-03-2021