Download the PHP package feliperamaral/zfheadbuild without Composer

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

Zend Framework 2/3 Head*Build Module

Como funciona:

Hoje em dia é muito utilizado automatizadores de tarefas para front-end como Grunt, Gulp e etc.

Geralmente é utilizado packages para gerar builds do CSS e JS como build/js/app-9783118bf8.js

Então esse modulo é para justamente recupear essa versão de build e adicionar na sua view como:

VIEW.phtml:

HTML:

Instalação

  1. Adicione no composer.json do seu projeto

  2. Rode o seguinte comando

Após a instalação

Opção 1 - Instalar como modulo

  1. Adicione o modulo no seu application.config.php

Opção 2 - Adicione diretamente no seu modulo (recomendado)

Dessa forma não é preciso inicializar um modulo inteiro

  1. Adicione o seguinte helper no seu [modulo]/config/module.config.php

Configurações

Você pode configurar manualmente os caminhos para a sua pasta de build

Duas variáveis estão incluídas no processo, que são: public_path e manifest_file

O valor padrão de manifest_file é build\rev-manifest.json O valor padrão de public_path é calculado automaticamente com base no seu index.php (ou qualquer arquivo que o seu Rewrite aponte)

Alterar configurações padrão

No seu arquivo de configuração [modulo]/config/module.config.php, adicione o seguinte:

Como usar

É adicionado dinâmicamente a versão ...Build([...]) à todos os métodos dos helpers HeadLink e HeadScript

Na sua view:

VIEW.phtml:

HTML:

Observe que não é preciso usar o $this->basePath(...) no método de build

Observe também que os outros métodos continuam funcionando normalmente

Todos os métodos possuem os mesmo parâmetros dos métodos equivalentes

Métodos HeadScript

Métodos HeadLink


All versions of zfheadbuild with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4
zendframework/zend-view Version 2.*
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 feliperamaral/zfheadbuild contains the following files

Loading the files please wait ....