Code Monkey home page Code Monkey logo

fansipan's Introduction

Fansipan

Latest Version on Packagist Github Actions Codecov Total Downloads Software License

A simple package that allows you to write your API integrations or SDKs in a elegant way.

Fansipan (Phan Xi Pฤƒng) a.k.a "the Roof of Indochina" is a mountain located in Hoang Lien Son Mountain Range, Sapa, ๐Ÿ‡ป๐Ÿ‡ณ Vietnam. It is the peak of Indochina with the elevation of 3143m (3148m as of now).

Installation & Usage

This package requires PHP >= 7.2.5. You'll find installation instructions and full documentation on https://phanxipang.github.io/fansipan.

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING and CODE_OF_CONDUCT for details.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

fansipan's People

Contributors

jdecode avatar jenky avatar

Stargazers

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

Watchers

 avatar

fansipan's Issues

Feature Request: Support to define a rate limiting and retry logic

Detailed description

This is a feature request. Many external APIs have shallow rate limits. This means if you have an influx of calls to this API it's very likely you'll hit the limit and the call will fail. It would be great to be able to support defining a rate limiting strategy for a connector and provide the ability to retry after so long.

Context

Why is this change important to you? How would you use it?

  • It's something I've hit frequently while working with remote APIs, I'd use it for multiple integrations I've built.

How can it benefit other users?

  • Avoid hitting rate limits, losing data in failed calls

Possible implementation

N/A

Plagiarized docs

Hey @jenky

I noticed that this library has plagiarised a lot of my documentation from my library, Saloon: https://docs.saloon.dev/

The introduction of your documentation is almost exactly the same as my documentation from a few versions ago

Screenshot 2023-11-27 at 14 42 46

Saloon's Docs:

Screenshot 2023-11-27 at 14 43 33

I also noticed quite a few other pages have been simply copied and not re-written.

I'm flattered that people are writing similar libraries to Saloon, but I'm not cool with people copying the writing that I spent a lot of time on.

Improve decoder

Detailed description

Improve decoder decode method to return iterable instead of array

Context

This allows to map the response body to DTOs

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.