1. Go to this page and download the library: Download xanweb/c5-web-link 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/ */
defined('C5_EXECUTE') or die('Access Denied.');
/*
* ----------------------------------------------------------------------------
* Load all composer autoload items.
* ----------------------------------------------------------------------------
*/
// If the checker class is already provided, likely we have been included in a separate composer project
if (!class_exists(\DoctrineXml\Checker::class)) {
// Otherwise, lets try to load composer ourselves
if (!@include(DIR_BASE_CORE . '/' . DIRNAME_VENDOR . '/autoload.php')) {
echo 'Third party libraries not installed. Make sure that composer has
use \Fig\Link\Link;
use \Fig\Link\Relations;
// Example with Font Preload
$link = (new Link(Relations::REL_PRELOAD, '/path/to/font.woff2'))
->withAttribute('as', 'font')
->withAttribute('type', 'font/woff2')
->withAttribute('crossorigin', 'anonymous');
app('web/link')->queueLink($link);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.