PHP code example of bangnokia / lina

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

    

bangnokia / lina example snippets


foreach (lina()->index('post') as $post) {
    echo $post->title;
}

$post = lina()->get('posts/2020-11-01-hello.md');

content/
    posts/
        2020-11-01-hello.md
    index.md
resources/
    views/
        index.blade.php
        post.blade.php
public/ 
    images/
    style.css