Download the PHP package slm/three-step-view without Composer

On this page you can find all versions of the php package slm/three-step-view. 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 three-step-view

SlmThreeStepView

SlmThreeStepView is a module to abstract common parts of your layout script into a wrapper script. It lets you focus on the important things of the layout, leaving the general parts out of its scope. This helps with creation of new layouts (you need to remember less) and helps to concentrate on the important parts of the layout script.

The result is a wrapper view script, "surrounding" the layout. A wrapper might look something like this:

The layout scripts you are used to work with, only need to contain the html within the <body></body> tags.

Installation

SlmThreeStepView is installable via composer. Require slm/three-step-view in your composer.json. You can use the development's version dev-master but also rely on the first tagged release (v0.1.0) by specifying 0.* as version constraint. Then enable SlmThreeStepView in your application.config.php.

Usage

SlmThreeStepView let you configure the template of the wrapper script (defaults to layout/wrapper) and the variable the "inner" layout is captured to (defaults to content).

Furthermore, SlmThreeStepView allows a blacklist of layout scripts which are not turned into a three step version. This is useful when you use a module as ZfcAdmin for example, where the layout layout/admin is a full layout. By default, this blacklist is empty.

Create the file slmthreestepview.config.global.php in your config/autoload directory. You can use the following configuration options:

Performance

You might wonder what the performance drop is by using this module. In a small-sized Zend Framework 2 application the module is benchmarked roughly with ab. In 1000 requests the drop in performance is on average 1ms (from 45.739ms to 46.649ms). The resolving of the templates is done via the template path stack (so no template map has been made). This means the real performance drop of this module is even less than the 1ms of the above benchmark.

Important!

This module requires a change in your Zend Framework 2 library. The change is requested to be pulled into the core via this Pull Request. Only after this merge has been made, this module is usable.

Development

This module is developed in a short time and might not be completely stable or ready for your needs. Please test is thoroughly befor you use it in production! If you have any problems, feel free to open an issue in the tracker. If you have questions, please mail them to [email protected].


All versions of three-step-view with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.3.
zendframework/zendframework 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 slm/three-step-view contains the following files

Loading the files please wait ....