Download the PHP package crecket/dependency-manager without Composer

On this page you can find all versions of the php package crecket/dependency-manager. 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 dependency-manager

dependency-manager

Build Status Latest Release

Introduction

A simple and small dependency manager for javascript and CSS files. All files will be combined, minified and cached. Less and Scss files are also supported and all css output is run through a auto-prefixer.

Requirements

- matthiasmullie/minify ^1.3
- doctrine/cache ^1.6
- leafo/scssphp ^0.6.3
- tedivm/jshrink ^1.1
- leafo/lessphp ^0.5.0
- twig/twig ^1.23
- css-crush/css-crush ^dev-master

Installation

  1. Install with composer

    composer require crecket/dependency-manager

  2. Add the twig extension to your twig view:

    $twig->addExtension(new Crecket\DependencyManager\Response());

Usage

Adding new files

addFiles($fileList, $groupName);

Remove files

removeFiles($groupName);

Create a url

Twig: getFilesLink(minify, groupName)
PHP: getFilesLink(

Response

Standard php example
Silex route example

You can quite easily use the url generator in silex to create a url to this route using

or without twig

Next create a route:

Debugging

Response takes a optional second parameter which will make sure the session storage and secret key are ignored. This can be a hash id to retrieve the files stored in the session, or a direct array with files

Or get the hash value directly to use in a route/url generator.

Security

To ensure only you can create a file list add a secret key. Make sure this key is secure/long enough!

Issues

Font files in Css

External font files, for example bootstrap's Glyphicons my return 404 errors because the path has changed. These can usually be fixed by copying the font files and moving them to a /fonts folder in your web root.


All versions of dependency-manager with dependencies

PHP Build Version
Package Version
Requires matthiasmullie/minify Version ^1.3
doctrine/cache Version ^1.6
leafo/scssphp Version ^0.6
tedivm/jshrink Version ^1.1
twig/twig Version ^1.23
oyejorge/less.php Version v1.7.0.10
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 crecket/dependency-manager contains the following files

Loading the files please wait ....