PHP code example of lenochware / pclib

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

    

lenochware / pclib example snippets



$app = new PCApp('test-app');

$form = new PCForm('tpl/form-template.tpl');
print $form;


$app = new PCApp('test-app');
$app->db = new PCDb('pdo_mysql://user:password@localhost/database-name');

$grid = new PCGrid('tpl/grid-template.tpl');
$grid->setQuery('SELECT * FROM products');
print $grid;