Skip to content

PHP object method queries

Latest

Choose a tag to compare

@g105b g105b released this 09 Dec 22:32
73f8cb4

New Features:

  • Added PhpQuery and PhpQueryClassNotFoundException: Supports PHP-based query definitions.
  • Added setAppNamespace in multiple files: Enables custom namespace handling for queries.
  • Extended the Query abstract class with binding-related methods.

Refactoring and Enhancements:

  • Modified QueryCollection to handle both directory and class-based query containers.
  • Simplified logic in QueryFactory to include PHP-based query handling.
  • Adjusted SqlQuery and QueryCollection implementations for better compatibility.

Testing Enhancements:

  • Added tests to validate the new features in Database, including QueryCollectionClass and the handling of PHP queries/classes in QueryFactory.

Dependency Updates (composer.lock):

  • Updated multiple dependencies, including myclabs/deep-copy, phpstan/phpstan, phpunit/phpunit, squizlabs/php_codesniffer, and Symfony components.

CI Workflow (ci.yml):

  • Added support for pull_request triggers and updated permissions for better security.
  • Excluded .git directory from the build archive.
  • Updated the PHP Mess Detector to version v2.