mistralys/microsite

There is no license information available for the latest version (dev-master) of this package.

dev-master 2020-06-25 19:51 UTC

This package is auto-updated.

Last update: 2024-11-05 13:08:10 UTC


README

Skeleton for custom PHP-based tools with a Bootstrap 4 web interface.

Microsite was developed specifically to have a common featureset for the kind of custom tools a PHP developer needs in his daily work. It can be installed via composer, and offers most features a web interface needs. It does not support user authentication: that's beyond the scope of the package.

Features

Howtos

Displaying media files

Add the DisplayMedia page in your site, like this:

<?php

namespace YourSiteNamespace;

class Page_DisplayMedia extends \Microsite\Page_DisplayMedia
{
}

This will allow using the site's getMediaURL method to generate an URL to view any media file on disk.

$imageFile = '/path/to/image.png';
$imageUrl = $site->getMediaURL($imageFile);

echo '<img src="'.$imageUrl.'">';