Download the PHP package ishanvyas22/asset-mix without Composer

On this page you can find all versions of the php package ishanvyas22/asset-mix. 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 asset-mix

AssetMix plugin for CakePHP

Latest Stable Version Total Downloads License CakePHP Tests PHPStan Check Coding Style Check

Provides integration with your CakePHP application & Laravel Mix.

This branch works with CakePHP 5.0+, see version map for more details.

❤️ Support The Development

Do you like this project? Support it by donating:

Buy Me A Coffee

or Paypal me

or Contact me on Codementor

Follow me

Installation

  1. Install the AssetMix plugin with composer:

    Via composer:

  2. Load plugin using below command:

  3. Generate basic Javascript, CSS & Sass scaffolding:

    Note: Above command will generate scaffolding for vue, but you can generate Inertia scaffolding too.

  4. Install frontend dependencies

    or

  5. Compile your assets

    • For development:

    • To watch changes:

    • For production:
  6. Load AssetMix helper from the plugin into your AppView.php file:

Usage

After compiling your assets(js, css) with laravel mix, it creates a mix-manifest.json file into your webroot directory which contains information to map the files.

Above code will render:

As you can see it works same as HtmlHelper. There is not need to provide full path or even file extension.

Output:

If versioning is enabled, output will look something like below:

Generate command

The generate command is used to generate starter code for your Javascript application to get you started developing your frontend.

Get help:

Generate default scaffolding (with vue):

Above command will generate:

assets/ directory is where you will store your js, css files which will compile down into your respective webroot/ directory.

Custom directory name:

You can also use custom directory name instead of default assets directory, above command will create resources directory where you can put your js, css, etc asset files.

Don't want to use Vue.js? Don't worry this plugin doesn't dictate on which Javascript library you should use. This plugin provides ability to quickly generate scaffolding for Vue as well as Bootstrap, and React.

Generate basic Bootstrap/jQuery scaffolding:

Generate React scaffolding:

Generate scaffolding for Inertia.js:

Generate React scaffolding inside resources directory:

Serving CakePHP out of a Subdirectory

Please see docs/ServingFromSubdirectory

Version map

AssetMix version Branch CakePHP version PHP minimum version
2.x cake5 >=5.0.0 >=8.1
1.x cake4 >=4.0.0 >=7.2
0.x cake3 >=3.5.0 >=5.6

Changelog

Please see CHANGELOG for more information about recent changes.

Reference

To see this plugin into action you can refer to this project, which will provide more insight.

License

The MIT License (MIT). Please see License File for more information.


All versions of asset-mix with dependencies

PHP Build Version
Package Version
Requires ext-json Version *
ext-mbstring Version *
cakephp/cakephp Version ^5.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 ishanvyas22/asset-mix contains the following files

Loading the files please wait ....