Download the PHP package juzaweb/laravel-download-template without Composer

On this page you can find all versions of the php package juzaweb/laravel-download-template. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-download-template

About

This package provides a simple command to download styles and scripts from a given template URL. It also generates a webpack.mix.js file for easy asset compilation.

Installation

Configuration

Publish the configuration file:

Usage

Download Styles

This command is particularly useful when you're integrating a static template into a Laravel project and want to fetch its external style and script files directly.


🧾 Command Signature


🛠 Features


🔧 Options

Option Shortcut Description Default
--output -o Output directory to save files resources
--mix Generate webpack.mix.js file false
--mix-output Directory where webpack.mix.js file will be saved root (empty)

🧪 Example Usage

You will be prompted to input the template URL:


📂 Output Structure

After downloading, your resources folder might look like:


⚙️ Laravel Mix File Example (generated)


📌 Notes

Dưới đây là nội dung README bằng tiếng Anh dành cho class DownloadTemplateCommand, giải thích chức năng và cách sử dụng lệnh Artisan này một cách rõ ràng:


Download Template

The DownloadTemplateCommand is a Laravel Artisan command that allows you to download and convert a section of an HTML page from a specified URL into a Blade template file. It is helpful when you're importing static HTML templates into a Laravel project.


🧾 Command Signature


🛠 Features


🔧 Options

Option Shortcut Description Default
--output -o Output path for the Blade file resources/views
--layout Blade layout to extend layouts.app

💬 Interactive Prompts

You will be prompted to input:

Prompt Description Default
Url Template? The URL of the HTML page to download Last used value
Container? The CSS selector of the container to extract .container-fluid
File? The filename to save the Blade file (e.g. home) index.blade.php

If the file name does not end in .php, .blade.php will be appended automatically.


📂 Output Example

Assuming:

The result will be saved as:

With contents similar to:


🧪 Example Usage

Then follow the prompts:

This will generate:


🧩 Extend & Customize

You can extend this command to:


📌 Notes

License

This package is open-sourced software licensed under the MIT license.


All versions of laravel-download-template with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
juzaweb/html-dom Version ^1.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package juzaweb/laravel-download-template contains the following files

Loading the files please wait ....