valitron | Valitron is a simple, elegant, stand-alone validation library with NO dependencies | Validation library

 by   vlucas PHP Version: v1.4.11 License: BSD-3-Clause

kandi X-RAY | valitron Summary

kandi X-RAY | valitron Summary

valitron is a PHP library typically used in Utilities, Validation applications. valitron has no bugs, it has no vulnerabilities, it has a Permissive License and it has medium support. You can download it from GitHub.

Valitron is a simple, minimal and elegant stand-alone validation library with NO dependencies. Valitron uses simple, straightforward validation methods with a focus on readable and concise syntax. Valitron is the simple and pragmatic validation library you've been looking for.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              valitron has a medium active ecosystem.
              It has 1518 star(s) with 253 fork(s). There are 60 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 38 open issues and 129 have been closed. On average issues are closed in 283 days. There are 10 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of valitron is v1.4.11

            kandi-Quality Quality

              valitron has 0 bugs and 0 code smells.

            kandi-Security Security

              valitron has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              valitron code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              valitron is licensed under the BSD-3-Clause License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              valitron releases are available to install and integrate.
              Installation instructions, examples and code snippets are available.
              valitron saves you 806 person hours of effort in developing the same functionality from scratch.
              It has 1860 lines of code, 77 functions and 33 files.
              It has high code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed valitron and discovered the below as its top functions. This is intended to give you an instant insight into valitron implemented functionality, and help decide if they suit your requirements.
            • Validate a credit card
            • Add a validation rule
            • Validate the values .
            • Get a part of the data
            • Check if a field is required
            • Validate that a field is required
            • Validate that a string contains a value .
            • Add an error message
            • Map field rules
            • Check and set error message
            Get all kandi verified functions for this library.

            valitron Key Features

            No Key Features are available at this moment for valitron.

            valitron Examples and Code Snippets

            No Code Snippets are available at this moment for valitron.

            Community Discussions

            QUESTION

            Can't add custom rule when using the vlucas/valitron form validation package
            Asked 2020-May-12 at 18:40

            I've been trying to add a custom rule to the Valitron validator, but without success. The documentation is here

            My own custom rule didn't work, so I tried using the simplest possible implementation with the actual example from the documentation, and the rule still doesn't trigger. Here is what I have:

            ...

            ANSWER

            Answered 2020-May-12 at 18:40

            Okay, I figured it out. It seems a bit obvious in retrospect, but I've been working on this for a couple of days. The problem is that 'other_building' is blank, and is allowed to be blank (e.g. not required). Therefore the validator is passing over it and never checking the rule. If you put in a non-blank value for 'other_building', it works. It also works if you leave it blank, but add a rule that 'other_building' is required. If you don't want the field to be required, but you also want the rule to run every time 'other_building' is in the data, even if the value is blank, you need to add an 'optional' rule, which states that "Value does not need to be included in data array. If it is however, it must pass validation."

            So this works:

            Source https://stackoverflow.com/questions/61757124

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install valitron

            Valitron uses Composer to install and update:. The examples below use PHP 5.4 syntax, but Valitron works on PHP 5.3+.

            Support

            Fork itCreate your feature branch (git checkout -b my-new-feature)Make your changesRun the tests, adding new ones for your own code if necessary (phpunit)Commit your changes (git commit -am 'Added some feature')Push to the branch (git push origin my-new-feature)Create new Pull RequestPat yourself on the back for being so awesome
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/vlucas/valitron.git

          • CLI

            gh repo clone vlucas/valitron

          • sshUrl

            git@github.com:vlucas/valitron.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Reuse Pre-built Kits with valitron

            Consider Popular Validation Libraries

            validator.js

            by validatorjs

            joi

            by sideway

            yup

            by jquense

            jquery-validation

            by jquery-validation

            validator

            by go-playground

            Try Top Libraries by vlucas

            phpdotenv

            by vlucasPHP

            frisby

            by vlucasJavaScript

            bulletphp

            by vlucasPHP

            phpDataMapper

            by vlucasPHP

            pikirasa

            by vlucasPHP