PHP code example of staticka / expresso

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

    

staticka / expresso example snippets

 bash
$ php -S localhost:3977 -t app/public
 php
// index.php

use Staticka\Expresso\Express;

// ...

$app = new Express;

$fields = array('name');
$fields[] = 'title';
$fields[] = 'link';
$fields[] = 'description';
$fields[] = 'plate';
$fields[] = 'category';
$fields[] = 'tags';

$app->setFields($fields);

// ...
 bash
$ php -S localhost:3977 -t app/public