mistralys / microsite
Installs: 3
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/mistralys/microsite
Requires
- components/jquery: ~3
- fortawesome/font-awesome: ~4
- mistralys/application-localization: dev-master
- mistralys/application-utils: dev-master
- twbs/bootstrap: ~4
Requires (Dev)
- phpunit/phpunit: 8.2.5
This package is auto-updated.
Last update: 2025-10-05 14:57:00 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
- Bootstrap 4 interface
- Integrated common UI elements like DataGrids
- Helper classes for most tasks via mistralys/application-utils
- Localization via mistralys/application-localization
- Form handling via the extended mistralys/HTML_QuickForm2
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.'">';