Download the PHP package mistralys/application-utils-result-handling without Composer

On this page you can find all versions of the php package mistralys/application-utils-result-handling. 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 application-utils-result-handling

AppUtils - Result handling

Collection of classes used to store information on the results of application operations.

This is part of the AppUtils project.

Features

Requirements

Usage

Single possible result

If an operation can only have a single possible result state, you can use the OperationResult class.

NOTE: The isValid() method returns true if no state was set, or the state is of the success type.

Collection of results

Introduction

If an operation can have multiple possible result states, like a validation operation, for example, you can use the result collection class.

Every call to makeError(), makeWarning() or makeSuccess() will add a new result instance to the collection.

All result types are stored in the collection, so it is important to note that both failed and successful operations can be tracked.

Quick Start

NOTE: The isValid() method returns true if none of the results in the collection are of the error or warning type.

Accessing the results

Accessing results is made to be as easy as possible, with many different ways to get the information you need.

Counting results

All result types can be counted individually, and the total number of results can be counted as well.

Extend the result classes

Both the OperationResult and collection classes are designed to be extended, so you can add your own custom methods to them.

The most common use for this is to correctly document the result subject's type:


All versions of application-utils-result-handling with dependencies

PHP Build Version
Package Version
Requires mistralys/application-utils-core Version >=2.3.4
php Version >=7.4
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 mistralys/application-utils-result-handling contains the following files

Loading the files please wait ....