Download the PHP package lcloss/template without Composer
On this page you can find all versions of the php package lcloss/template. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download lcloss/template
More information about lcloss/template
Files in lcloss/template
Package template
Short Description Converts HTML template to Blade template and use it on Laravel Project
License MIT
Informations about the package template
Template Package
Other languages
- English
- Português
Description
Do you have a template written in HTML and want to convert it to Blade, to use in a Laravel project?
Then this package is for you. Its use is simple, and what you want is just the beginning to start your new Laravel project, from an HTML template.
After running the php artisan template:build
command, you will have your files converted.
Installation
You can install the package via composer:
Usage
- To convert your HTML files to Blade, start by creating the
/resources/views/templates/src
directory. - Copy your HTML files into the
/src
folder above. - If the template comes with
assets
directory, also copy theassets
folder into/src
. -
Then, run the command:
- The package will create the
/resources/views/templates/dist
folder with the converted files. - It will also create routes to view your template.
Open the browser at: http://seu-projeto.test/template
This route points to index.blade.php
.
If there is another file as the root, such as home.html
, then open the browser at:
http://seu-projeto.test/template/home
Credits
- [Luciano Closs](lcloss @ github)
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
Changelog
Please see CHANGELOG for more information on what has changed recently.
Security
If you discover any security-related issues, please email instead of using the issue tracker.
Contributing
Please see CONTRIBUTING for details.
Code of Conduct
Please see CODE_OF_CONDUCT for details.
Testing
No tests have been written, as it is only intended to convert files.
For a next version, I will probably add the folder configuration via .env
, so you can create tests.
For now, we want something very simple.