setTitle('My Page Title'); $page->setMetaDescription('This is my page description.'); $page->setMetaKeywords(['PHP', 'Web Development']); $page->setCanonicalUrl('http://example.com/my-page'); echo $page->getTitle(); // Outputs "My Page Title" echo $page->getMetaTags(); // Outputs " // echo $page->getCanonicalUrl(); // Outputs "http://example.com/my-page" ?>
addCss('/path/to/my-styles.css'); $page->addJs('/path/to/my-script.js'); echo $page->getCss(); // Outputs " echo $page->getJs(); // Outputs "" ?>This code example showcases how the Page instance can be used to add external CSS and JavaScript files to the web page. The Page package library can be determined as the package library that provides the Page class.