Menu

manifest.json on a PHP site: name, icons, and theme-color in an afternoon
πŸ“°

manifest.json on a PHP site: name, icons, and theme-color in an afternoon

DEV Community: phpΒ·Mobeen AhmedΒ·12 days ago
#QaiHQqwF
#devto#dev#manifest#json#screen
Long article (753 words) β€” no AI summary yet.
Reading 0:00
15s threshold

I run a small video downloader site, ramrom.io, built in plain PHP on shared hosting. No framework, no build step, no Node.js. One afternoon I decided to make it installable β€” the kind of thing where a visitor on Android can tap "Add to Home screen" and get an app-like icon instead of a bookmark. The whole job turned out to be one JSON file, two icons, and three lines in the page head.

The manifest is just a JSON file

A web app manifest is a small JSON file that tells the browser how your site should behave when it is installed. The browser reads it once, when it decides whether to offer the install prompt.…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.