Download the PHP
package lpinc/lpi-asset-loader without Composer
On this page you can find all versions of the php package
lpinc/lpi-asset-loader. It is possible to download/install
these versions without Composer. Possible dependencies are resolved
automatically.
Vendor lpinc Package lpi-asset-loader Short Description LpiAssetLoader is a zend framework module that can be used in zf2 or zf3 layouts to load front end asset javascript and css files and frameworks License
BSD-3-Clause
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.
LpiAssetLoader is a zend framework - ZF2 and ZF3 - module that helps configure the loading of front-end custom, bower, or npm javascript and css files and assets.
This module can be especially handy if you load AMD javascript modules in your layouts or view scripts.
Installation
via github
To install LpiAssetLoader, simply recursively clone this repository (git clone --recursive) into your ZF2 or ZF3 modules directory.
Or with composer
Add this project and LpiAssetLoader in your composer.json:
Now tell composer to download ZfcUser by running the command:
Enable
Enable LpiAssetLoader in your config/application.config.php file.
Config Options
The LpiAssetLoader module has some options to help customize the basic functionality. After installing LpiAssetLoader, copy
./vendor/lpinc/lpi-asset-loader/config/lpiassetloader.global.php.dist to
./config/autoload/lpiassetloader.global.php and change the values as desired.
If you istalled dojo using nodejs npm, then a sample config might look like this:
Example Uses:
To configue and intialize dojo in a zend framework view-layout file:
To configue dojo with a custom module in a zend framework layout file:
All versions of lpi-asset-loader with dependencies
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 lpinc/lpi-asset-loader contains the following files
Loading the files please wait ....
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.