PHP code example of tareqas / psym

1. Go to this page and download the library: Download tareqas/psym 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/ */

    

tareqas / psym example snippets


function html(...$vars): void

html($var, [
    'nestedLevel' => -1, # or 'level' - how deep it should go to instantiate doctrine proxy object
    'collectionSize' => 1, # or 'size' - cut the Doctrine association collection to this specific size
    'maxString' => -1 # cut the overlong string to this specific size
])
# -1 implies no limit.

function table(string $table, ?string $alias = null): EntityRepository|QueryBuilder|void

function sql(string $sql, array $params = []): array|void

function dql(string $dql, array $params = []): array|void