Smarty
PHP template engine that separates logic from presentation: designers work without touching PHP.
About Smarty
What is Smarty?
Smarty is a template engine for PHP that facilitates the separation of presentation (HTML/CSS) from application logic. It lets web designers work with templates without needing PHP knowledge, while developers handle the backend without mixing HTML with code.
Use cases
What is Smarty for?
- A project where the design team and backend team work in parallel without interfering with each other.
- A PHP application that needs to cache templates to improve performance.
- An email or HTML document generation tool using reusable templates.
Benefits
Main benefits of Smarty
Clean separation between logic (PHP) and presentation (HTML/CSS).
Built-in template caching to improve performance.
Very lightweight install of only 1.5 MB.
Allows designers to work with templates without knowing PHP.
Is it for you?
Who should use Smarty?
PHP projects where designers and backend developers need to work in parallel without mixing HTML with PHP code.
Is Smarty right for you?
Is Smarty the right choice for you?
It's a great fit if…
- If your team has designers who don't know PHP and need to work with templates.
- If you want to cache templates to improve your application's performance.
- If you need a lightweight, mature template engine for PHP projects.
It might not be for you if…
- If you use Laravel, which already includes Blade as a built-in template engine.
- If you prefer plain PHP templates or Twig, which is the preferred template engine in the Symfony ecosystem.
Installation
How to install Smarty on your hosting
Open your hosting panel
Log into your miHosting professional hosting panel and open Softaculous, the application installer included with every plan.
Find Smarty
Integrated into existing PHP projects by adding the Smarty library as a dependency.
Configure and go live
Choose the domain, language and admin details. Softaculous creates the database automatically and your install is ready in minutes.
Recommended hosting
Why install Smarty on miHosting
miHosting's professional shared hosting includes Softaculous, PHP and databases already configured, NVMe storage with no artificial limits, free SSL and real technical support if you need help during installation or maintenance of Smarty.
Choose your plan
Install Smarty today
Choose the professional hosting plan that best fits your Smarty project, or try it risk-free with the free plan.
Emprendedor
50% OFF118 $/yr 59 $/yr — free domain included
- ✓3 websites
- ✓1 free domain for the first year
- ✓Unlimited NVMe SSD storage
- ✓Softaculous — 400+ one-click apps
- ✓Free, automatic SSL (Let's Encrypt)
- ✓Free migration included
- ✓Real 24/7 technical support
Plus
50% OFF170 $/yr 85 $/yr — free domain included
- ✓15 websites
- ✓1 free domain for the first year
- ✓Unlimited NVMe SSD storage
- ✓Softaculous — 400+ one-click apps
- ✓Free, automatic SSL (Let's Encrypt)
- ✓Free migration included
- ✓Real 24/7 technical support
Webmaster
50% OFF198 $/yr 99 $/yr — free domain included
- ✓100 websites
- ✓1 free domain for the first year
- ✓Unlimited NVMe SSD storage
- ✓Softaculous — 400+ one-click apps
- ✓Free, automatic SSL (Let's Encrypt)
- ✓Free migration included
- ✓Real 24/7 technical support
Not sure which to choose?
For 1–3 of your own websites, the Emprendedor plan is more than enough. To manage client sites or multiple projects, the Webmaster plan is the go-to choice for agencies and freelancers.
Talk to a technician on WhatsApp →Not ready to commit yet?
Try it with the same NVMe infrastructure as the paid plans, no credit card and no fine print. When you're ready, upgrade to a professional plan with a 50% discount.
- ✓ No credit card required
- ✓ Softaculous included
- ✓ Upgrade whenever you want
Frequently asked questions about Smarty
Does Smarty improve my PHP application's performance?
Yes, it includes a template caching system that avoids reprocessing HTML on every request, improving performance.
Is Smarty compatible with any PHP framework?
Yes, Smarty can be integrated into any PHP project, though some frameworks like Laravel or Symfony have their own template engine.
Launch your project with Smarty today
Professional hosting with Softaculous, real technical support and a 60-day money-back guarantee.