Skip to content

sonyarianto/php-using-blade-without-laravel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

php-using-blade-without-laravel

Sample of using Blade template system on PHP without using Laravel.

Requirements

  • PHP 8.2.x
  • Composer

How to run?

Run composer install on the project directory.

Then we just use PHP built-in web server. Run this on this project directory.

php -S localhost:3000 -t public

How to look into code?

  • Look at public/index.php, that's the entry point.
  • Look at src/Blade.php, that's the class of Blade that prepare when constructor run and has render() function to render the template.
  • Look at src/Config.php, contains some config need for Blade, such as templates directory and target directory of compiled templates.

License

MIT

Maintained by Sony Arianto Kurniawan <sony@sony-ak.com> and contributors.

About

Sample of using Blade template system on PHP without using Laravel.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published