Coder Social home page Coder Social logo

Contribution guide? about validation HOT 6 CLOSED

siriusphp avatar siriusphp commented on June 23, 2024
Contribution guide?

from validation.

Comments (6)

adrianmiu avatar adrianmiu commented on June 23, 2024

@eclipxe13
Thank you for your involvement.

I was thinking about writting a version 3 that will break the compatibility with version 2 but I am swamped at the moment. To anwser your questions:

  1. The project started without support for 5.3. The library is used by sirius/upload which is used by Bolt CMS, which supported 5.3. Because the library didn't have support for 5.3 somebody took the code and created a different 5.3 version by only changing 2 lines of code. That was without submitting a PR. Anyway, I made the change in my library and the guy agreed to use mine instead
  2. I don't know what is (or should be) the difference between phpunit.xml and phpunit.dist.xml
  3. Yes, using pds/skeleton was on the list for version 3
  4. PHPCPD is on the list too
  5. I am open to the travis-ci changes if you explain the benefits

from validation.

pachico avatar pachico commented on June 23, 2024

Good morning, guys.
I see this library as a perfect tool to create PSR7 middleware validation layers, particularly for rest(ful|ish) apps.
The reason why I stopped using it was the bug that you @eclipxe13 seem to have solved.
If I may contribute to the answers:

  1. If you are going to do a new version, please bump minimum requirement to at least php 7.0 (latest versions of frameworks are going to do that too)
    2.phpunit, if no config is manually loaded, will try to load a config with names phpunit.xml or phpunit.dist.xml. Both do the same thing.
  2. I would rather use https://github.com/thephpleague/skeleton as skeleton, instead.

Cheers

from validation.

adrianmiu avatar adrianmiu commented on June 23, 2024

@pachico

  1. I don't see a reason to remove support for 5.6 for the next version... unless I will start working on it to far in the future.
  2. I like thephpleague skeleton better

from validation.

pachico avatar pachico commented on June 23, 2024

You're right, if 5.6 is still getting fixes, it's a valid version to code against.

from validation.

eclipxe13 avatar eclipxe13 commented on June 23, 2024

I think article contribute to the argument to support PHP 5.6: https://www.brandonsavage.net/version-php-package-support/

Anyhow. the package has not been maintained for a while, is it going to be any future on this project?

from validation.

adrianmiu avatar adrianmiu commented on June 23, 2024

@eclipxe13
I am using the package in all my projects (even Laravel projects) so it's here to stay. However I'm swamped with work and I couldn't find the time to work on it :(
I am open to pull-requests though

from validation.

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.