Download the PHP package ejetar/laravel-mix-php-function without Composer
On this page you can find all versions of the php package ejetar/laravel-mix-php-function. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ejetar/laravel-mix-php-function
More information about ejetar/laravel-mix-php-function
Files in ejetar/laravel-mix-php-function
Package laravel-mix-php-function
Short Description A lightweight and simple library that adds Laravel Mix's mix() function to your PHP project 🚀
License MIT
Homepage https://ejetar.com/projects/laravel-mix-php-function
Informations about the package laravel-mix-php-function
Laravel Mix PHP Function
About
A lightweight and simple library that adds Laravel Mix's mix() function to your PHP project 🚀
You can now use the mix() function of Laravel Mix independently, without needing Laravel and/or Blade and/or Vue...
Installation
composer require ejetar/laravel-mix-php-function
Get started
- Load the composer into your project;
- Call mix() at the desired location;
- And that's it, that's all, have fun!
Example
Let's say we have the following mix-manifest.json
, in the public folder of our project:
Now suppose I want to retrieve the versioned URL from the /css/all.min.css file:
That simple!
Custom Mix Base URLs
You can also use custom mix base URLs, just as you would with Laravel.
Just define the constant MIX_ASSET_URL
before using the mix function.
Example
Changelog
Nothing for now...
Contributing
Contribute to this wonderful project, it will be a pleasure to have you with us. Let's help the free software community. You are invited to incorporate new features, make corrections, report bugs, and any other form of support. Don't forget to star in this repository! 😀
License
This library is a open-source software licensed under the MIT license.