1. Go to this page and download the library: Download cortezvini97/orion 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/ */
cortezvini97 / orion example snippets
use Orion\Orion;
// Configuração básica
$orion = new Orion([
'viewsPath' => 'caminho/para/templates',
'functionsPath' => 'caminho/para/cache',
// outras configurações
]);
// Renderizar um template com dados
$orion->render('home', [
'title' => 'Página Inicial',
'user' => $user,
'items' => $items
]);
<!-- child.orion.php -->
@extends('layouts.master')
@section('title', 'Página de Exemplo')
@section('content')
<p>Este é o conteúdo da página</p>
@endsection