Support the ongoing development of Laravel.io →
posted 10 years ago
Views

Hi everyone!

I just wrote a blog post on getting started with using XHP for views in Laravel. XHP is a templating syntax originally developed by Facebook and currently in use for all their server-rendered frontend code. One of the main advantages is that parameters are strongly-typed rather than just accepting everything you throw at them. Additionally, all the XHP elements are just regular PHP classes and you have the full power of PHP available for use (logic specific to a view can live in the same file as the view itself).

Here's the post: http://dan.cx/2014/05/xhp-laravel

Let me know if you've got any questions!

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Daniel15 daniel15 Joined 19 May 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.