I am using Slim 3 PHP framework. I know laravel 5.2.So I want to integrate Blade Template in my slim php framework.Can anyone suggest me best way to integrate blade template in slim framework using composer.What should I place in composer.json in require section????
You can't use Laravel's blade and view outside the framework directly. Extracting those and making it work outside in another framework can be tiresome. You might want to check out these packages who do it for you and provide the functionality.
https://github.com/duncan3dc/blade
https://github.com/PhiloNL/Laravel-Blade
https://github.com/EFTEC/BladeOne
You can also try Twig
which is a popular templating engine for PHP and the syntax is almost similar.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.