PHP code example of vaened / php-criteria-language

1. Go to this page and download the library: Download vaened/php-criteria-language library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

vaened / php-criteria-language example snippets


Statements::of([
    Statement::that('author', FilterOperator::StartsWith, 'enea'),
    Statement::that('created', FilterOperator::Between, [
        new DateTimeImmutable('2020-01-01'),
        new DateTimeImmutable('2023-06-30T23:59:59.999999')
    ]),
    Statement::that('languages', FilterOperator::In, ['PHP', 'JAVA']),
    Statement::that('visibility', FilterOperator::NotIn, ['private', 'archived']),
]);
bash
composer 

[author]=enea% & 
[created]={2020, 202306} & 
[languages]=[PHP, JAVA]&
[visibility]=![private, archived] &