Download the PHP package aryelgois/composer-front-end without Composer

On this page you can find all versions of the php package aryelgois/composer-front-end. 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 composer-front-end

A utility to install front-end files with Composer

Intro

By default Composer installs all package files under the vendor directory.
It is ok for Composer's main purpose: a tool for dependency management in PHP.

But often, PHP projects involve other languages, like those used in front-end (JavaScript, CSS and their derivatives).

You could use different package managers to deal with each kind of file, but it would be too much work, and I think it is good to have a unified tool.

This is where this package comes in. You will use Composer to fetch repositories containing front-end assets, and this package will symlink them to their appropriate directory.

Install

Run this inside your project:

composer require aryelgois/composer-front-end

In order to avoid Composer warnings during a fresh install, keep the package entry at the beginning of composer.json require directive.

Setup

Add this to your composer.json:

Now, whenever you install a new package with front-end files, they will be symlinked.

If you already installed some front-end packages, run composer front-end-refresh to look in every vendor package.

Config files

These JSON files are used to tell which files should be symlinked and where.

You could use any key you like for the file_group, but it needs to be the same in the vendor config and in your project.

frontend.json

Used in vendor packages.

It contains a map of 'file_group': ['file'] of files to be symlinked into your project.
Paths are relative to the vendor package directory.

not vendor/, but vendor/some/package/

Example:

It is possible to specify a single file without an array.

frontend-config.json

Used in your project.

It can include the following keys:

directories

(required)

A map of 'file_group': 'directory' to contain symlinks from other packages.
Paths are relative to the root directory.

packages

(optional)

A map of 'package/name': files to be symlinked. The content would be the same as in frontend.json.

Useful when a vendor does not include the frontend.json.

It replaces the frontend.json

structure

(optional)

Defines how the symlinks are placed in the directory of each file_group:

structure_default

(optional)

Defines the default structure for all directories. If not specified, nest is used.

Example:

public/ is the Document Root

Notes

TODO


All versions of composer-front-end with dependencies

PHP Build Version
Package Version
Requires php Version ^7.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 aryelgois/composer-front-end contains the following files

Loading the files please wait ....