PHP code example of slendium / slendium-static
1. Go to this page and download the library: Download slendium/slendium-static 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/ */
slendium / slendium-static example snippets
return new ConfigsBuilder()
->setTitleTemplate(static fn($localTitle) => "$localTitle - My Website")
->setBaseSectionProvider(new ArraySectionProvider([
SectionNames::HEADER => new HtmlSection('Enter your header-HTML here'),
SectionNames::FOOTER => new HtmlSection('Enter your footer-HTML here'),
]))
->build();