Download the PHP package activecollab/controller without Composer

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

Controller

Build Status

Supported action responses:

  1. \ActiveCollab\Controller\Response\FileDownloadResponse - streams a file download.
  2. \ActiveCollab\Controller\Response\StatusResponse - returns a HTTP status, without response body.
  3. \ActiveCollab\Controller\Response\ViewResponse - Renders a particular view.

When within a controller action, use these methods to get individual request parameters:

  1. getParsedBodyParam()
  2. getCookieParam()
  3. getQueryParam()
  4. getServerParam()

All of these methods accept three parameters:

  1. $request (\Psr\Http\Message\ServerRequestInterface instance)
  2. $param_name (string)
  3. $default (mixed, NULL by default)

Configuration

Controllers can override protected configure() method to do additional setup after controller construction. This method is separated from constructor, so developer does not need to inherit and manage complicated controller constructor.

Exception Handling

When action fails due to an exception, system will return 500 HTTP error, with a message that does not expose any of the system details.

This is done in such a way that new RuntimeException is constructed, with generic error message, and real exception is passed as $previous constructor argument of the new exception. If you have your system configured so exceptions are fully described when 500 errors are rendered (in debug mode for example), you'll be able to access original exception detials like that.

To change default exception message, call setLogExceptionMessage() controller method:

If $logger is added to the controller (during construction or later on), all exceptions that actions throw will be logged with error level.

To do

  1. Add $payload to status shortcut methods.

All versions of controller with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
ext-json Version *
activecollab/containeraccess Version ^2.0
activecollab/etag Version ^1.0
activecollab/templateengine Version ^3.0
activecollab/utils Version ^2.0
psr/http-factory Version ^1.0
psr/http-message Version ^1.0
psr/http-server-middleware Version ^1.0
psr/log Version ~1.0
laminas/laminas-diactoros Version ^2.8
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 activecollab/controller contains the following files

Loading the files please wait ....