{"repo":"pug-php/pug","free":true,"listed":false,"github":"https://github.com/pug-php/pug","clone":"git clone https://github.com/pug-php/pug.git","description":"Pug template engine for PHP","language":"PHP","stars":393,"topics":["pug","php","jade","template-engine","template","language","html","hacktoberfest"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"Pug-php Pug-php adds inline PHP scripting support to the Pug template compiler. Since version 3, it uses Phug , a very customizable Pug template engine made by the tale-pug and pug-php developers as the new PHP Pug engine reference. Official Phug documentation See Pug-php demo Get supported pug-php/pug with the Tidelift Subscription Install First you need composer if you haven't yet: https://getcomposer.org/download/ Then run: Pug in your favorite framework Phalcon: https://github.com/pug-php/pug-phalcon Symfony: https://github.com/pug-php/pug-symfony Laravel: https://github.com/BKWLD/laravel-pug CodeIgniter: https://github.com/pug-php/ci-pug-engine Yii 2: https://github.com/rmrevin/yii2-pug Slim 3: https://github.com/MarcelloDuarte/pug-slim Zend Expressive: https://github.com/kpicaza/infw-pug Use Since pug-php 3.1.2, you no longer need to import the class with use Pug\\Pug; as we provide an alias. Main methods are render , renderFile , compile , compileFile , display , displayFile and setOption , see the complete documentation here: phug-lang.com. You can also use the facade to call methods statically: Pug options Pug options should be passed to the constructor Supports for local variables New in pug-php 3 pug-php 3 is now aligned on pugjs 2, it aims to be a perfect implementation of the JS project. That's why there are breaking changes in this new version. See the changelog to know what's new See the migration guide if you want to upgrade from pug-php 2 to 3 Support for cust","default_branch":null,"files":null,"tree":[],"storefront":"/r/pug-php","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/pug-php/pug/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}