Library that offers Input Filtering based on Annotations for use with Objects. Check out 2.dev for 2.0 pre-release.

Overview

DMS Filter Component

This library provides a service that can be used to filter object values based on annotations

Latest Stable Version Total Downloads Latest Unstable Version License SensioLabsInsight Build StatusUnit Tests

Install

Use composer to add DMS\Filter to your app

composer require dms/dms-filter

Usage

Your Entity:

<?php

namespace App\Entity;

//Import Annotations
use DMS\Filter\Rules as Filter;

class User
{

    /**
    * @Filter\StripTags()
    * @Filter\Trim()
    * @Filter\StripNewlines()
    *
    * @var string
    */
    public $name;

    /**
    * @Filter\StripTags()
    * @Filter\Trim()
    * @Filter\StripNewlines()
    *
    * @var string
    */
    public $email;

}
?>

Filtering:

<?php
    //Get Doctrine Reader
    $reader = new Annotations\AnnotationReader();
    $reader->setEnableParsePhpImports(true);

    //Load AnnotationLoader
    $loader = new Mapping\Loader\AnnotationLoader($reader);
    $this->loader = $loader;

    //Get a MetadataFactory
    $metadataFactory = new Mapping\ClassMetadataFactory($loader);

    //Get a Filter
    $filter = new DMS\Filter\Filter($metadataFactory);


    //Get your Entity
    $user = new App\Entity\User();
    $user->name = "My <b>name</b>";
    $user->email = " [email protected]";

    //Filter you entity
    $filter->filter($user);

    echo $user->name; //"My name"
    echo $user->email; //"[email protected]"
?>

Full example: https://gist.github.com/1098352

Dependencies

This package relies on these external libraries:

  • Doctrine Annotations

Contributing

Feel free to send pull requests, just follow these guides:

  • Fork
  • Code
  • Test
    • Just create FilterTestCase and run phpunit
  • Submit PR

Credits

This library is inspired by the Symfony 2 Validator component and is meant to work alongside it.

Symfony 2 Validator: https://github.com/symfony/symfony/blob/master/src/Symfony/Component/Validator

Comments
  • Composer fails to clone this repo

    Composer fails to clone this repo

    Composer tries to get this repo as a requirement of dms-filter-bundle v1.1.1, but it fails to clone it:

    "require": {
        "dms/dms-filter-bundle":               "1.1.*",
    }
    
    [RuntimeException]                                                                           
      Failed to clone https://github.com/rdohms/DMS-Filter.git via git, https protocols, aborting. 
    
      - git://github.com/rdohms/DMS-Filter.git                                                     
        fatal: remote error:                                                                       
          Repository not found.                                                                    
    
      - https://github.com/rdohms/DMS-Filter.git                                                   
        fatal: Authentication failed 
    

    I am running composer install with the --prefer-source option on.

    I noticed that the repo name that is trying to clone is different from the one you can get directly from main page, so probably it's a typo somewhere, the problem is that I don't know where :P

    opened by raulduc 3
  • Bump doctrine/annotations from 1.13.2 to 1.14.1

    Bump doctrine/annotations from 1.13.2 to 1.14.1

    Bumps doctrine/annotations from 1.13.2 to 1.14.1.

    Release notes

    Sourced from doctrine/annotations's releases.

    1.14.1

    Release Notes for 1.14.1

    1.14.x bugfix release (patch)

    1.14.1

    • Total issues resolved: 0
    • Total pull requests resolved: 0
    • Total contributors: 0

    Bugfixes

    1.14.0

    Release Notes for 1.14.0

    1.14.0

    • Total issues resolved: 0
    • Total pull requests resolved: 1
    • Total contributors: 1

    enhancement

    1.13.3

    Release Notes for 1.13.3

    1.13.x bugfix release (patch)

    1.13.3

    • Total issues resolved: 0
    • Total pull requests resolved: 6
    • Total contributors: 4

    Bugfixes

    Improvements

    Internal

    ... (truncated)

    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    Dependencies 
    opened by dependabot[bot] 1
  • Bump doctrine/annotations from 1.13.2 to 1.14.0

    Bump doctrine/annotations from 1.13.2 to 1.14.0

    Bumps doctrine/annotations from 1.13.2 to 1.14.0.

    Release notes

    Sourced from doctrine/annotations's releases.

    1.14.0

    Release Notes for 1.14.0

    1.14.0

    • Total issues resolved: 0
    • Total pull requests resolved: 1
    • Total contributors: 1

    enhancement

    1.13.3

    Release Notes for 1.13.3

    1.13.x bugfix release (patch)

    1.13.3

    • Total issues resolved: 0
    • Total pull requests resolved: 6
    • Total contributors: 4

    Bugfixes

    Improvements

    Internal

    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    Dependencies 
    opened by dependabot[bot] 1
  • Bump phpunit/phpunit from 9.5.19 to 9.5.26

    Bump phpunit/phpunit from 9.5.19 to 9.5.26

    Bumps phpunit/phpunit from 9.5.19 to 9.5.26.

    Changelog

    Sourced from phpunit/phpunit's changelog.

    [9.5.26] - 2022-10-28

    Fixed

    • #5076: Test Runner does not warn about conflicting options

    [9.5.25] - 2022-09-25

    Added

    • #5042: Support Disjunctive Normal Form types

    Fixed

    • #4966: TestCase::assertSame() (and related exact comparisons) must compare float exactly

    [9.5.24] - 2022-08-30

    Added

    • #4931: Support null and false as stand-alone types
    • #4955: Support true as stand-alone type

    Fixed

    • #4913: Failed assert() should show a backtrace
    • #5012: Memory leak in ExceptionWrapper

    [9.5.23] - 2022-08-22

    Changed

    • #5033: Do not depend on phpspec/prophecy

    [9.5.22] - 2022-08-20

    Fixed

    • #5015: Ukraine banner unreadable on black background
    • #5020: PHPUnit 9 breaks loading of PSR-0/PEAR style classes
    • #5022: ExcludeList::addDirectory() does not work correctly

    [9.5.21] - 2022-06-19

    Fixed

    • #4950: False error on atMost() invocation rule without call
    • #4962: Ukraine banner unreadable on white background

    [9.5.20] - 2022-04-01

    ... (truncated)

    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    Dependencies 
    opened by dependabot[bot] 1
  • Bump phpunit/phpunit from 9.5.19 to 9.5.25

    Bump phpunit/phpunit from 9.5.19 to 9.5.25

    Bumps phpunit/phpunit from 9.5.19 to 9.5.25.

    Changelog

    Sourced from phpunit/phpunit's changelog.

    [9.5.25] - 2022-09-25

    Added

    • #5042: Support Disjunctive Normal Form types

    Fixed

    • #4966: TestCase::assertSame() (and related exact comparisons) must compare float exactly

    [9.5.24] - 2022-08-30

    Added

    • #4931: Support null and false as stand-alone types
    • #4955: Support true as stand-alone type

    Fixed

    • #4913: Failed assert() should show a backtrace
    • #5012: Memory leak in ExceptionWrapper

    [9.5.23] - 2022-08-22

    Changed

    • #5033: Do not depend on phpspec/prophecy

    [9.5.22] - 2022-08-20

    Fixed

    • #5015: Ukraine banner unreadable on black background
    • #5020: PHPUnit 9 breaks loading of PSR-0/PEAR style classes
    • #5022: ExcludeList::addDirectory() does not work correctly

    [9.5.21] - 2022-06-19

    Fixed

    • #4950: False error on atMost() invocation rule without call
    • #4962: Ukraine banner unreadable on white background

    [9.5.20] - 2022-04-01

    Fixed

    • #4938: Test Double code generator does not handle void return type declaration on __clone() methods
    • #4947: Test annotated with @coversNothing may lead to files missing from code coverage report
    Commits
    • 3e6f90c Prepare release
    • e4a88c5 Merge branch '8.5' into 9.5
    • 4fd448d Prepare release
    • 94fbab8 Merge branch '8.5' into 9.5
    • 0869792 Fix: Run 'tools/php-cs-fixer fix'
    • 2b5cb60 Enhancement: Enable and configure native_function_invocation fixer
    • 630725f Merge branch '8.5' into 9.5
    • 63bd717 Enhancement: Enable no_unneeded_import_alias fixer
    • 186775f Merge branch '8.5' into 9.5
    • fe26cfb Enhancement: Use no_trailing_comma_in_singleline instead of deprecated fixers
    • Additional commits viewable in compare view

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    Dependencies 
    opened by dependabot[bot] 1
  • Bump phpunit/phpunit from 9.5.19 to 9.5.24

    Bump phpunit/phpunit from 9.5.19 to 9.5.24

    Bumps phpunit/phpunit from 9.5.19 to 9.5.24.

    Changelog

    Sourced from phpunit/phpunit's changelog.

    [9.5.24] - 2022-08-30

    Added

    • #4931: Support null and false as stand-alone types
    • #4955: Support true as stand-alone type

    Fixed

    • #4913: Failed assert() should show a backtrace
    • #5012: Memory leak in ExceptionWrapper

    [9.5.23] - 2022-08-22

    Changed

    • #5033: Do not depend on phpspec/prophecy

    [9.5.22] - 2022-08-20

    Fixed

    • #5015: Ukraine banner unreadable on black background
    • #5020: PHPUnit 9 breaks loading of PSR-0/PEAR style classes
    • #5022: ExcludeList::addDirectory() does not work correctly

    [9.5.21] - 2022-06-19

    Fixed

    • #4950: False error on atMost() invocation rule without call
    • #4962: Ukraine banner unreadable on white background

    [9.5.20] - 2022-04-01

    Fixed

    • #4938: Test Double code generator does not handle void return type declaration on __clone() methods
    • #4947: Test annotated with @coversNothing may lead to files missing from code coverage report
    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    Dependencies 
    opened by dependabot[bot] 1
  • Bump phpunit/phpunit from 9.5.19 to 9.5.23

    Bump phpunit/phpunit from 9.5.19 to 9.5.23

    Bumps phpunit/phpunit from 9.5.19 to 9.5.23.

    Changelog

    Sourced from phpunit/phpunit's changelog.

    [9.5.23] - 2022-08-22

    Changed

    • #5033: Do not depend on phpspec/prophecy

    [9.5.22] - 2022-08-20

    Fixed

    • #5015: Ukraine banner unreadable on black background
    • #5020: PHPUnit 9 breaks loading of PSR-0/PEAR style classes
    • #5022: ExcludeList::addDirectory() does not work correctly

    [9.5.21] - 2022-06-19

    Fixed

    • #4950: False error on atMost() invocation rule without call
    • #4962: Ukraine banner unreadable on white background

    [9.5.20] - 2022-04-01

    Fixed

    • #4938: Test Double code generator does not handle void return type declaration on __clone() methods
    • #4947: Test annotated with @coversNothing may lead to files missing from code coverage report
    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    Dependencies 
    opened by dependabot[bot] 1
  • Bump phpunit/phpunit from 9.5.19 to 9.5.22

    Bump phpunit/phpunit from 9.5.19 to 9.5.22

    Bumps phpunit/phpunit from 9.5.19 to 9.5.22.

    Changelog

    Sourced from phpunit/phpunit's changelog.

    [9.5.22] - 2022-08-20

    Fixed

    • #5015: Ukraine banner unreadable on black background
    • #5020: PHPUnit 9 breaks loading of PSR-0/PEAR style classes
    • #5022: ExcludeList::addDirectory() does not work correctly

    [9.5.21] - 2022-06-19

    Fixed

    • #4950: False error on atMost() invocation rule without call
    • #4962: Ukraine banner unreadable on white background

    [9.5.20] - 2022-04-01

    Fixed

    • #4938: Test Double code generator does not handle void return type declaration on __clone() methods
    • #4947: Test annotated with @coversNothing may lead to files missing from code coverage report
    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    Dependencies 
    opened by dependabot[bot] 1
  • Bump laminas/laminas-zendframework-bridge from 1.3.0 to 1.6.0

    Bump laminas/laminas-zendframework-bridge from 1.3.0 to 1.6.0

    Bumps laminas/laminas-zendframework-bridge from 1.3.0 to 1.6.0.

    Release notes

    Sourced from laminas/laminas-zendframework-bridge's releases.

    1.6.0

    Release Notes for 1.6.0

    Feature release (minor)

    1.6.0

    • Total issues resolved: 1
    • Total pull requests resolved: 3
    • Total contributors: 2

    Documentation,Enhancement

    Enhancement

    Bug

    1.5.0

    Release Notes for 1.5.0

    Feature release (minor)

    1.5.0

    • Total issues resolved: 0
    • Total pull requests resolved: 2
    • Total contributors: 2

    Enhancement

    Bug

    1.4.1

    Release Notes for 1.4.1

    1.4.x bugfix release (patch)

    1.4.1

    • Total issues resolved: 1

    ... (truncated)

    Commits
    • d74d2da Merge pull request #97 from weierophinney/feature/configure-replacements
    • f53849b Merge pull request #98 from weierophinney/feature/security-only
    • 73f9221 docs: mark this package security-only
    • a1479a9 docs: detail how new configuration works
    • ed68ef0 feat: allow configuring the ConfigPostProcessor
    • 581d11f Message against the war, in Russian and English
    • 7f04939 Merge pull request #92 from ghostwriter/feature/renovate
    • d207d1f Update psalm-baseline.xml
    • fd24145 Update psalm.xml.dist
    • cf89f08 Update Autoloader.php
    • Additional commits viewable in compare view

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    Dependencies 
    opened by dependabot[bot] 1
  • Bump doctrine/annotations from 1.13.2 to 1.13.3

    Bump doctrine/annotations from 1.13.2 to 1.13.3

    Bumps doctrine/annotations from 1.13.2 to 1.13.3.

    Release notes

    Sourced from doctrine/annotations's releases.

    1.13.3

    Release Notes for 1.13.3

    1.13.x bugfix release (patch)

    1.13.3

    • Total issues resolved: 0
    • Total pull requests resolved: 6
    • Total contributors: 4

    Bugfixes

    Improvements

    Internal

    Commits
    • 648b034 Merge pull request #441 from greg0ire/update-workflows
    • 4672060 Update PHPStan
    • 06a3f83 Add Composer Lint workflow
    • 32305b9 Use latest versions of shared workflows
    • e7e2aa9 Merge pull request #439 from gnutix/patch-1
    • 2f24477 Merge pull request #440 from greg0ire/allow-plugins
    • 47fb9f9 Whitelist necessary plugin
    • 296911c Ignore PHPStan annotation @​readonly
    • 6c5e2a6 Merge pull request #438 from 7ochem/fix-catch-and-process-instantiation-errors
    • 065fad5 Catch and process errors that occure during annotation instantiation
    • Additional commits viewable in compare view

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    Dependencies 
    opened by dependabot[bot] 1
  • Bump phpunit/phpunit from 9.5.19 to 9.5.21

    Bump phpunit/phpunit from 9.5.19 to 9.5.21

    Bumps phpunit/phpunit from 9.5.19 to 9.5.21.

    Changelog

    Sourced from phpunit/phpunit's changelog.

    [9.5.21] - 2022-06-19

    Fixed

    • #4950: False error on atMost() invocation rule without call
    • #4962: Ukraine banner unreadable on white background

    [9.5.20] - 2022-04-01

    Fixed

    • #4938: Test Double code generator does not handle void return type declaration on __clone() methods
    • #4947: Test annotated with @coversNothing may lead to files missing from code coverage report
    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    Dependencies 
    opened by dependabot[bot] 1
  • Bump doctrine/annotations from 1.13.2 to 2.0.0

    Bump doctrine/annotations from 1.13.2 to 2.0.0

    Bumps doctrine/annotations from 1.13.2 to 2.0.0.

    Release notes

    Sourced from doctrine/annotations's releases.

    2.0.0

    Release Notes for 2.0.0

    Backwards incompatible release (major)

    2.0.0

    • Total issues resolved: 0
    • Total pull requests resolved: 6
    • Total contributors: 2

    BC-Break

    1.14.2

    Release Notes for 1.14.2

    1.14.x bugfix release (patch)

    1.14.2

    1.14.1

    Release Notes for 1.14.1

    1.14.x bugfix release (patch)

    1.14.1

    • Total issues resolved: 0
    • Total pull requests resolved: 0
    • Total contributors: 0

    Bugfixes

    1.14.0

    ... (truncated)

    Upgrade guide

    Sourced from doctrine/annotations's upgrade guide.

    Upgrade from 1.0.x to 2.0.x

    • The NamedArgumentConstructorAnnotation has been removed. Use the @NamedArgumentConstructor annotation instead.
    • SimpleAnnotationReader has been removed.
    • DocLexer::peek() and DocLexer::glimpse now return Doctrine\Common\Lexer\Token objects. When using doctrine/lexer 2, these implement ArrayAccess as a way for you to still be able to treat them as arrays in some ways.
    • CachedReader and FileCacheReader have been removed.
    • AnnotationRegistry methods related to registering annotations instead of using autoloading have been removed.
    • Parameter type declarations have been added to all methods of all classes. If you have classes inheriting from classes inside this package, you should add parameter and return type declarations.
    • Support for PHP < 7.2 has been removed
    • PhpParser::parseClass() has been removed. Use PhpParser::parseUseStatements() instead.
    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    Dependencies 
    opened by dependabot[bot] 0
  • Bump phpunit/phpunit from 9.5.19 to 9.5.27

    Bump phpunit/phpunit from 9.5.19 to 9.5.27

    Bumps phpunit/phpunit from 9.5.19 to 9.5.27.

    Changelog

    Sourced from phpunit/phpunit's changelog.

    [9.5.27] - 2022-MM-DD

    Fixed

    • #5113: PHP error instead of PHPUnit error when trying to create test double for readonly class

    [9.5.26] - 2022-10-28

    Fixed

    • #5076: Test Runner does not warn about conflicting options

    [9.5.25] - 2022-09-25

    Added

    • #5042: Support Disjunctive Normal Form types

    Fixed

    • #4966: TestCase::assertSame() (and related exact comparisons) must compare float exactly

    [9.5.24] - 2022-08-30

    Added

    • #4931: Support null and false as stand-alone types
    • #4955: Support true as stand-alone type

    Fixed

    • #4913: Failed assert() should show a backtrace
    • #5012: Memory leak in ExceptionWrapper

    [9.5.23] - 2022-08-22

    Changed

    • #5033: Do not depend on phpspec/prophecy

    [9.5.22] - 2022-08-20

    Fixed

    • #5015: Ukraine banner unreadable on black background
    • #5020: PHPUnit 9 breaks loading of PSR-0/PEAR style classes
    • #5022: ExcludeList::addDirectory() does not work correctly

    [9.5.21] - 2022-06-19

    ... (truncated)

    Commits
    • a2bc7ff Prepare release
    • 1b09a9a Exclude source file with PHP 8.2 syntax
    • ac259bc Update Psalm baseline
    • 9e0968d Update ChangeLog
    • 8635ff9 Skip test on PHP < 8.2
    • faa1515 Implement logic to blocks readonly classes to be doubled.
    • 5c6e811 Merge branch '8.5' into 9.5
    • cc19735 Update tools
    • c5d3542 Assert that we have a DOMElement here
    • a653302 Document collected/iterated type using Psalm template
    • Additional commits viewable in compare view

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    Dependencies 
    opened by dependabot[bot] 0
  • Bump laminas/laminas-zendframework-bridge from 1.3.0 to 1.6.1

    Bump laminas/laminas-zendframework-bridge from 1.3.0 to 1.6.1

    Bumps laminas/laminas-zendframework-bridge from 1.3.0 to 1.6.1.

    Release notes

    Sourced from laminas/laminas-zendframework-bridge's releases.

    1.6.1

    Release Notes for 1.6.1

    1.6.x bugfix release (patch)

    1.6.1

    • Total issues resolved: 0
    • Total pull requests resolved: 1
    • Total contributors: 1

    Bug

    1.6.0

    Release Notes for 1.6.0

    Feature release (minor)

    1.6.0

    • Total issues resolved: 1
    • Total pull requests resolved: 3
    • Total contributors: 2

    Documentation,Enhancement

    Enhancement

    Bug

    1.5.0

    Release Notes for 1.5.0

    Feature release (minor)

    1.5.0

    • Total issues resolved: 0
    • Total pull requests resolved: 2
    • Total contributors: 2

    Enhancement

    ... (truncated)

    Commits
    • e112dd2 Merge pull request #102 from Xerkus/hotfix/recursive-performance-drop
    • 07d4ce7 Extract config processing from __invoke()
    • d74d2da Merge pull request #97 from weierophinney/feature/configure-replacements
    • f53849b Merge pull request #98 from weierophinney/feature/security-only
    • 73f9221 docs: mark this package security-only
    • a1479a9 docs: detail how new configuration works
    • ed68ef0 feat: allow configuring the ConfigPostProcessor
    • 581d11f Message against the war, in Russian and English
    • 7f04939 Merge pull request #92 from ghostwriter/feature/renovate
    • d207d1f Update psalm-baseline.xml
    • Additional commits viewable in compare view

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    Dependencies 
    opened by dependabot[bot] 0
  • Bump doctrine/cache from 1.12.1 to 2.2.0

    Bump doctrine/cache from 1.12.1 to 2.2.0

    Bumps doctrine/cache from 1.12.1 to 2.2.0.

    Release notes

    Sourced from doctrine/cache's releases.

    2.2.0

    Release Notes for 2.2.0

    Feature release (minor)

    2.2.0

    • Total issues resolved: 0
    • Total pull requests resolved: 2
    • Total contributors: 2

    Enhancement

    CI

    Documentation

    2.1.1

    Release Notes for 2.1.1

    2.1.x bugfix release (patch)

    2.1.1

    Bug

    2.1.0

    Release Notes for 2.1.0

    Feature release (minor)

    2.1.0

    • Total issues resolved: 0
    • Total pull requests resolved: 2

    ... (truncated)

    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    Dependencies 
    opened by dependabot[bot] 0
  • Bump dms/coding-standard from 8.0.1 to 9.0.0

    Bump dms/coding-standard from 8.0.1 to 9.0.0

    Bumps dms/coding-standard from 8.0.1 to 9.0.0.

    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    Dependencies 
    opened by dependabot[bot] 0
  • Rafactor to PHP 7.4

    Rafactor to PHP 7.4

    Time to modernize this app and clean up.

    • [x] Bump to 7.4
    • [x] Modernize Code
    • [x] Switch to Laminas
    • [x] Rename Zend class to Laminas (BC Break)
    • [ ] Add phpstan
    • [x] Add DMS code style
    • [x] Port to GH Actions
    BC-Break Refactoring 
    opened by rdohms 0
Releases(v4.0.1)
Owner
Rafael Dohms
A graduated Computer Engineer, Rafael Dohms has vast experience in the PHP ecosystem as a Developer, Speaker and Contributor.
Rafael Dohms
A simple filtering library for PHP

Filterus - A flexible PHP 5.3 filter package Filter Methods: Each filter class has two primary methods: $filter->filter($var) - returns a modified ver

Anthony Ferrara 451 Dec 27, 2022
laminas-password-validator provides a validator for character-set based input validation.

laminas-password-validator laminas-password-validator provides a validator for character-set based input validation. Installation composer require pra

null 1 Mar 8, 2022
Abstracts HTTP request input handling, providing an easy interface for data hydration and validation

Linio Input Linio Input is yet another component of the Linio Framework. It aims to abstract HTTP request input handling, allowing a seamless integrat

Linio 41 Dec 12, 2021
Validate and sanitize arrays and objects.

Aura.Filter This package provides tools to validate and sanitize objects and arrays. Foreword Installation This library requires PHP 5.4 or later; we

Aura for PHP 153 Jan 2, 2023
This package provides tools to validate and sanitize objects and arrays.

Aura.Filter This package provides tools to validate and sanitize objects and arrays. Foreword Installation This library requires PHP 7.2 or later; we

Aura for PHP 153 Jan 2, 2023
Valitron is a simple, elegant, stand-alone validation library with NO dependencies

Valitron: Easy Validation That Doesn't Suck Valitron is a simple, minimal and elegant stand-alone validation library with NO dependencies. Valitron us

Vance Lucas 1.5k Dec 30, 2022
PHP library - Validators for standards from ISO, International Finance, Public Administrations, GS1, Manufacturing Industry, Phone numbers & Zipcodes for many countries

IsoCodes PHP library - Validators for standards from ISO, International Finance, Public Administrations, GS1, Book Industry, Phone numbers & Zipcodes

Ronan Guilloux 767 Jan 2, 2023
[READ-ONLY] Validation library from CakePHP. This repo is a split of the main code that can be found in https://github.com/cakephp/cakephp

CakePHP Validation Library The validation library in CakePHP provides features to build validators that can validate arbitrary arrays of data with eas

CakePHP 39 Oct 11, 2022
Light and extendable schema validation library

Light PHP validation library For everyone who uses MongoDB or other NoSQL solution and cares about what client sends to his/her database and looking f

Alexander Serkin 43 Sep 28, 2022
PHP library to validate and convert ISBNs and EANs

biblys/isbn biblys/isbn can be used to: validate a string against the ISBN-10, ISBN-13 and EAN-13 formats convert an ISBN to ISBN-10, ISBN-13, EAN-13

Biblys 48 Apr 10, 2022
PHP library for ArCaptcha. This package supports PHP 7.3+.

PHP ArCaptcha Library PHP library for ArCaptcha. This package supports PHP 7.3+. List of contents PHP ArCaptcha Library List of contents Installation

Mohammad Abbasi 10 Aug 12, 2022
PHP library to validate and format license plate numbers.

License plate validator and formatter CI Status Lint Coverage Tests This library can be used to validate and format license plate numbers. Countries s

Automex.website 1 Oct 19, 2022
An extensible validation library for your data with sane defaults.

Hird Hirds, also known as housecarls, was a gathering of hirdmen, who functioned as the king's personal guards during the viking age and the early mid

Asko Nõmm 13 Apr 23, 2022
PHP Email address validator - A library for validating emails against several RFC.

EmailValidator A library for validating emails against several RFC. Supported RFCs This library aims to support RFCs: 5321, 5322, 6530, 6531, 6532, 10

Eduardo Gulias Davis 10.7k Jun 13, 2022
FyreValidation is a free, open-source validation library for PHP.

FyreValidation FyreValidation is a free, validation library for PHP. Table Of Contents Installation Validators Rules Error Messages Installation Using

Elusive 0 Jan 15, 2022
A re-write of rakit/validation, a standalone validation library inspired by Laravel Validation

Somnambulist Validation This is a re-write of rakit/validation, a standalone validator like Laravel Validation. In keeping with rakit/validation, this

Somnambulist Tech 18 Dec 14, 2022
Library that offers Input Filtering based on Annotations for use with Objects. Check out 2.dev for 2.0 pre-release.

DMS Filter Component This library provides a service that can be used to filter object values based on annotations Install Use composer to add DMS\Fil

Rafael Dohms 89 Nov 28, 2022
Lightweight and feature-rich PHP validation and filtering library. Support scene grouping, pre-filtering, array checking, custom validators, custom messages. 轻量且功能丰富的PHP验证、过滤库。支持场景分组,前置过滤,数组检查,自定义验证器,自定义消息。

PHP Validate 一个简洁小巧且功能完善的php验证、过滤库。 简单方便,支持添加自定义验证器 支持前置验证检查, 自定义如何判断非空 支持将规则按场景进行分组设置。或者部分验证 支持在进行验证前对值使用过滤器进行净化过滤内置过滤器 支持在进行验证前置处理和后置处理独立验证处理 支持自定义每

Inhere 246 Jan 5, 2023
Laravel eCommerce Pre Order Extension allows the customers and guest users to pre-order the upcoming product and out of stock products.

Introduction Bagisto Pre-order add-on allows the customer to pre-order products which are not yet available at the online store. With the help of Bagi

Bagisto 3 May 31, 2022
:tada: Release 2.0 is released! Very fast HTTP router for PHP 7.1+ (incl. PHP8 with attributes) based on PSR-7 and PSR-15 with support for annotations and OpenApi (Swagger)

HTTP router for PHP 7.1+ (incl. PHP 8 with attributes) based on PSR-7 and PSR-15 with support for annotations and OpenApi (Swagger) Installation compo

Sunrise // PHP 151 Jan 5, 2023