PHP code example of rguezque / skeleton-project-katya-router
1. Go to this page and download the library: Download rguezque/skeleton-project-katya-router 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/ */
rguezque / skeleton-project-katya-router example snippets
use Project\Core\i18n;
// En este caso se cargara el idioma inglés en caso de que no se pueda detectar el idioma nativo del navegador web
i18n::configure(lang: 'en', path: __DIR__.'/i18n');
<!DOCTYPE html>
<html lang="es">
<head>
<title><?= i18n('title');
Environment::register(); // O explicitamente Environment::register('production')
Environment::setLogPath(dirname(__DIR__) . '/logs');