PHP code example of peterstollenwerk / auf-grid

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

    

peterstollenwerk / auf-grid example snippets


<html>
  <head>
    <?= css('assets/css/auf-grid.css') 


use auf\Grid;

$grid = new Grid();

$columnSpan = $grid->getColumnSpanByStartAndEndColumnClasses('grid__column--start-1', 'grid__column--end-3');

$spanWidthInPx = $grid->getColumnSpanWidthInPx(3);


$grid = new Grid($site->grid_column_presets()->toStructure());

$columnSpan = $grid->getColumnSpanByPreset('grid__column--aside');


<body class="grid">
  <h1><?= $page->title()