Download the PHP package petrofcikmatus/zf-layout-change without Composer

On this page you can find all versions of the php package petrofcikmatus/zf-layout-change. 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 zf-layout-change

ZF Layout Change Module

This is a Zend Framework 3 module, that can simply set different layouts for different modules.

If you have multiple modules in your application (e.g. Application and Admin), and you want different layout for some module (e.g. Admin), this package will provide easiest way to do that change.

How to use this package

1. Install this module with composer

Simplest way to install this package is to use following composer command to require dependency:

Alternatively you can add following to your composer.json file manualy:

and execute composer command to update your dependencies (and also download this new one):

2. Add this module to your modules

When you add this package with composer, it should automatically ask in which file you want add new module.

If this did not happen, you have to add 'ZFLayoutChange' value to the array with your modules. It should be in file config/application.config.php or config/modules.config.php, and look like this:

3. Add array with layouts for your modules

Add a new array with key module_layouts in your global configuration file config/autoload/global.php, or to module.config.php for some modules if you want.

In the example above, controllers in Admin module (and namespace) will use layout layout/admin. Otherwise, it will use default configured layout.

4. That is all!

Enjoy your layout changing :)

See a bug? Want to contribute?

If you see any bug or you experience any troubles, please open a new issue or commit bugfix, I will look at it.

If you want to change something (maybe I didn't make it the best way), feel free to fork repository and create new merge requests.

Also if you want this on Zend Framework 2, feel free to contribute. I do not use ZF2 anymore, so it is up to you now.

License

This module uses MIT license.


All versions of zf-layout-change with dependencies

PHP Build Version
Package Version
Requires php Version ^5.6 || ^7.0
zendframework/zend-mvc Version ^3.0.1
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 petrofcikmatus/zf-layout-change contains the following files

Loading the files please wait ....