PHP code example of serixa / framework

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

    

serixa / framework example snippets


use Serixa\Component\Button;
use Serixa\Component\Column;
use Serixa\Component\Text;
use Serixa\Document\Document;
use Serixa\Document\DocumentRenderer;

echo DocumentRenderer::make()->render(
    Document::make()
        ->title('Hello SERIXA')
        ->body(
            Column::make(
                Text::make('Welcome'),
                Button::make('Get started')->primary(),
            ),
        ),
);
bash
composer install
composer qa
php examples/basic.php