Download the PHP package johnkrovitch/sam without Composer

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

Sam

Simple Assets Manager

Version : 0.1.7

Build Status Scrutinizer Code Quality Code Coverage Build Status GuardRails badge

Sam is your friend. Sam is like you, he does not like handling complicated assets related stuff.

Sam is a Simple Assets Manager to help assets management in PHP Project. You will be able to easily describe where you want your assets to compiled.

Sam was first develop to be used with the SamBundle, but it can be used stand-alone. Using Sam stand-alone require coding your building tasks. With the SamBundle, you will be able to use a more convenient yml configuration syntax.

Installation

Using composer :

Usage

Filters

A filter is a process which transform one or more source files into one or more destination files, using a binary or not. A filter can have options, like the binary path.

Sam a has the following built-in filters for now. More will be added. You can also add your own filter

The Compass filter will use the Compass binary to transform your ".scss" files into ".css" files.

The Minify Filter use the matthiasmullie/minify library to minify your css and js files. No options are available for now.

The Merge filter will merge multiple files into one. It allow you to reduce the number of http requests. No options are available for now.

The Copy filter will copy one or more files into one or more directory.

Building your filters

In order to use compile your assets, you have to build the filters, using the FilterBuilder. It will check the given configuration and create filters instances according to this configuration.

Tasks

A Task will apply one or more filters to a list of source files to a directory or a list of destination files. It describe your assets compilation process.

Building your tasks

Running the tasks

Once your filters are configured and build, once your tasks are create, you should run the task using the TaskRunner. A normalizer should be created to normalize file names for the filters.

SamBundle

Sam is designed to be used with Symfony and SamBundle integrate the Sam library with Symfony. It will allow your to put your assets configuration into yaml files. It will ease the integration of vendor js/css library (bootstrap, jquery...) using composer.

You no more have to use BootstrapBundle or jQueryBundle. You just have to require them using composer and easily copy, merge, minify those files with your custom assets.

Issues

Feel free to open an issue if you have a problem using this library.

License

The Sam library is release under the MIT License.


All versions of sam with dependencies

PHP Build Version
Package Version
Requires symfony/event-dispatcher Version ^2.8 || ^3.0
symfony/finder Version ^2.8 || ^3.0
symfony/filesystem Version ^2.8 || ^3.0
symfony/process Version ^2.8 || ^3.0
symfony/dependency-injection Version ^2.8 || ^3.0
symfony/options-resolver Version ^2.8 || ^3.0
matthiasmullie/minify Version ^1.3 || ^3.0
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 johnkrovitch/sam contains the following files

Loading the files please wait ....