{"id":24540667,"url":"https://github.com/mistralys/microsite","last_synced_at":"2025-03-16T05:43:25.553Z","repository":{"id":57017608,"uuid":"209070956","full_name":"Mistralys/microsite","owner":"Mistralys","description":"Base structure for quickly deployable micro websites","archived":false,"fork":false,"pushed_at":"2023-01-05T08:52:15.000Z","size":78,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-22T18:14:35.700Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Mistralys.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-09-17T14:07:34.000Z","updated_at":"2021-01-03T17:16:54.000Z","dependencies_parsed_at":"2023-02-03T21:31:34.173Z","dependency_job_id":null,"html_url":"https://github.com/Mistralys/microsite","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mistralys%2Fmicrosite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mistralys%2Fmicrosite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mistralys%2Fmicrosite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mistralys%2Fmicrosite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Mistralys","download_url":"https://codeload.github.com/Mistralys/microsite/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243830914,"owners_count":20354850,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-01-22T18:14:37.983Z","updated_at":"2025-03-16T05:43:25.530Z","avatar_url":"https://github.com/Mistralys.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Microsite\n\nSkeleton for custom PHP-based tools with a Bootstrap 4 web interface.\n\nMicrosite 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.\n\n## Features\n\n* Bootstrap 4 interface\n* Integrated common UI elements like DataGrids\n* Helper classes for most tasks via [mistralys/application-utils](https://github.com/Mistralys/application-utils)\n* Localization via [mistralys/application-localization](https://github.com/Mistralys/application-localization)\n* Form handling via the extended [mistralys/HTML_QuickForm2](https://github.com/Mistralys/HTML_QuickForm2)\n\n## Howtos\n\n### Displaying media files\n\nAdd the `DisplayMedia` page in your site, like this:\n\n```php\n\u003c?php\n\nnamespace YourSiteNamespace;\n\nclass Page_DisplayMedia extends \\Microsite\\Page_DisplayMedia\n{\n}\n```\n\nThis will allow using the site's `getMediaURL` method to generate an URL to view any media file on disk.\n\n```php\n$imageFile = '/path/to/image.png';\n$imageUrl = $site-\u003egetMediaURL($imageFile);\n\necho '\u003cimg src=\"'.$imageUrl.'\"\u003e';\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmistralys%2Fmicrosite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmistralys%2Fmicrosite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmistralys%2Fmicrosite/lists"}