Download the PHP package zoopcommerce/maggott-module without Composer

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

Zoop maggott-module

Build Status

A simple zend framework 2 module to return exceptions as json in accordance with the application/api-problem+json standard.

Install

Add the following to your composer root:

"require": {
    "zoopcommerce/maggott-module" : "~1.1"
}

Add the module to your application config:

'modules' => [
    'Zoop\MaggottModule'
],

Configuration

Any exceptions that you want returned as json need to be configured in the exception_map config key.

Eg:

'zoop' => [
    'maggott' => [
        'exception_map' => [
            'Zoop\ShardModule\Exception\AccessControlException' => [
                'described_by' => 'access-control-exception',
                'title' => 'Access denied',
                'status_code' => 403,
                'extra_fields' => ['action'],
                'restricted_extra_fields' => ['documentClass']
            ]
        ]
    ],
]

The exception_map is an array of configured exceptions. The key for each item in the array must be the FQCN of the exception. All fields to configure an exception are optional. They are:

described_by

If this field is supplied, the returned exception will have a described_by field which points to a resource where more information about the exception can be found in human readable format.

If using the described_by field, you should also create a view model template called zoop/maggott/<described_by> that hold the extra human readable inforamtion.

title

The title of the exception

status_code

The http status code should the json response be set to. Defaults to 500, but also observes the status code in the response.

extra_fields

Other properties of the exception that should always be included in the json response.

restricted_extra_fields

Other properties of the exception that should only be included in the json response if displayExceptions is set to true.


All versions of maggott-module with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4
zendframework/zendframework Version ~2.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 zoopcommerce/maggott-module contains the following files

Loading the files please wait ....