Download the PHP package sebaks/zend-mvc-controller without Composer

On this page you can find all versions of the php package sebaks/zend-mvc-controller. 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 zend-mvc-controller

Build Status codecov.io

Zend MVC controller implementation

This is controller implementation for Zend MVC builds on sebaks/controller.

Most controllers must do

  1. Check if that controller\action can be accessed by called method (GET, POST, PUT etc.), if not - rise exception.
  2. Process request (this is responsibility of sebaks/controller).
    1. Validate request criteria.
    2. Validate request data.
    3. Process request (run any domain service).
    4. Collect errors.
    5. Collect result.
  3. Rise exceptions if error exists.
  4. Redirect to next page (if define).
  5. Setup ViewModel.
  6. Setup MVC Event.

That solution allow to customize any flow parameter and increases code reuse.

Installation

  1. Install it via composer by running:

  2. Copy ./vendor/sebaks/zend-mvc-controller/config/sebaks-zend-mvc-controller.global.php.dist to ./config/autoload/sebaks-zend-mvc-controller.global.php.

Configuration

You can configure that controller with route params:

criteriaValidator, changesValidator - if not defined, will be created Sebaks\Controller\EmptyValidator
service - if not defined, will be created Sebaks\Controller\EmptyService
request - if not defined, will be created Sebaks\Controller\Request
response - if not defined, will be created Sebaks\Controller\Response
viewModel - if not defined, will be created Zend\View\Model\ViewModel


All versions of zend-mvc-controller with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5
zendframework/zend-view Version <2.6 >=2.4
zendframework/zend-http Version <2.6 >=2.4
zendframework/zend-mvc Version <2.6 >=2.4
zendframework/zend-modulemanager Version <2.6 >=2.4
sebaks/controller Version ~0.1.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 sebaks/zend-mvc-controller contains the following files

Loading the files please wait ....