Coder Social home page Coder Social logo

Comments (4)

rvitaliy avatar rvitaliy commented on July 16, 2024 3

I think if you want to offer support for old versions, it is ok to do it, consider that these users if they don't update the PHP then they don't update your library either.
I think the best solution would be to make a dedicated branch for legacy PHP and a new one for supported PHP, where you can have well-tested and more secure code.
It would be nice for those who are using PHP not abandoned to have an updated code, especially for a library that deals with payments.

from adyen-php-api-library.

msilvagarcia avatar msilvagarcia commented on July 16, 2024 1

Hey,

As the one behind making this decision, let me open my thought process.

Indeed we offer support for PHP versions that are very outdated. The reason being that it's quite difficult for us to track which PHP Versions are being used by merchants.

It's also pretty hard to setup a PHP environment with said versions. Ondrej's PPA for PHP versions only offer versions 5.6+, and finding boxes that support PHP 5.3 is not so trivial.

And then there's PHPUnit support, which I believe support for PHP 5.3 was dropped in PHPUnit 5. This means that it's hard to find documentation for PHPUnit when we want to create or change tests that require a bit more than just assertEquals.

We discussed internally and decided to maintain PHP 5.3 as a sanity-only check. Travis CI offers a PHP 5.3 box, so we run the built-in PHP Lint (php -l) and make sure that the code compiles. Meanwhile, in PHP 7.4 we run Unit Tests in Travis and make try to make sure it works.

Thank you for raising this issue. We are studying ways to figure this out as well, while still maintaining a healthy relationship with our customers.

I'll close this issue soon since it's something we're actively trying to improve, even though the issue itself isn't solved yet. Feel free to leave comments or open more issues to discuss this kind of improvements.

Cheers!
Marcos
Adyen

from adyen-php-api-library.

acampos1916 avatar acampos1916 commented on July 16, 2024

Hey @rvitaliy,

Sorry for the late response and thank you for this feedback, we'll take a look at this support discrepancy and keep you posted.

รngel Campos

from adyen-php-api-library.

msilvagarcia avatar msilvagarcia commented on July 16, 2024

That is a great idea, one that probably didn't pop in our heads. I am sharing this with the team and we will discuss if there's a way to do this while keeping our sanity.

Cheers!
Marcos
Adyen

from adyen-php-api-library.

Related Issues (20)

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.