PHPackages                             ejetar/laravel-mix-php-function - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. ejetar/laravel-mix-php-function

ActiveLibrary

ejetar/laravel-mix-php-function
===============================

A lightweight and simple library that adds Laravel Mix's mix() function to your PHP project 🚀

v1.0.0(5y ago)5938MITPHP

Since Mar 18Pushed 5y ago1 watchersCompare

[ Source](https://github.com/ejetar/ejetar-laravel-mix-php-function)[ Packagist](https://packagist.org/packages/ejetar/laravel-mix-php-function)[ Docs](https://ejetar.com/projects/laravel-mix-php-function)[ RSS](/packages/ejetar-laravel-mix-php-function/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

Laravel Mix PHP Function
========================

[](#laravel-mix-php-function)

About
-----

[](#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
------------

[](#installation)

`composer require ejetar/laravel-mix-php-function`

Get started
-----------

[](#get-started)

1. Load the composer into your project;
2. Call mix() at the desired location;
3. And that's it, that's all, have fun!

### Example

[](#example)

Let's say we have the following `mix-manifest.json`, in the **public folder** of our project:

```
{
    "/css/all.css": "/css/all.css?id=2fcc406cf38a7867b239",
    "/css/all.min.css": "/css/all.min.css?id=2fcc406cf38a7867b239",
    "/js/all.js": "/js/all.js?id=2c80a6c15449d3e693ed",
    "/js/all.min.js": "/js/all.min.js?id=2c80a6c15449d3e693ed"
}
```

Now suppose I want to retrieve the versioned URL from the */css/all.min.css* file:

```

        Example
