Download the PHP package clancats/packtacular without Composer

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

Packtacular

Packtacular is a fast and easy asset packer, compressor, manager.

We are all busy so we should not waste time dealing with asset packing. Im also going to skip all the "where the idea came from bla bla" so lets directly continue with how to use Packtacular.

don't forget that you need to grant write permission's for php.

Usage

First of all packtacular need's to know where your storage directory ( public directory ) is. If you don't set up the storage directory packtacular is going to use the relative path.

The thing here was "Hey let's keep it easy" so to create your package you only need to do this:

Packtacular::<type>( '<source>', '<target>' );

Example:

This example will return an absolute public path to the package assuming that the target is the public root path. /cache/stylesheet_1395407386.css

A bit more detail

Packtacular::<filetype>( <dir>|<files_array>, <target_file> );

Type: This means the basically the file extension. Packtacular::js will match all .js files in the given directory.

Source: I hope this is not to confusing. If you set a folder as source Packtacular is going to search in that directory for all files matching the given type. Alternatively you can pass an array of files.

Target: Define where the cache file should be created. You can simply pass a file path. To bypass the problem that the browser might cache the files on its own, you can add a timestamp to the path using the :time parameter.

Example with a fixed array

Filters

Filters can catch the file contents before they get packed. Wich gives you the possibility to compress or compile your assets.

There are 2 types of filters package and single file filter.

The single filter will be applied over every file on it's own.

The normal filter can only modify the entire package.

Preset filters

There are some filter that already ship with packtacular you can add them by simply executing:

Following filters are available:


All versions of packtacular with dependencies

PHP Build Version
Package Version
No informations.
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 clancats/packtacular contains the following files

Loading the files please wait ....