Download the PHP package zeeyn/evocms-minifier without Composer

On this page you can find all versions of the php package zeeyn/evocms-minifier. 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 evocms-minifier

evocms-minifier

EvolutionCMS 2.* minifier

Install

php artisan package:installrequire zeeyn/evocms-minifier "^1.2.0" in you /core/ folder

How to use

From version 1.2 Minifier calling from Blade directives. Little about them:

As you can see syntax didn't changed too much, as old commands new directives are calling in same places of blade page. Changes touched optimisation spheres, as example:

In old versions you may use minifier not in all documents, but it will prepares for your document every time. Directives are preparing and working only if you call them.

How to use (old versions v.1.1.2 and older)

In released version you have 3 general functions:

Distinctions:

That means that activate() method you can use for css and js files (just place it in right place basing on files extensions) but js() and css() will work only with *.js and *.css files and you must place them on right place (css() in head, js() in bottom of <body>)

Explanation


Example of use

for css:

or directive

for js:

or directive

That's all, now let's see, what in output:

code:

devTool:

As you can see, minifier creates new file, that contains info from all files before

For js files will be same, but used with <script> tag

Rules of use

if you want to change generated file you must:

*In EvolutionCMS 2.* release you can clear cache from manager panel in versions between RC and release you must do php artisan cache:clear from your /core/ folder

in $files array paths to files must stands on order of including:

good:

bad:

with the *.css files that rule using too

More info


All versions of evocms-minifier with dependencies

PHP Build Version
Package Version
Requires php Version >=7.2
matthiasmullie/minify Version ^1.3
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 zeeyn/evocms-minifier contains the following files

Loading the files please wait ....