PHP code example of jhyperf / pgsql

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

    

jhyperf / pgsql example snippets


php bin/hyperf.php vendor:publish jhyperf/pgsql


    /**
     * @Inject()
     * @var Pgsql
     */
    protected $pgsql;

    $this-pgsql->fetch("select * from company;",[]);