Download the PHP package heavenproject/asset-loader without Composer

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

Asset Loader

Public asset files loader.

Installation

composer require heavenproject/asset-loader

How It Works

Asset Loader is Latte macro.

After the asset file is loaded in the Asset Loader, it reads the asset url, saves this information in temporary file and appends a version number after this url in a form of query string, e.g. http://example.com/images/image.jpg?v=1. After the asset file has been modified, Asset Loader registers this during a new request and increases version number in url query string, e.g. http://example.com/images/image.jpg?v=2. This will force the web browser to download a new version of this asset file from server instead of using it from browser cache.

NOTE: Asset files can be loaded either just by specifiyng its absolute filepath from the website document root directory, e.g. /images/image.jpg or by using its external url, e.g. http://example.com/images/image.jpg, but if using the later form (external url), keep in mind, that trying to work with assets from different domains will not work, because in this case Asset Loader checks the domain in url and if it does not match the website url, it will only return the original url that was given to it, so browser can work with the given resource as usual. So please only load your website local assets.

Requirements

Documentation

In order to use Asset Loader you must register it as extension in configuration file:

Then you must configure it:

After this you are ready to use the Asset Loader:

License

This source code is free software available under the MIT license.


All versions of asset-loader with dependencies

PHP Build Version
Package Version
Requires heavenproject/utils Version ^1.0
latte/latte Version ^2.3
nette/di Version ^2.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 heavenproject/asset-loader contains the following files

Loading the files please wait ....