Giter VIP home page Giter VIP logo

sequence's People

Contributors

shampine avatar thekonz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sequence's Issues

Add Pagination Hydration Support

Similar to post and patch the need for pagination support, the fields should be

  • limit
  • cursor (for the where greater than query)

Sub Pipelines (Child Pipeline)

  • allow instantiation of nested pipelines
  • define sub-pipeline class
    • contains pre / post hydration routines
    • toggle whether to fatal on exception
    • support custom arguments

Add Magic Getters on ResponsePayloads

Instead of defining add a magical getter to be used by the formatter:

  • none of this code is type hinted
  • all of it is handled by magic getter creation in format

Typo in README

$responde should be $response. Need to find and replace.

Update to support PHP 8+

Currently actions are locked to support php 7.4. Also unsure if the minimal packages included will support php 8.

Namespace Tests Directory

Probably should update the autoload-dev to:

    "autoload-dev": {
        "psr-4": {
            "Tests\\": "tests/"
        }
    },

Then will need to namespace all the dirs/classes to live under Tests.

Finish README

todo:

  • installation
  • usage (more examples)
  • testing
  • license

Rename Payload Types

Few renames before v1.0

  • rename Request Payloads to Payloads
  • rename Response Payloads to Response
  • rename Error & Success Response to be ResponseWrappers

Currently there is a lot of confusion with Request + Response Payloads.

This will require a lot of documentation updates as well.

Interface returns do not satisfy phpstan

 ------ ----------------------------------------------------------------------- 
  Line   src/Payload/PaginationInterface.php                                    
 ------ ----------------------------------------------------------------------- 
  24     Method Shampine\Sequence\Payload\PaginationInterface::setOffset() has  
         no return typehint specified.                                          
  26     Method Shampine\Sequence\Payload\PaginationInterface::setLimit() has   
         no return typehint specified.                                          
  28     Method Shampine\Sequence\Payload\PaginationInterface::setCursor() has  
         no return typehint specified.                                          
 ------ ----------------------------------------------------------------------- 

Error: ] Found 3 errors                                                         

Error: Method Shampine\Sequence\Payload\PaginationInterface::setOffset() has no return typehint specified.
Error: Method Shampine\Sequence\Payload\PaginationInterface::setLimit() has no return typehint specified.
Error: Method Shampine\Sequence\Payload\PaginationInterface::setCursor() has no return typehint specified.

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.