Download the PHP package rm/header without Composer

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

Header

Component for generating beuty and corect html header with included AssetsCollector.

Is fork of http://github.com/ondrejmirtes/nette-headercontrol.

License: MIT

Requirements

Details

http://forum.nette.org/cs/12704-dynamicke-vkladanie-iba-pouzitych-css-a-js-suborov

Add macros

Usable in view or components.

{css "grid.css"} {* Find in drirectory <directory with template>/screen.css *}
{css "screen.css"} {* Find in drirectory $csspath/screen.css *}
{css "/var/www/sk/web/www/style/css/screen.css"} {* Find in drirectory "/var/www/sk/web/www/style/css/screen.css" *}
{js "live-form-validation.js"}
{js "jquery.min.js", "jquery.nette.js", "jquery.ajaxform.js"} {* definition with dependency *}

{cssContent}
* { color:red}
{/cssContent}

{jsContent}
$( 'textarea.editor' ).ckeditor();
{/jsContent}

Packages

For often usable files exist option for simple definition packages of files.

Example

Define in config.neon:

common:
    assetsCollector:
        packages:
            jQuery:
                js:
                    - %wwwDir%/style/js/jquery-1.8.2.min.js
            netteForms:
                js:
                    - %wwwDir%/libs/Nette-extras/Niftyx-NiftyGrid-5163290/resources/js/netteForms.js
            jQueryUI:
                extends:
                    - jQuery
                css:
                    - %wwwDir%/libs/jquery-ui-1.9.1.custom/css/smoothness/jquery-ui-1.9.1.custom.min.css
                js:
                    - %wwwDir%/libs/jquery-ui-1.9.1.custom/js/jquery-ui-1.9.1.custom.min.js
            NiftyGrid:
                extends:
                    - jQueryUI
                    - netteForms
                css:
                    - %wwwDir%/libs/Nette-extras/Niftyx-NiftyGrid-5163290/resources/css/grid.css
                js:
                    - %wwwDir%/libs/Nette-extras/Niftyx-NiftyGrid-5163290/resources/js/grid.js

Use in latte templates:

{pfpack "NiftyGrid"}

Compilators

On a CSS and JS files can be aplied compilators.

Example

In config.neon:

common:
    assetsCollector:
        addCssCompilator:
            - @superExtraCompilator
    enabledCompilers:
        - cssSimpleMinificator
        - imageToDataStream
        - imageReplacer
        - superExtraCompilator
    services:
        superExtraCompilator:
            class: SuperExtraCompilator

Installation

1) Download

2) Unpack

3) Register

\RM\AssetsCollector\AssetsCollectorExtension::register($configurator);

4) Create component Header https://github.com/romanmatyus/Header

5) Change file @layout.latte such as this:

{capture $html}
<body>
...
</body>
</html>
{/capture}
{control header}
{!$html}

6) Use it:)

Roadmap


All versions of header with dependencies

PHP Build Version
Package Version
Requires nette/application Version >=2.3.0
nette/di Version >=2.3
nette/finder Version >=2.3.0
nette/http Version >=2.3.0
nette/utils Version >=2.3.0
latte/latte Version >=2.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 rm/header contains the following files

Loading the files please wait ....