Elem is a fluent PHP library for building type-safe, XSS-protected HTML documents using native PHP code and functions.
How It Works
You stumble upon Elem, a simple way to build web pages right inside your regular code, making it feel like writing HTML but safer and smarter.
You easily bring Elem into your existing project with one quick addition, and it's ready to use without any hassle.
You stack page pieces like building with blocks—create headings, paragraphs, and links that nest perfectly and look just like you imagined.
You effortlessly add lists of items, forms for user input, images, and tables, reusing pieces to make everything organized and dynamic.
Any text you add gets protected from tricks or errors, so your page is secure without extra worry.
You turn your code into a beautiful, formatted web page that prints out perfectly ready to view in a browser.
Your custom web page is live, safe, and professional—perfect for your site, and your friends are impressed!
Star Growth
Repurpose is a Pro feature
Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.
Unlock RepurposeSimilar repos coming soon.