# Including PHP files in blade templates

**URL:** https://discourse.roots.io/t/including-php-files-in-blade-templates/24585
**Category:** sage
**Tags:** blade, sage10
**Created:** 2023-01-17T11:52:21Z
**Posts:** 5
**Showing post:** 2 of 5

## Post 2 by @strarsis — 2023-01-17T14:36:54Z

So you want to include a PHP file inside a Blade-PHP template file?  
You should use a function or a blade directive that itself includes the PHP.

---

_[View the full topic](https://discourse.roots.io/t/including-php-files-in-blade-templates/24585)._
