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 string $name;

    /**
    * @Filter\StripTags()
    * @Filter\Trim()
    * @Filter\StripNewlines()
    *
    * @var string
    */
    public string $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
Eloquent Befriended brings social media-like features like following, blocking and filtering content based on following or blocked models.

Laravel Befriended Eloquent Befriended brings social media-like features like following, blocking and filtering content based on following or blocked

Renoki Co. 720 Jan 3, 2023
A simple laravel state machine to handle model transitions, based on a pre-defined list of rules

A simple state machine that allows transitioning model states based on pre-defined rules. Installation You can install the package via composer: compo

Jack Mollart 18 Apr 2, 2022
Generate Data Transfer Objects directly from JSON objects

Json 2 DTO Spatie's Data Transfer Object library is awesome, but typing out DTOs can quickly become a chore. Inspired by Json2Typescript style tools,

null 111 Jan 3, 2023
A TALL-based Laravel Livewire component to replace the (multiple) select HTML input form with beautiful cards.

TALL multiselect cards A TALL-based Laravel Livewire component to replace the (multiple) select HTML input form with beautiful cards. Table of content

Frederic Habich 19 Dec 14, 2022
Advanced Laravel models filtering capabilities

Advanced Laravel models filtering capabilities Installation You can install the package via composer: composer require pricecurrent/laravel-eloquent-f

Andrew Malinnikov 162 Oct 30, 2022
A base API controller for Laravel that gives sorting, filtering, eager loading and pagination for your resources

Bruno Introduction A Laravel base controller class and a trait that will enable to add filtering, sorting, eager loading and pagination to your resour

Esben Petersen 165 Sep 16, 2022
A simple and modern approach to stream filtering in PHP

clue/stream-filter A simple and modern approach to stream filtering in PHP Table of contents Why? Support us Usage append() prepend() fun() remove() I

Christian Lück 1.5k Dec 29, 2022
In Laravel, we commonly face the problem of adding repetitive filtering code, this package will address this problem.

Filterable In Laravel, we commonly face the problem of adding repetitive filtering code, sorting and search as well this package will address this pro

Zoran Shefot Bogoevski 1 Jun 21, 2022
This project uses dflydev/dot-access-data to provide simple output filtering for cli applications.

FilterViaDotAccessData This project uses dflydev/dot-access-data to provide simple output filtering for applications built with annotated-command / Ro

Consolidation 44 Jul 19, 2022
For using Laravel with a pre-existing MySQL Database

MySQL to Laravel This is a script to help with mapping an existing MySQL database to a new Laravel build. Place the script in the public folder of you

Chad Haney 17 Nov 29, 2022
Invalidate caches and achieve high hitrate with readable and maintainable annotations

Purgatory Purgatory is an extension which makes it possible for Symfony applications to handle enormous load using minimal infrastructure. Infrastruct

null 45 Nov 30, 2022
A collection of pre-made simple Laravel Blade form components.

Laravel Form Components Library A collection of pre-made simple Laravel Blade form components. Installation & setup You can install the package via co

null 3 Oct 5, 2022
Git pre-commit hook for Laravel Pint

Laravel Pint githook Git pre-commit hook for Laravel Pint Automatically formats and saves code on commit You no longer need to run the ./vendor/bin/pi

dsoloview 7 Dec 10, 2022
Laravel Livewire (TALL-stack) form generator with realtime validation, file uploads, array fields, blade form input components and more.

TALL-stack form generator Laravel Livewire, Tailwind forms with auto-generated views. Support Contributions Features This is not an admin panel genera

TinaH 622 Jan 2, 2023
Html-sanitizer - The HtmlSanitizer component provides an object-oriented API to sanitize untrusted HTML input for safe insertion into a document's DOM.

HtmlSanitizer Component The HtmlSanitizer component provides an object-oriented API to sanitize untrusted HTML input for safe insertion into a documen

Symfony 201 Dec 23, 2022
Keyword Generator Tool helps you discover keyword opportunities related to your query input.

This plugin simply helps you discover keyword opportunities related to your query input. Installation Download the zip file of the repository or clone

WP Refers 1 May 3, 2022
Validate your input data in a simple way, an easy way and right way. no framework required. For simple or large. project.

wepesi_validation this module will help to do your own input validation from http request POST or GET. INTEGRATION The integration is the simple thing

Boss 4 Dec 17, 2022
A full-stack framework for Laravel that takes the pain out of building dynamic UIs.

A full-stack framework for Laravel that takes the pain out of building dynamic UIs.

Livewire 17.7k Jan 1, 2023
🧙‍♀️ Arcanist takes the pain out of building multi-step form wizards in Laravel.

Installation Arcanist requires PHP 8 and Laravel 8. composer require laravel-arcanist/arcanist Documentation You can find the full documentation here

Arcanist 378 Jan 3, 2023