Giter VIP home page Giter VIP logo

jekuer / php-microsite-boilerplate Goto Github PK

View Code? Open in Web Editor NEW
182.0 4.0 35.0 1.36 MB

An extremely simple and lightweight PHP framework/boilerplate to spin-up microsites at high speed. Optimized for Performance, Security, SEO, TailwindCSS, and Directus CMS.

Home Page: https://phpmicrosite.jenskuerschner.de/

License: GNU General Public License v3.0

PHP 72.81% CSS 4.88% JavaScript 21.35% Shell 0.50% Hack 0.46%
php php-framework css html5 boilerplate pwa microsite template php-microsite html5-boilerplate

php-microsite-boilerplate's People

Contributors

dependabot[bot] avatar jekuer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

php-microsite-boilerplate's Issues

Add Gettext functionality

I'm submitting a ...

  • bug report
  • feature request
  • other (Please do not submit support requests here (below))

Enhance internationalization by adding Gettext functionality.
This way, one could decide, whethere he/she wants to use different pages per language or use the same page with have a translated .mo file. The latter one makes it easier to translate a lot of text in many languages fast.

Still, no usual setup for a microsite and therefore low priority.

Deprecated warnings

@jekuer Thanks for providing this starter!
I don't know if it's the PHP server I'm running, but I'm getting a bunch of these deprecated warnings:
Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /Volumes/Evo/Sites/php-microsite-boilerplate/lib/gettext/gettext.inc on line 92

I tried Docker, but it fails because I have an ARM Mac and the container doesn't support it even if I specify arm64 as a platform.

I have not yet tried Valet. Just testing using this VS Code PHP server extension https://marketplace.visualstudio.com/items?itemName=Anuragsingk.anuragsingk-phpserver

little comment issue on 1.4.4

Just wanted to start with the boilerplate as a playground but because of an wrong comment tag the site wont show.

In lib/url_parsing.php on line 144 there need to be the end of the comment not as it is, one line above i guess.

bet regards and thank you very much for providing this boilerplate!

YouTube Load on Click

Add functionality to include youtube videos, which load on click only and therefore do not block any other loading steps.

Routing not working

Hello, unfortunately the routing on my vhost does not work, likewise on my other webspace it does not run. I proceeded exactly as described in the blog.

Exposing Directus part as standalone library

Hi, I have one question, not really an issue or similar.

I see that you have Directus as an option in your boilerplate, and since my PHP skills are not up to the task I was wondering do you maybe have plans(or any pointers in the right direction for DIY approach) for exposing the Directus part of your boilerplate as standalone library?

Just by reading the code I can say that I get what is going on, but it's impossible for me to somehow extract only the Directus part and use it standalone.

Thanks

CSS and JS optimization via build

Since we aim to support TailwindCSS, we will need to include some build magic. At least for the CSS optimization with Tailwind. Doing so, it makes sense to also include some minification process for the JS folder.
Combined with better documentation, this enables people to work on the code without the need to minify files locally.
However, it will require NodeJS - locally if you run it there or during a deployment step, which should also be prepared.

Create tutorial

A detailed tutorial should guide through the initial setup of the code.
Not yet sure if via the readme.md, a specific folder (with docs included) or only via the demo page.

Remove AMP support

AMP will be no longer pushed by Google.
Since the included caching solution (especially combined with a strong CDN) provides more or less the same performance (without the downsides), V2 will no longer support AMP.

Add an automated Language Switcher

I'm submitting a ...

  • bug report
  • feature request
  • other (Please do not submit support requests here (below))

Since it already includes multilanguage functionality, it would be a useful addition to create a component for a dynamic language switcher.
One could define more details per language, like its name or a flag image, which then could be drawn automatically into some kind of a switcher/dropdown.

This comes in handy, when dealing with more than 2 languages.

Update Directus language limiter with deep param for V9

With a stable Directus V9, we need to update the function to limit the Directus call to the current language.
With V8, this can be done via the lang param. V9 will need the new deep param.
Afterwards, the workaround, which strips non-active language items, can be removed.

Add TailwindCSS support

TailwindCSS introduces a new way to build webpages very fast.
Still, it breaks with common conventions regarding CSS (keep the styling in the css file and not the HTML).
The boilerplate (since it is meant for building simple websites fast) should support TailwindCSS, but do this in an optional way, so no one is forced to use it.

Service Worker with webm and mp4 videos

I have embedded a video of about 6mb size, but it is not saved by the cache in any form. No MP4 no WEBM. I always get the following error: serviceworker-cache.min.js?v=5.0.13:1 Uncaught (in promise) TypeError: Failed to execute 'put' on 'Cache': Partial response (status code 206) is unsupported.

Bildschirmfoto 2023-10-16 um 14 43 57

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.